[GTK] Remove duplicate entries in WebKitTestRunner_SOURCES
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformGTK.cmake
1 add_custom_target(WebKitTestRunner-forwarding-headers
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_TESTRUNNER_DIR} --output ${FORWARDING_HEADERS_DIR} --platform gtk --platform soup
3 )
4
5 set(ForwardingHeadersForWebKitTestRunner_NAME WebKitTestRunner-forwarding-headers)
6
7 list(APPEND WebKitTestRunner_SOURCES
8     ${WEBKIT_TESTRUNNER_DIR}/cairo/TestInvocationCairo.cpp
9
10     ${WEBKIT_TESTRUNNER_DIR}/gtk/EventSenderProxyGtk.cpp
11     ${WEBKIT_TESTRUNNER_DIR}/gtk/PlatformWebViewGtk.cpp
12     ${WEBKIT_TESTRUNNER_DIR}/gtk/TestControllerGtk.cpp
13     ${WEBKIT_TESTRUNNER_DIR}/gtk/main.cpp
14 )
15
16 list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
17     ${FORWARDING_HEADERS_DIR}
18     ${WTF_DIR}/wtf/glib
19 )
20
21 list(APPEND WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES
22     ${ATK_INCLUDE_DIRS}
23     ${CAIRO_INCLUDE_DIRS}
24     ${GTK3_INCLUDE_DIRS}
25     ${GLIB_INCLUDE_DIRS}
26 )
27
28 list(APPEND WebKitTestRunner_LIBRARIES
29     ${ATK_LIBRARIES}
30     ${CAIRO_LIBRARIES}
31     ${GTK3_LIBRARIES}
32     ${GLIB_LIBRARIES}
33     WTF
34     WebCorePlatformGTK
35 )
36
37 set(WebKitTestRunnerInjectedBundle_LIBRARIES
38     ${ATK_LIBRARIES}
39     ${FONTCONFIG_LIBRARIES}
40     ${GLIB_LIBRARIES}
41     ${GTK3_LIBRARIES}
42     WebCoreTestSupport
43     WebKit2
44 )
45
46 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
47     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityControllerAtk.cpp
48     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityNotificationHandlerAtk.cpp
49     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityUIElementAtk.cpp
50
51     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/ActivateFontsGtk.cpp
52     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/InjectedBundleGtk.cpp
53     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/InjectedBundleUtilities.cpp
54     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/TestRunnerGtk.cpp
55 )
56
57 add_definitions(
58     -DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
59     -DTOP_LEVEL_DIR="${CMAKE_SOURCE_DIR}"
60 )