5ece7a558f0b2ada1c84ec451da27bc093a161e6
[WebKit-https.git] / Tools / DumpRenderTree / CMakeLists.txt
1 set(DumpRenderTree_SOURCES
2     AccessibilityController.cpp
3     AccessibilityTextMarker.cpp
4     AccessibilityUIElement.cpp
5     CyclicRedundancyCheck.cpp
6     DumpRenderTreeCommon.cpp
7     GCController.cpp
8     JavaScriptThreading.cpp
9     PixelDumpSupport.cpp
10     TestRunner.cpp
11     WorkQueue.cpp
12 )
13
14 set(DumpRenderTree_LIBRARIES
15     JavaScriptCore
16     WTF
17     WebCoreTestSupport
18     WebKit
19 )
20
21 set(DumpRenderTree_INCLUDE_DIRECTORIES
22     ${WEBCORE_DIR}
23     ${WEBCORE_DIR}/bindings
24     ${WEBCORE_DIR}/bridge
25     ${WEBCORE_DIR}/bridge/jsc
26     ${WEBCORE_DIR}/css
27     ${WEBCORE_DIR}/dom
28     ${WEBCORE_DIR}/editing
29     ${WEBCORE_DIR}/history
30     ${WEBCORE_DIR}/html
31     ${WEBCORE_DIR}/inspector
32     ${WEBCORE_DIR}/loader
33     ${WEBCORE_DIR}/loader/cache
34     ${WEBCORE_DIR}/loader/icon
35     ${WEBCORE_DIR}/page
36     ${WEBCORE_DIR}/page/animation
37     ${WEBCORE_DIR}/platform
38     ${WEBCORE_DIR}/platform/animation
39     ${WEBCORE_DIR}/platform/graphics
40     ${WEBCORE_DIR}/platform/graphics/transforms
41     ${WEBCORE_DIR}/platform/network
42     ${WEBCORE_DIR}/platform/text
43     ${WEBCORE_DIR}/plugins
44     ${WEBCORE_DIR}/rendering
45     ${WEBCORE_DIR}/rendering/shapes
46     ${WEBCORE_DIR}/rendering/style
47     ${JAVASCRIPTCORE_DIR}
48     ${JAVASCRIPTCORE_DIR}/API
49     ${JAVASCRIPTCORE_DIR}/assembler
50     ${JAVASCRIPTCORE_DIR}/bytecode
51     ${JAVASCRIPTCORE_DIR}/dfg
52     ${JAVASCRIPTCORE_DIR}/disassembler
53     ${JAVASCRIPTCORE_DIR}/heap
54     ${JAVASCRIPTCORE_DIR}/interpreter
55     ${JAVASCRIPTCORE_DIR}/jit
56     ${JAVASCRIPTCORE_DIR}/llint
57     ${JAVASCRIPTCORE_DIR}/parser
58     ${JAVASCRIPTCORE_DIR}/profiler
59     ${JAVASCRIPTCORE_DIR}/runtime
60     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
61     ${DERIVED_SOURCES_DIR}/ForwardingHeaders
62     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
63     ${TOOLS_DIR}/DumpRenderTree
64     ${WTF_DIR}
65     ${CMAKE_SOURCE_DIR}/Source
66     ${CMAKE_BINARY_DIR}
67     ${DERIVED_SOURCES_DIR}
68     ${DERIVED_SOURCES_WEBCORE_DIR}
69     ${WEBCORE_DIR}/bindings/js
70     ${WEBCORE_DIR}/testing/js
71 )
72
73 set(TestNetscapePlugin_SOURCES
74     TestNetscapePlugin/PluginObject.cpp
75     TestNetscapePlugin/PluginTest.cpp
76     TestNetscapePlugin/TestObject.cpp
77     TestNetscapePlugin/main.cpp
78
79     TestNetscapePlugin/Tests/DocumentOpenInDestroyStream.cpp
80     TestNetscapePlugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp
81     TestNetscapePlugin/Tests/FormValue.cpp
82     TestNetscapePlugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp
83     TestNetscapePlugin/Tests/GetURLWithJavaScriptURL.cpp
84     TestNetscapePlugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp
85     TestNetscapePlugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp
86     TestNetscapePlugin/Tests/LogNPPSetWindow.cpp
87     TestNetscapePlugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp
88     TestNetscapePlugin/Tests/NPPNewFails.cpp
89     TestNetscapePlugin/Tests/NPPSetWindowCalledDuringDestruction.cpp
90     TestNetscapePlugin/Tests/NPRuntimeCallsWithNullNPP.cpp
91     TestNetscapePlugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp
92     TestNetscapePlugin/Tests/NPRuntimeRemoveProperty.cpp
93     TestNetscapePlugin/Tests/NullNPPGetValuePointer.cpp
94     TestNetscapePlugin/Tests/PassDifferentNPPStruct.cpp
95     TestNetscapePlugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp
96     TestNetscapePlugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp
97     TestNetscapePlugin/Tests/PrivateBrowsing.cpp
98     TestNetscapePlugin/Tests/ToStringAndValueOfObject.cpp
99     TestNetscapePlugin/Tests/URLRedirect.cpp
100 )
101
102 set(TestNetscapePlugin_LIBRARIES
103     JavaScriptCore
104     WTF
105     WebCoreTestSupport
106     WebKit
107 )
108
109 list(APPEND TestNetscapePlugin_LIBRARIES
110     WebKit
111 )
112
113 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
114
115 include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES})
116
117 add_executable(DumpRenderTree ${DumpRenderTree_SOURCES})
118 target_link_libraries(DumpRenderTree ${DumpRenderTree_LIBRARIES})
119 set_target_properties(DumpRenderTree PROPERTIES FOLDER "Tools")
120
121 add_library(TestNetscapePlugin SHARED ${TestNetscapePlugin_SOURCES})
122 target_link_libraries(TestNetscapePlugin ${TestNetscapePlugin_LIBRARIES})
123 set_target_properties(TestNetscapePlugin PROPERTIES FOLDER "Tools")