1c6947258622e12b0214e4cc32945d5d9a54e436
[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
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     ${CAIRO_LIBRARIES}
35     ${ECORE_LIBRARIES}
36     ${ECORE_EVAS_LIBRARIES}
37     ${EINA_LIBRARIES}
38     ${EVAS_LIBRARIES}
39     ${GLIB_LIBRARIES}
40     ${OPENGL_LIBRARIES}
41     ${WTF_LIBRARY_NAME}
42 )
43
44 IF (ENABLE_ECORE_X)
45     LIST(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
46         ${ECORE_X_INCLUDE_DIRS}
47     )
48
49     LIST(APPEND WebKitTestRunner_LIBRARIES
50         ${ECORE_X_LIBRARIES}
51         ${X11_Xext_LIB}
52     )
53 ENDIF ()
54
55 LIST(APPEND WebKitTestRunnerInjectedBundle_SOURCES
56     ${TOOLS_DIR}/DumpRenderTree/efl/FontManagement.cpp
57
58     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/ActivateFontsEfl.cpp
59     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/InjectedBundleEfl.cpp
60     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/TestRunnerEfl.cpp
61 )
62
63 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory
64 # structure. See <https://bugs.webkit.org/show_bug.cgi?id=81475>.
65 ADD_DEFINITIONS(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
66                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies/Source/webkitgtk-test-fonts-0.0.3"
67                 -DTHEME_DIR="${THEME_BINARY_DIR}")