Unreviewed, fix build failure
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformWPE.cmake
1 find_package(Libxkbcommon 0.4.0 REQUIRED)
2 find_package(WPEBackend-fdo REQUIRED)
3
4 add_custom_target(WebKitTestRunner-forwarding-headers
5     COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_TESTRUNNER_DIR} --output ${FORWARDING_HEADERS_DIR} --platform wpe
6 )
7
8 set(ForwardingHeadersForWebKitTestRunner_NAME WebKitTestRunner-forwarding-headers)
9
10 list(APPEND WebKitTestRunner_SOURCES
11     ${WEBKIT_TESTRUNNER_DIR}/cairo/TestInvocationCairo.cpp
12
13     ${WEBKIT_TESTRUNNER_DIR}/wpe/EventSenderProxyWPE.cpp
14     ${WEBKIT_TESTRUNNER_DIR}/wpe/PlatformWebViewWPE.cpp
15     ${WEBKIT_TESTRUNNER_DIR}/wpe/TestControllerWPE.cpp
16     ${WEBKIT_TESTRUNNER_DIR}/wpe/main.cpp
17 )
18
19 list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
20     ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/wpe
21     ${FORWARDING_HEADERS_DIR}
22     ${TOOLS_DIR}/wpe/backends
23 )
24
25 list(APPEND WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES
26     ${CAIRO_INCLUDE_DIRS}
27     ${GLIB_INCLUDE_DIRS}
28     ${LIBXKBCOMMON_INCLUDE_DIRS}
29     ${WPEBACKEND_FDO_INCLUDE_DIRS}
30 )
31
32 list(APPEND WebKitTestRunner_LIBRARIES
33     ${CAIRO_LIBRARIES}
34     ${GLIB_LIBRARIES}
35     ${LIBXKBCOMMON_LIBRARIES}
36     ${WPEBACKEND_FDO_LIBRARIES}
37     WPEToolingBackends
38 )
39
40 set(WebKitTestRunnerInjectedBundle_LIBRARIES
41     ${CAIRO_LIBRARIES}
42     ${GLIB_LIBRARIES}
43     WebCoreTestSupport
44     WebKit
45 )
46
47 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
48     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/AccessibilityControllerWPE.cpp
49     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/AccessibilityUIElementWPE.cpp
50     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/ActivateFontsWPE.cpp
51     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/InjectedBundleWPE.cpp
52     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/TestRunnerWPE.cpp
53 )
54
55 add_definitions(
56     -DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
57     -DTOP_LEVEL_DIR="${CMAKE_SOURCE_DIR}"
58 )