[EFL][GTK] REGRESSION(204877): Fix the clean build
[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} --include-path ${WEBKIT_TESTRUNNER_SHARED_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     WebCore
35     WebCorePlatformGTK
36 )
37
38 set(WebKitTestRunnerInjectedBundle_LIBRARIES
39     ${ATK_LIBRARIES}
40     ${FONTCONFIG_LIBRARIES}
41     ${GLIB_LIBRARIES}
42     ${GTK3_LIBRARIES}
43     WebCoreTestSupport
44     WebKit2
45 )
46
47 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
48     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityControllerAtk.cpp
49     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityNotificationHandlerAtk.cpp
50     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityUIElementAtk.cpp
51
52     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/ActivateFontsGtk.cpp
53     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/InjectedBundleGtk.cpp
54     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/InjectedBundleUtilities.cpp
55     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/gtk/TestRunnerGtk.cpp
56 )
57
58 add_definitions(
59     -DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
60     -DTOP_LEVEL_DIR="${CMAKE_SOURCE_DIR}"
61 )