[EFL][GTK] Adapt accessibility feature to WebKitTestRunner.
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformEfl.cmake
1 ADD_CUSTOM_TARGET(forwarding-headersEflForWebKitTestRunner
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT_TESTRUNNER_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
3 )
4 SET(ForwardingHeadersForWebKitTestRunner_NAME forwarding-headersEflForWebKitTestRunner)
5
6 ADD_CUSTOM_TARGET(forwarding-headersSoupForWebKitTestRunner
7     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT_TESTRUNNER_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
8 )
9 SET(ForwardingNetworkHeadersForWebKitTestRunner_NAME forwarding-headersSoupForWebKitTestRunner)
10
11 LIST(APPEND WebKitTestRunner_SOURCES
12     ${WEBKIT_TESTRUNNER_DIR}/cairo/TestInvocationCairo.cpp
13
14     ${WEBKIT_TESTRUNNER_DIR}/efl/EventSenderProxyEfl.cpp
15     ${WEBKIT_TESTRUNNER_DIR}/efl/PlatformWebViewEfl.cpp
16     ${WEBKIT_TESTRUNNER_DIR}/efl/TestControllerEfl.cpp
17     ${WEBKIT_TESTRUNNER_DIR}/efl/main.cpp
18 )
19
20 LIST(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
21     ${TOOLS_DIR}/DumpRenderTree/efl/
22     ${WEBKIT2_DIR}/UIProcess/API/efl
23     "${WTF_DIR}/wtf/gobject"
24     ${ATK_INCLUDE_DIRS}
25     ${CAIRO_INCLUDE_DIRS}
26     ${ECORE_INCLUDE_DIRS}
27     ${ECORE_EVAS_INCLUDE_DIRS}
28     ${EINA_INCLUDE_DIRS}
29     ${EVAS_INCLUDE_DIRS}
30     ${GLIB_INCLUDE_DIRS}
31 )
32
33 LIST(APPEND WebKitTestRunner_LIBRARIES
34     ${ATK_LIBRARIES}
35     ${CAIRO_LIBRARIES}
36     ${ECORE_LIBRARIES}
37     ${ECORE_EVAS_LIBRARIES}
38     ${EINA_LIBRARIES}
39     ${EVAS_LIBRARIES}
40     ${GLIB_LIBRARIES}
41     ${OPENGL_LIBRARIES}
42     ${WTF_LIBRARY_NAME}
43 )
44
45 IF (ENABLE_ECORE_X)
46     LIST(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
47         ${ECORE_X_INCLUDE_DIRS}
48     )
49
50     LIST(APPEND WebKitTestRunner_LIBRARIES
51         ${ECORE_X_LIBRARIES}
52         ${X11_Xext_LIB}
53     )
54 ENDIF ()
55
56 LIST(APPEND WebKitTestRunnerInjectedBundle_SOURCES
57     ${TOOLS_DIR}/DumpRenderTree/efl/FontManagement.cpp
58
59     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityControllerAtk.cpp
60     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityUIElementAtk.cpp
61     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/ActivateFontsEfl.cpp
62     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/InjectedBundleEfl.cpp
63     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/TestRunnerEfl.cpp
64 )
65
66 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory
67 # structure. See <https://bugs.webkit.org/show_bug.cgi?id=81475>.
68 ADD_DEFINITIONS(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
69                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies/Source/webkitgtk-test-fonts-0.0.3"
70                 -DTHEME_DIR="${THEME_BINARY_DIR}")