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