Add general CMakeLists.txt for DRT
[WebKit-https.git] / Tools / DumpRenderTree / PlatformEfl.cmake
1 list(APPEND DumpRenderTree_SOURCES
2     atk/AccessibilityCallbacksAtk.cpp
3     atk/AccessibilityControllerAtk.cpp
4     atk/AccessibilityNotificationHandlerAtk.cpp
5     atk/AccessibilityUIElementAtk.cpp
6
7     cairo/PixelDumpSupportCairo.cpp
8
9     efl/AccessibilityControllerEfl.cpp
10     efl/DumpHistoryItem.cpp
11     efl/DumpRenderTree.cpp
12     efl/DumpRenderTreeChrome.cpp
13     efl/DumpRenderTreeView.cpp
14     efl/EditingCallbacks.cpp
15     efl/EventSender.cpp
16     efl/FontManagement.cpp
17     efl/GCControllerEfl.cpp
18     efl/JSStringUtils.cpp
19     efl/PixelDumpSupportEfl.cpp
20     efl/TestRunnerEfl.cpp
21     efl/TextInputController.cpp
22     efl/WorkQueueItemEfl.cpp
23 )
24
25 list(APPEND DumpRenderTree_LIBRARIES
26     ${CAIRO_LIBRARIES}
27     ${ECORE_EVAS_LIBRARIES}
28     ${ECORE_FILE_LIBRARIES}
29     ${ECORE_INPUT_LIBRARIES}
30     ${ECORE_LIBRARIES}
31     ${EDJE_LIBRARIES}
32     ${EINA_LIBRARIES}
33     ${EO_LIBRARIES}
34     ${EVAS_LIBRARIES}
35     ${FONTCONFIG_LIBRARIES}
36     ${GLIB_LIBRARIES}
37     ${LIBSOUP_LIBRARIES}
38     ${LIBXML2_LIBRARIES}
39     ${LIBXSLT_LIBRARIES} -lm
40     ${SQLITE_LIBRARIES}
41 )
42
43 list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
44     "${WEBKIT_DIR}/efl/ewk"
45     ${WEBKIT_DIR}/efl
46     ${WEBKIT_DIR}/efl/WebCoreSupport
47     ${WEBCORE_DIR}/platform/graphics/cairo
48     ${WEBCORE_DIR}/platform/network/soup
49     ${TOOLS_DIR}/DumpRenderTree/atk
50     ${TOOLS_DIR}/DumpRenderTree/cairo
51     ${TOOLS_DIR}/DumpRenderTree/efl
52     ${CAIRO_INCLUDE_DIRS}
53     ${ECORE_INCLUDE_DIRS}
54     ${ECORE_INCLUDE_DIRS}
55     ${ECORE_EVAS_INCLUDE_DIRS}
56     ${ECORE_FILE_INCLUDE_DIRS}
57     ${ECORE_INPUT_INCLUDE_DIRS}
58     ${EDJE_INCLUDE_DIRS}
59     ${EINA_INCLUDE_DIRS}
60     ${EO_INCLUDE_DIRS}
61     ${EVAS_INCLUDE_DIRS}
62     ${FONTCONFIG_INCLUDE_DIR}
63     ${GLIB_INCLUDE_DIRS}
64     ${LIBSOUP_INCLUDE_DIRS}
65 )
66
67 if (ENABLE_ACCESSIBILITY)
68     list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
69         ${TOOLS_DIR}/DumpRenderTree/atk
70         ${ATK_INCLUDE_DIRS}
71     )
72     list(APPEND DumpRenderTree_LIBRARIES
73         ${ATK_LIBRARIES}
74     )
75 endif ()
76
77 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory
78 # structure. See <https://bugs.webkit.org/show_bug.cgi?id=81475>.
79 add_definitions(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
80                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies/Source/webkitgtk-test-fonts-0.0.3")