blob: 89faeded44d66005e7d26fd6cf50f0ee5332a391 [file] [log] [blame]
find_package(Libxkbcommon 0.4.0 REQUIRED)
find_package(WPEBackend-fdo REQUIRED)
add_custom_target(WebKitTestRunner-forwarding-headers
COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_TESTRUNNER_DIR} --output ${FORWARDING_HEADERS_DIR} --platform wpe
)
set(ForwardingHeadersForWebKitTestRunner_NAME WebKitTestRunner-forwarding-headers)
list(APPEND WebKitTestRunner_SOURCES
${WEBKIT_TESTRUNNER_DIR}/cairo/TestInvocationCairo.cpp
${WEBKIT_TESTRUNNER_DIR}/wpe/EventSenderProxyWPE.cpp
${WEBKIT_TESTRUNNER_DIR}/wpe/PlatformWebViewWPE.cpp
${WEBKIT_TESTRUNNER_DIR}/wpe/TestControllerWPE.cpp
${WEBKIT_TESTRUNNER_DIR}/wpe/main.cpp
)
list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/wpe
${FORWARDING_HEADERS_DIR}
${TOOLS_DIR}/wpe/HeadlessViewBackend
)
list(APPEND WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES
${CAIRO_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
${LIBXKBCOMMON_INCLUDE_DIRS}
${WPEBACKEND_FDO_INCLUDE_DIRS}
)
list(APPEND WebKitTestRunner_LIBRARIES
${CAIRO_LIBRARIES}
${GLIB_LIBRARIES}
${LIBXKBCOMMON_LIBRARIES}
${WPEBACKEND_FDO_LIBRARIES}
WPEHeadlessViewBackend
)
set(WebKitTestRunnerInjectedBundle_LIBRARIES
${CAIRO_LIBRARIES}
${GLIB_LIBRARIES}
WebCoreTestSupport
WebKit
)
list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/AccessibilityControllerWPE.cpp
${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/AccessibilityUIElementWPE.cpp
${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/ActivateFontsWPE.cpp
${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/InjectedBundleWPE.cpp
${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/TestRunnerWPE.cpp
)
add_definitions(
-DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
-DTOP_LEVEL_DIR="${CMAKE_SOURCE_DIR}"
)