[CMake][EFL] Remove unnecessary include, library path in WebKitTestRunner/PlatformEfl...
[WebKit-https.git] / Tools / WebKitTestRunner / PlatformEfl.cmake
1 add_custom_target(forwarding-headersEflForWebKitTestRunner
2     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_TESTRUNNER_DIR} --output ${DERIVED_SOURCES_WEBKIT2_DIR}/include --platform efl --platform soup
3 )
4 set(ForwardingHeadersForWebKitTestRunner_NAME forwarding-headersEflForWebKitTestRunner)
5
6 list(APPEND WebKitTestRunner_SOURCES
7     ${WEBKIT_TESTRUNNER_DIR}/cairo/TestInvocationCairo.cpp
8
9     ${WEBKIT_TESTRUNNER_DIR}/efl/EventSenderProxyEfl.cpp
10     ${WEBKIT_TESTRUNNER_DIR}/efl/PlatformWebViewEfl.cpp
11     ${WEBKIT_TESTRUNNER_DIR}/efl/TestControllerEfl.cpp
12     ${WEBKIT_TESTRUNNER_DIR}/efl/main.cpp
13 )
14
15 list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
16     ${DERIVED_SOURCES_WEBKIT2_DIR}/include
17     ${WEBKIT2_DIR}/UIProcess/API/efl
18     ${CAIRO_INCLUDE_DIRS}
19     ${ECORE_INCLUDE_DIRS}
20     ${ECORE_EVAS_INCLUDE_DIRS}
21     ${ECORE_FILE_INCLUDE_DIRS}
22 )
23
24 list(APPEND WebKitTestRunner_LIBRARIES
25     ${CAIRO_LIBRARIES}
26     ${ECORE_LIBRARIES}
27     ${ECORE_EVAS_LIBRARIES}
28     ${EINA_LIBRARIES}
29     ${EVAS_LIBRARIES}
30 )
31
32 if (ENABLE_ECORE_X)
33     list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
34         ${ECORE_X_INCLUDE_DIRS}
35     )
36
37     list(APPEND WebKitTestRunner_LIBRARIES
38         ${ECORE_X_LIBRARIES}
39         ${X11_Xext_LIB}
40     )
41 endif ()
42
43 if (ENABLE_ACCESSIBILITY)
44     list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
45         ${ATK_INCLUDE_DIRS}
46     )
47     list(APPEND WebKitTestRunner_LIBRARIES
48         ${ATK_LIBRARIES}
49     )
50 endif ()
51
52 list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
53     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityControllerAtk.cpp
54     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityNotificationHandlerAtk.cpp
55     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/atk/AccessibilityUIElementAtk.cpp
56
57     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/ActivateFontsEfl.cpp
58     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/FontManagement.cpp
59     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/InjectedBundleEfl.cpp
60     ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/TestRunnerEfl.cpp
61 )
62
63 # FIXME: EFL port needs to have own test font and font configure instead of gtk test font in future
64 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory structure.
65 add_definitions(-DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
66                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/DependenciesEFL/Source/webkitgtk-test-fonts")