[Release] Webkit2-efl-123997_0.11.86
[framework/web/webkit-efl.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     ${ECORE_X_INCLUDE_DIRS}
29     ${EINA_INCLUDE_DIRS}
30     ${EVAS_INCLUDE_DIRS}
31     ${GLIB_INCLUDE_DIRS}
32 )
33
34 LIST(APPEND WebKitTestRunner_LIBRARIES
35     ${CAIRO_LIBRARIES}
36     ${ECORE_LIBRARIES}
37     ${ECORE_EVAS_LIBRARIES}
38     ${ECORE_X_LIBRARIES}
39     ${EINA_LIBRARIES}
40     ${EVAS_LIBRARIES}
41     ${GLIB_LIBRARIES}
42     ${WTF_LIBRARY_NAME}
43 )
44
45 LIST(APPEND WebKitTestRunnerInjectedBundle_SOURCES
46     ${TOOLS_DIR}/DumpRenderTree/efl/FontManagement.cpp
47
48     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/ActivateFontsEfl.cpp
49     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/InjectedBundleEfl.cpp
50     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/LayoutTestControllerEfl.cpp
51 )
52
53 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory
54 # structure. See <https://bugs.webkit.org/show_bug.cgi?id=81475>.
55 ADD_DEFINITIONS(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
56                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies/Source/webkitgtk-test-fonts-0.0.3"
57                 -DTHEME_DIR="${THEME_BINARY_DIR}")