[CMake] Autogenerate cmakeconfig.h.cmake
[WebKit-https.git] / Tools / DumpRenderTree / TestNetscapePlugIn / CMakeLists.txt
1 set(WEBKIT_TESTNETSCAPEPLUGIN_DIR "${TOOLS_DIR}/DumpRenderTree/TestNetscapePlugIn")
2
3 set(WebKitTestNetscapePlugin_SOURCES
4     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/PluginObject.cpp
5     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/PluginTest.cpp
6     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/TestObject.cpp
7     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/main.cpp
8
9     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/DocumentOpenInDestroyStream.cpp
10     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/EvaluateJSAfterRemovingPluginElement.cpp
11     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/FormValue.cpp
12     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp
13     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetURLWithJavaScriptURL.cpp
14     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp
15     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp
16     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/LogNPPSetWindow.cpp
17     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPDeallocateCalledBeforeNPShutdown.cpp
18     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPPNewFails.cpp
19     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPPSetWindowCalledDuringDestruction.cpp
20     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeCallsWithNullNPP.cpp
21     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp
22     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NPRuntimeRemoveProperty.cpp
23     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/NullNPPGetValuePointer.cpp
24     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PassDifferentNPPStruct.cpp
25     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PluginScriptableNPObjectInvokeDefault.cpp
26     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PluginScriptableObjectOverridesAllProperties.cpp
27     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/PrivateBrowsing.cpp
28     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/ToStringAndValueOfObject.cpp
29     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/Tests/x11/CallInvalidateRectWithNullNPPArgument.cpp
30 )
31
32 set(WebKitTestNetscapePlugin_INCLUDE_DIRECTORIES
33     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}
34     ${WEBKIT_TESTNETSCAPEPLUGIN_DIR}/unix/ForwardingHeaders
35     ${WEBCORE_DIR}
36     ${X11_INCLUDE_DIR}
37 )
38
39 include_directories(${WebKitTestNetscapePlugin_INCLUDE_DIRECTORIES})
40
41 set(WebKitTestNetscapePlugin_LIBRARIES
42     ${X11_LIBRARIES}
43 )
44
45 if (WTF_OS_UNIX)
46     add_definitions(-DXP_UNIX)
47 endif ()
48
49 add_library(TestNetscapePlugin SHARED ${WebKitTestNetscapePlugin_SOURCES})
50 target_link_libraries(TestNetscapePlugin ${WebKitTestNetscapePlugin_LIBRARIES})
51 set_target_properties(TestNetscapePlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/plugins)