[ATK] Missing WTR AccessibilityUIElement::addNotificationListener implementation
[WebKit-https.git] / Tools / WebKitTestRunner / CMakeLists.txt
1 set(WEBKIT_TESTRUNNER_DIR "${TOOLS_DIR}/WebKitTestRunner")
2 set(WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR "${TOOLS_DIR}/WebKitTestRunner/InjectedBundle")
3
4 file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/InjectedBundle)
5
6 set(WebKitTestRunner_SOURCES
7     ${WEBKIT_TESTRUNNER_DIR}/CyclicRedundancyCheck.cpp
8     ${WEBKIT_TESTRUNNER_DIR}/GeolocationProviderMock.cpp
9     ${WEBKIT_TESTRUNNER_DIR}/PixelDumpSupport.cpp
10     ${WEBKIT_TESTRUNNER_DIR}/TestController.cpp
11     ${WEBKIT_TESTRUNNER_DIR}/TestInvocation.cpp
12     ${WEBKIT_TESTRUNNER_DIR}/WebNotificationProvider.cpp
13     ${WEBKIT_TESTRUNNER_DIR}/WorkQueueManager.cpp
14 )
15
16 set(WebKitTestRunner_LIBRARIES
17     JavaScriptCore
18     WebCore
19     WebCoreTestSupport
20     WebKit2
21 )
22
23 set(WebKitTestRunner_INCLUDE_DIRECTORIES
24     ${WEBKIT_TESTRUNNER_DIR}
25     ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle
26     ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/Bindings
27     ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/atk
28     ${JAVASCRIPTCORE_DIR}
29     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
30     ${WEBCORE_DIR}/editing
31     ${WEBCORE_DIR}/platform
32     ${WEBCORE_DIR}/platform/graphics
33     ${WEBCORE_DIR}/platform/graphics/harfbuzz
34     ${WEBCORE_DIR}/platform/graphics/harfbuzz/ng
35     ${WEBCORE_DIR}/platform/network
36     ${WEBCORE_DIR}/platform/text
37     ${WEBCORE_DIR}/testing/js
38     ${WEBKIT2_DIR}/Shared
39     ${WEBKIT2_DIR}/Shared/API/c
40     ${WEBKIT2_DIR}/Shared/Plugins
41     ${WEBKIT2_DIR}/UIProcess
42     ${WEBKIT2_DIR}/UIProcess/API/C/efl
43     ${WEBKIT2_DIR}/UIProcess/API/C/soup
44     ${WEBKIT2_DIR}/WebProcess/InjectedBundle
45     ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c
46     ${WTF_DIR}
47     ${DERIVED_SOURCES_WEBCORE_DIR}
48     ${DERIVED_SOURCES_WEBCORE_DIR}/include
49     ${DERIVED_SOURCES_WEBKIT2_DIR}/include
50     ${DERIVED_SOURCES_DIR}/InjectedBundle
51     ${CMAKE_BINARY_DIR}
52     ${CMAKE_SOURCE_DIR}/Source
53     ${LIBSOUP_INCLUDE_DIRS}
54 )
55
56 set(WebKitTestRunnerInjectedBundle_SOURCES
57     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityController.cpp
58     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityTextMarker.cpp
59     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityTextMarkerRange.cpp
60     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/AccessibilityUIElement.cpp
61     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/EventSendingController.cpp
62     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/GCController.cpp
63     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundle.cpp
64     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundleMain.cpp
65     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundlePage.cpp
66     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TestRunner.cpp
67     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TextInputController.cpp
68
69     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/JSWrapper.cpp
70 )
71
72 set(WebKitTestRunnerInjectedBundle_IDL_FILES
73     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityController.idl"
74     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityTextMarker.idl"
75     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityTextMarkerRange.idl"
76     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/AccessibilityUIElement.idl"
77     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/EventSendingController.idl"
78     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/GCController.idl"
79     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/TestRunner.idl"
80     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings/TextInputController.idl"
81 )
82
83 set(WebKitTestRunnerInjectedBundle_LIBRARIES
84     ${WebKitTestRunner_LIBRARIES}
85     ${ATK_LIBRARIES}
86     ${ECORE_LIBRARIES}
87     ${ECORE_FILE_LIBRARIES}
88     ${FONTCONFIG_LIBRARIES}
89     ${GLIB_LIBRARIES}
90     ${GLIB_GOBJECT_LIBRARIES}
91 )
92
93 GENERATE_BINDINGS(WebKitTestRunnerInjectedBundle_SOURCES
94     "${WebKitTestRunnerInjectedBundle_IDL_FILES}"
95     "${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings"
96     "--include=${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/Bindings"
97     "${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}"
98     ${DERIVED_SOURCES_DIR}/InjectedBundle JS TestRunner
99     ${WEBCORE_DIR}/bindings/scripts/IDLAttributes.txt)
100
101 INCLUDE_IF_EXISTS(${WEBKIT_TESTRUNNER_DIR}/Platform${PORT}.cmake)
102
103 include_directories(${WebKitTestRunner_INCLUDE_DIRECTORIES})
104
105 add_library(TestRunnerInjectedBundle SHARED ${WebKitTestRunnerInjectedBundle_SOURCES})
106 target_link_libraries(TestRunnerInjectedBundle ${WebKitTestRunnerInjectedBundle_LIBRARIES})
107
108 add_executable(WebKitTestRunner ${WebKitTestRunner_SOURCES})
109 target_link_libraries(WebKitTestRunner ${WebKitTestRunner_LIBRARIES})
110
111 add_dependencies(WebKit2 ${ForwardingHeadersForWebKitTestRunner_NAME})
112 add_dependencies(WebKit2 ${ForwardingNetworkHeadersForWebKitTestRunner_NAME})