[EFL][DRT] Implement TextInputController.
[WebKit-https.git] / Tools / DumpRenderTree / efl / CMakeLists.txt
1 SET(DumpRenderTree_SOURCES
2     ${TOOLS_DIR}/DumpRenderTree/CyclicRedundancyCheck.cpp
3     ${TOOLS_DIR}/DumpRenderTree/GCController.cpp
4     ${TOOLS_DIR}/DumpRenderTree/LayoutTestController.cpp
5     ${TOOLS_DIR}/DumpRenderTree/PixelDumpSupport.cpp
6     ${TOOLS_DIR}/DumpRenderTree/WorkQueue.cpp
7     ${TOOLS_DIR}/DumpRenderTree/cairo/PixelDumpSupportCairo.cpp
8     ${TOOLS_DIR}/DumpRenderTree/efl/DumpHistoryItem.cpp
9     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTree.cpp
10     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTreeChrome.cpp
11     ${TOOLS_DIR}/DumpRenderTree/efl/DumpRenderTreeView.cpp
12     ${TOOLS_DIR}/DumpRenderTree/efl/EventSender.cpp
13     ${TOOLS_DIR}/DumpRenderTree/efl/FontManagement.cpp
14     ${TOOLS_DIR}/DumpRenderTree/efl/GCControllerEfl.cpp
15     ${TOOLS_DIR}/DumpRenderTree/efl/JSStringUtils.cpp
16     ${TOOLS_DIR}/DumpRenderTree/efl/LayoutTestControllerEfl.cpp
17     ${TOOLS_DIR}/DumpRenderTree/efl/PixelDumpSupportEfl.cpp
18     ${TOOLS_DIR}/DumpRenderTree/efl/TextInputController.cpp
19     ${TOOLS_DIR}/DumpRenderTree/efl/WorkQueueItemEfl.cpp
20 )
21
22 SET(ImageDiff_SOURCES
23     ${TOOLS_DIR}/DumpRenderTree/efl/ImageDiff.cpp
24 )
25
26 SET(DumpRenderTree_LIBRARIES
27     ${JavaScriptCore_LIBRARY_NAME}
28     ${WebCoreTestSupport_LIBRARY_NAME}
29     ${WebCore_LIBRARY_NAME}
30     ${WebKit_LIBRARY_NAME}
31     ${CAIRO_LIBRARIES}
32     ${ECORE_X_LIBRARIES}
33     ${EDJE_LIBRARIES}
34     ${EFLDEPS_LIBRARIES}
35     ${EVAS_LIBRARIES}
36     ${FONTCONFIG_LIBRARIES}
37     ${LIBXML2_LIBRARIES}
38     ${LIBXSLT_LIBRARIES}
39     ${SQLITE_LIBRARIES}
40     ${Glib_LIBRARIES}
41     ${LIBSOUP24_LIBRARIES}
42 )
43
44 SET(DumpRenderTree_INCLUDE_DIRECTORIES
45     "${WEBKIT_DIR}/efl/ewk"
46     ${WEBKIT_DIR}/efl
47     ${WEBCORE_DIR}
48     ${WEBCORE_DIR}/bridge
49     ${WEBCORE_DIR}/bridge/jsc
50     ${WEBCORE_DIR}/bindings
51     ${WEBCORE_DIR}/dom
52     ${WEBCORE_DIR}/editing
53     ${WEBCORE_DIR}/css
54     ${WEBCORE_DIR}/html
55     ${WEBCORE_DIR}/inspector
56     ${WEBCORE_DIR}/page
57     ${WEBCORE_DIR}/page/animation
58     ${WEBCORE_DIR}/platform
59     ${WEBCORE_DIR}/platform/animation
60     ${WEBCORE_DIR}/platform/text
61     ${WEBCORE_DIR}/platform/graphics
62     ${WEBCORE_DIR}/platform/graphics/cairo
63     ${WEBCORE_DIR}/platform/network
64     ${WEBCORE_DIR}/platform/network/soup
65     ${WEBCORE_DIR}/plugins
66     ${WEBCORE_DIR}/rendering
67     ${WEBCORE_DIR}/rendering/style
68     ${WEBCORE_DIR}/history
69     ${WEBCORE_DIR}/loader
70     ${WEBCORE_DIR}/loader/cache
71     ${WEBCORE_DIR}/loader/icon
72     ${JAVASCRIPTCORE_DIR}
73     ${JAVASCRIPTCORE_DIR}/API
74     ${JAVASCRIPTCORE_DIR}/assembler
75     ${JAVASCRIPTCORE_DIR}/bytecode
76     ${JAVASCRIPTCORE_DIR}/dfg
77     ${JAVASCRIPTCORE_DIR}/heap
78     ${JAVASCRIPTCORE_DIR}/interpreter
79     ${JAVASCRIPTCORE_DIR}/jit
80     ${JAVASCRIPTCORE_DIR}/llint
81     ${JAVASCRIPTCORE_DIR}/runtime
82     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
83     ${TOOLS_DIR}/DumpRenderTree
84     ${TOOLS_DIR}/DumpRenderTree/cairo
85     ${TOOLS_DIR}/DumpRenderTree/efl
86     ${WTF_DIR}
87     ${CMAKE_SOURCE_DIR}/Source
88     ${CMAKE_BINARY_DIR}
89     ${DERIVED_SOURCES_WEBCORE_DIR}
90     ${WEBCORE_DIR}/bindings/js
91     ${WEBCORE_DIR}/testing/js
92     ${CAIRO_INCLUDE_DIRS}
93     ${EDJE_INCLUDE_DIRS}
94     ${EFLDEPS_INCLUDE_DIRS}
95     ${EVAS_INCLUDE_DIRS}
96     ${FONTCONFIG_INCLUDE_DIR}
97     ${Glib_INCLUDE_DIRS}
98     ${LIBSOUP24_INCLUDE_DIRS}
99 )
100
101 SET(DumpRenderTree_LINK_FLAGS
102     ${ECORE_X_LDFLAGS}
103     ${EDJE_LDFLAGS}
104     ${EFLDEPS_LDFLAGS}
105     ${EVAS_LDFLAGS}
106     ${LIBSOUP24_LDFLAGS}
107 )
108
109 # FIXME: DOWNLOADED_FONTS_DIR should not hardcode the directory
110 # structure. See <https://bugs.webkit.org/show_bug.cgi?id=81475>.
111 ADD_DEFINITIONS(-DFONTS_CONF_DIR="${TOOLS_DIR}/DumpRenderTree/gtk/fonts"
112                 -DDOWNLOADED_FONTS_DIR="${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies/Source/webkitgtk-test-fonts-0.0.1"
113                 -DDATA_DIR="${THEME_BINARY_DIR}")
114
115 INCLUDE_DIRECTORIES(${DumpRenderTree_INCLUDE_DIRECTORIES})
116
117 ADD_EXECUTABLE(bin/DumpRenderTree ${DumpRenderTree_SOURCES})
118 TARGET_LINK_LIBRARIES(bin/DumpRenderTree ${DumpRenderTree_LIBRARIES})
119 ADD_TARGET_PROPERTIES(bin/DumpRenderTree LINK_FLAGS "${DumpRenderTree_LINK_FLAGS}")
120 SET_TARGET_PROPERTIES(bin/DumpRenderTree PROPERTIES FOLDER "Tools")
121 SET_TARGET_PROPERTIES(bin/DumpRenderTree PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
122
123 ADD_EXECUTABLE(bin/ImageDiff ${ImageDiff_SOURCES})
124 TARGET_LINK_LIBRARIES(bin/ImageDiff ${DumpRenderTree_LIBRARIES})
125 ADD_TARGET_PROPERTIES(bin/ImageDiff LINK_FLAGS "${DumpRenderTree_LINK_FLAGS}")
126 SET_TARGET_PROPERTIES(bin/ImageDiff PROPERTIES FOLDER "Tools")
127 SET_TARGET_PROPERTIES(bin/ImageDiff PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")