Set getUserMedia permission to true by default on WTR
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformWPE.cmake
1 find_package(LibGBM REQUIRED)
2 find_package(WPEBackend-mesa REQUIRED)
3
4 add_custom_target(WebKitTestRunner-forwarding-headers
5     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_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/HeadlessViewBackend.cpp
15     ${WEBKIT_TESTRUNNER_DIR}/wpe/PlatformWebViewWPE.cpp
16     ${WEBKIT_TESTRUNNER_DIR}/wpe/TestControllerWPE.cpp
17     ${WEBKIT_TESTRUNNER_DIR}/wpe/main.cpp
18 )
19
20 list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
21     ${WEBKIT_TESTRUNNER_DIR}/InjectedBundle/wpe
22     ${FORWARDING_HEADERS_DIR}
23     ${CAIRO_INCLUDE_DIRS}
24     ${GLIB_INCLUDE_DIRS}
25     ${LIBGBM_INCLUDE_DIRS}
26     ${WPE_MESA_INCLUDE_DIRS}
27 )
28
29 list(APPEND WebKitTestRunner_LIBRARIES
30     ${CAIRO_LIBRARIES}
31     ${GLIB_LIBRARIES}
32     ${LIBGBM_LIBRARIES}
33     ${WPE_MESA_LIBRARIES}
34 )
35
36 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
37     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/AccessibilityControllerWPE.cpp
38     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/AccessibilityUIElementWPE.cpp
39     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/ActivateFontsWPE.cpp
40     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/InjectedBundleWPE.cpp
41     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/wpe/TestRunnerWPE.cpp
42 )
43
44 add_definitions(
45     -DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
46     -DTOP_LEVEL_DIR="${CMAKE_SOURCE_DIR}"
47 )