[GTK][EFL] Shares WebKit-GTK's DumpRenderTree accessibility implementation with other...
[WebKit-https.git] / Tools / DumpRenderTree / efl / CMakeLists.txt
1 set(DumpRenderTree_SOURCES
2     ${TOOLS_DIR}/DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp
3     ${TOOLS_DIR}/DumpRenderTree/DumpRenderTreeCommon.cpp
4     ${TOOLS_DIR}/DumpRenderTree/CyclicRedundancyCheck.cpp
5     ${TOOLS_DIR}/DumpRenderTree/GCController.cpp
6     ${TOOLS_DIR}/DumpRenderTree/TestRunner.cpp
7     ${TOOLS_DIR}/DumpRenderTree/PixelDumpSupport.cpp
8     ${TOOLS_DIR}/DumpRenderTree/WorkQueue.cpp
9     ${TOOLS_DIR}/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp
10     ${TOOLS_DIR}/DumpRenderTree/efl/DumpHistoryItem.cpp
11     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTree.cpp
12     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTreeChrome.cpp
13     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTreeView.cpp
14     ${TOOLS_DIR}/DumpRenderTree/efl/EditingCallbacks.cpp
15     ${TOOLS_DIR}/DumpRenderTree/efl/EventSender.cpp
16     ${TOOLS_DIR}/DumpRenderTree/efl/FontManagement.cpp
17     ${TOOLS_DIR}/DumpRenderTree/efl/GCControllerEfl.cpp
18     ${TOOLS_DIR}/DumpRenderTree/efl/JSStringUtils.cpp
19     ${TOOLS_DIR}/DumpRenderTree/efl/TestRunnerEfl.cpp
20     ${TOOLS_DIR}/DumpRenderTree/efl/PixelDumpSupportEfl.cpp
21     ${TOOLS_DIR}/DumpRenderTree/efl/TextInputController.cpp
22     ${TOOLS_DIR}/DumpRenderTree/efl/WorkQueueItemEfl.cpp
23 )
24
25 set(DumpRenderTree_LIBRARIES
26     ${JavaScriptCore_LIBRARY_NAME}
27     ${WebCoreTestSupport_LIBRARY_NAME}
28     ${WebCore_LIBRARY_NAME}
29     ${WebKit_LIBRARY_NAME}
30     ${WTF_LIBRARY_NAME}
31     ${CAIRO_LIBRARIES}
32     ${ECORE_LIBRARIES}
33     ${ECORE_EVAS_LIBRARIES}
34     ${ECORE_FILE_LIBRARIES}
35     ${ECORE_INPUT_LIBRARIES}
36     ${EDJE_LIBRARIES}
37     ${EINA_LIBRARIES}
38     ${EO_LIBRARIES}
39     ${EVAS_LIBRARIES}
40     ${FONTCONFIG_LIBRARIES}
41     ${LIBXML2_LIBRARIES}
42     ${LIBXSLT_LIBRARIES}
43     ${SQLITE_LIBRARIES}
44     ${GLIB_LIBRARIES}
45     ${LIBSOUP_LIBRARIES}
46 )
47
48 set(DumpRenderTree_INCLUDE_DIRECTORIES
49     "${WEBKIT_DIR}/efl/ewk"
50     ${WEBKIT_DIR}/efl
51     ${WEBKIT_DIR}/efl/WebCoreSupport
52     ${WEBCORE_DIR}
53     ${WEBCORE_DIR}/bridge
54     ${WEBCORE_DIR}/bridge/jsc
55     ${WEBCORE_DIR}/bindings
56     ${WEBCORE_DIR}/dom
57     ${WEBCORE_DIR}/editing
58     ${WEBCORE_DIR}/css
59     ${WEBCORE_DIR}/html
60     ${WEBCORE_DIR}/inspector
61     ${WEBCORE_DIR}/page
62     ${WEBCORE_DIR}/page/animation
63     ${WEBCORE_DIR}/platform
64     ${WEBCORE_DIR}/platform/animation
65     ${WEBCORE_DIR}/platform/text
66     ${WEBCORE_DIR}/platform/graphics
67     ${WEBCORE_DIR}/platform/graphics/cairo
68     ${WEBCORE_DIR}/platform/graphics/transforms
69     ${WEBCORE_DIR}/platform/network
70     ${WEBCORE_DIR}/platform/network/soup
71     ${WEBCORE_DIR}/plugins
72     ${WEBCORE_DIR}/rendering
73     ${WEBCORE_DIR}/rendering/style
74     ${WEBCORE_DIR}/history
75     ${WEBCORE_DIR}/loader
76     ${WEBCORE_DIR}/loader/cache
77     ${WEBCORE_DIR}/loader/icon
78     ${JAVASCRIPTCORE_DIR}
79     ${JAVASCRIPTCORE_DIR}/API
80     ${JAVASCRIPTCORE_DIR}/assembler
81     ${JAVASCRIPTCORE_DIR}/bytecode
82     ${JAVASCRIPTCORE_DIR}/dfg
83     ${JAVASCRIPTCORE_DIR}/disassembler
84     ${JAVASCRIPTCORE_DIR}/heap
85     ${JAVASCRIPTCORE_DIR}/interpreter
86     ${JAVASCRIPTCORE_DIR}/jit
87     ${JAVASCRIPTCORE_DIR}/llint
88     ${JAVASCRIPTCORE_DIR}/profiler
89     ${JAVASCRIPTCORE_DIR}/runtime
90     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
91     ${TOOLS_DIR}/DumpRenderTree
92     ${TOOLS_DIR}/DumpRenderTree/atk
93     ${TOOLS_DIR}/DumpRenderTree/cairo
94     ${TOOLS_DIR}/DumpRenderTree/efl
95     ${WTF_DIR}
96     ${CMAKE_SOURCE_DIR}/Source
97     ${CMAKE_BINARY_DIR}
98     ${DERIVED_SOURCES_WEBCORE_DIR}
99     ${WEBCORE_DIR}/bindings/js
100     ${WEBCORE_DIR}/testing/js
101     ${CAIRO_INCLUDE_DIRS}
102     ${ECORE_INCLUDE_DIRS}
103     ${ECORE_INCLUDE_DIRS}
104     ${ECORE_EVAS_INCLUDE_DIRS}
105     ${ECORE_FILE_INCLUDE_DIRS}
106     ${ECORE_INPUT_INCLUDE_DIRS}
107     ${EDJE_INCLUDE_DIRS}
108     ${EINA_INCLUDE_DIRS}
109     ${EO_INCLUDE_DIRS}
110     ${EVAS_INCLUDE_DIRS}
111     ${FONTCONFIG_INCLUDE_DIR}
112     ${GLIB_INCLUDE_DIRS}
113     ${LIBSOUP_INCLUDE_DIRS}
114 )
115
116 if (ENABLE_ACCESSIBILITY)
117     list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
118         ${ATK_INCLUDE_DIRS}
119     )
120     list(APPEND DumpRenderTree_LIBRARIES
121         ${ATK_LIBRARIES}
122     )
123 endif ()
124
125 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory
126 # structure. See <https://bugs.webkit.org/show_bug.cgi?id=81475>.
127 add_definitions(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
128                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies/Source/webkitgtk-test-fonts-0.0.3"
129                 -DDATA_DIR="${THEME_BINARY_DIR}")
130
131 include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES})
132
133 add_executable(DumpRenderTree ${DumpRenderTree_SOURCES})
134 target_link_libraries(DumpRenderTree ${DumpRenderTree_LIBRARIES})
135 set_target_properties(DumpRenderTree PROPERTIES FOLDER "Tools")