Update Xcode projects with "Apply Configuration to XCFileLists" build target
[WebKit-https.git] / Tools / DumpRenderTree / CMakeLists.txt
1 set(WEBKIT_TESTRUNNER_SHARED_DIR "${TOOLS_DIR}/TestRunnerShared/")
2 set(WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR "${TOOLS_DIR}/TestRunnerShared/UIScriptContext")
3 set(DUMP_RENDER_TREE_BINDINGS_DIR "${TOOLS_DIR}/DumpRenderTree/Bindings")
4
5 file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/DumpRenderTree)
6
7 set(DumpRenderTree_SOURCES
8     AccessibilityController.cpp
9     AccessibilityTextMarker.cpp
10     AccessibilityUIElement.cpp
11     CyclicRedundancyCheck.cpp
12     DumpRenderTreeCommon.cpp
13     GCController.cpp
14     JavaScriptThreading.cpp
15     PixelDumpSupport.cpp
16     TestOptions.cpp
17     TestRunner.cpp
18     WorkQueue.cpp
19     ${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/UIScriptContext.cpp
20     ${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/UIScriptController.cpp
21     ${WEBKIT_TESTRUNNER_SHARED_DIR}/Bindings/JSWrapper.cpp
22 )
23
24 set(DumpRenderTree_LIBRARIES
25     WebCoreTestSupport
26     JavaScriptCore
27 )
28
29 set(DumpRenderTree_INCLUDE_DIRECTORIES
30     ${DERIVED_SOURCES_DIR}/DumpRenderTree
31     ${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}
32     ${WEBKIT_TESTRUNNER_SHARED_DIR}/Bindings
33     ${TOOLS_DIR}/DumpRenderTree
34     ${CMAKE_SOURCE_DIR}/Source
35     ${WEBCORE_DIR}/testing/js
36 )
37
38 set(TestNetscapePlugIn_SOURCES
39     TestNetscapePlugIn/PluginObject.cpp
40     TestNetscapePlugIn/PluginTest.cpp
41     TestNetscapePlugIn/TestObject.cpp
42     TestNetscapePlugIn/main.cpp
43
44     TestNetscapePlugIn/Tests/DocumentOpenInDestroyStream.cpp
45     TestNetscapePlugIn/Tests/EvaluateJSAfterRemovingPluginElement.cpp
46     TestNetscapePlugIn/Tests/FormValue.cpp
47     TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp
48     TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp
49     TestNetscapePlugIn/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp
50     TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp
51     TestNetscapePlugIn/Tests/LogNPPSetWindow.cpp
52     TestNetscapePlugIn/Tests/NPDeallocateCalledBeforeNPShutdown.cpp
53     TestNetscapePlugIn/Tests/NPPNewFails.cpp
54     TestNetscapePlugIn/Tests/NPPSetWindowCalledDuringDestruction.cpp
55     TestNetscapePlugIn/Tests/NPRuntimeCallsWithNullNPP.cpp
56     TestNetscapePlugIn/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp
57     TestNetscapePlugIn/Tests/NPRuntimeRemoveProperty.cpp
58     TestNetscapePlugIn/Tests/NullNPPGetValuePointer.cpp
59     TestNetscapePlugIn/Tests/PassDifferentNPPStruct.cpp
60     TestNetscapePlugIn/Tests/PluginScriptableNPObjectInvokeDefault.cpp
61     TestNetscapePlugIn/Tests/PluginScriptableObjectOverridesAllProperties.cpp
62     TestNetscapePlugIn/Tests/PrivateBrowsing.cpp
63     TestNetscapePlugIn/Tests/ToStringAndValueOfObject.cpp
64     TestNetscapePlugIn/Tests/URLRedirect.cpp
65 )
66
67 set(TestNetscapePlugIn_LIBRARIES
68     JavaScriptCore
69     WTF
70     WebCoreTestSupport
71 )
72
73 set(DumpRenderTree_IDL_FILES
74     "${WEBKIT_TESTRUNNER_UISCRIPTCONTEXT_DIR}/Bindings/UIScriptController.idl"
75 )
76
77 GENERATE_BINDINGS(DumpRenderTreeBindings
78     OUTPUT_SOURCE DumpRenderTree_SOURCES
79     INPUT_FILES ${DumpRenderTree_IDL_FILES}
80     BASE_DIR ${DUMP_RENDER_TREE_BINDINGS_DIR}
81     IDL_INCLUDES Bindings
82     FEATURES ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}
83     DESTINATION ${DERIVED_SOURCES_DIR}/DumpRenderTree
84     GENERATOR DumpRenderTree)
85
86 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
87
88 include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES})
89
90 add_executable(DumpRenderTree ${DumpRenderTree_SOURCES})
91 target_link_libraries(DumpRenderTree ${DumpRenderTree_LIBRARIES})
92 add_dependencies(DumpRenderTree DumpRenderTreeBindings)
93
94 if (ENABLE_NETSCAPE_PLUGIN_API)
95     add_library(TestNetscapePlugIn SHARED ${TestNetscapePlugIn_SOURCES})
96     target_link_libraries(TestNetscapePlugIn ${TestNetscapePlugIn_LIBRARIES})
97 endif ()
98
99 if (WIN32)
100     add_dependencies(DumpRenderTree DumpRenderTreeLib)
101 endif ()