7a547135ea5642f94dd7564f60f500e941c25439
[WebKit-https.git] / Source / WebKit / PlatformEfl.cmake
1 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
2     "${CMAKE_SOURCE_DIR}/Source"
3     "${WEBKIT_DIR}/efl/ewk"
4     "${WEBKIT_DIR}/efl/WebCoreSupport"
5     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
6     "${WEBCORE_DIR}/platform/efl"
7     "${WEBCORE_DIR}/platform/graphics/cairo"
8     "${WEBCORE_DIR}/platform/graphics/efl"
9     "${WEBCORE_DIR}/platform/network/soup"
10     ${CAIRO_INCLUDE_DIRS}
11     ${ECORE_INCLUDE_DIRS}
12     ${ECORE_EVAS_INCLUDE_DIRS}
13     ${ECORE_INPUT_INCLUDE_DIRS}
14     ${EDJE_INCLUDE_DIRS}
15     ${EFREET_INCLUDE_DIRS}
16     ${EINA_INCLUDE_DIRS}
17     ${EVAS_INCLUDE_DIRS}
18     ${HARFBUZZ_INCLUDE_DIRS}
19     ${LIBXML2_INCLUDE_DIR}
20     ${LIBXSLT_INCLUDE_DIR}
21     ${SQLITE_INCLUDE_DIR}
22     ${GLIB_INCLUDE_DIRS}
23     ${LIBSOUP_INCLUDE_DIRS}
24 )
25
26 IF (ENABLE_SVG)
27   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
28     "${WEBCORE_DIR}/svg"
29     "${WEBCORE_DIR}/svg/animation"
30     "${WEBCORE_DIR}/rendering/svg"
31   )
32 ENDIF ()
33
34 IF (ENABLE_VIDEO)
35 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
36     "${WEBCORE_DIR}/platform/graphics/gstreamer"
37     ${GSTREAMER_APP_INCLUDE_DIRS}
38     ${GSTREAMER_INTERFACES_INCLUDE_DIRS}
39     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
40     ${GSTREAMER_VIDEO_INCLUDE_DIRS}
41 )
42 ENDIF()
43
44 IF (ENABLE_VIDEO_TRACK)
45   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
46     "${WEBCORE_DIR}/html/track"
47   )
48 ENDIF ()
49
50 IF (WTF_USE_FREETYPE)
51   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
52     "${WEBCORE_DIR}/platform/graphics/freetype"
53   )
54 ENDIF ()
55
56 IF (ENABLE_NOTIFICATIONS)
57   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
58     "${WEBCORE_DIR}/Modules/notifications"
59   )
60 ENDIF ()
61
62 IF (ENABLE_VIBRATION)
63   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
64     "${WEBCORE_DIR}/Modules/vibration"
65   )
66 ENDIF ()
67
68 IF (ENABLE_BATTERY_STATUS)
69   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
70     "${WEBCORE_DIR}/Modules/battery"
71   )
72 ENDIF ()
73
74 IF (ENABLE_NAVIGATOR_CONTENT_UTILS)
75   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
76     "${WEBCORE_DIR}/Modules/navigatorcontentutils"
77   )
78 ENDIF ()
79
80 LIST(APPEND WebKit_SOURCES
81     efl/WebCoreSupport/AssertMatchingEnums.cpp
82     efl/WebCoreSupport/BatteryClientEfl.cpp
83     efl/WebCoreSupport/ChromeClientEfl.cpp
84     efl/WebCoreSupport/ColorChooserEfl.cpp
85     efl/WebCoreSupport/ContextMenuClientEfl.cpp
86     efl/WebCoreSupport/DeviceOrientationClientEfl.cpp
87     efl/WebCoreSupport/DeviceMotionClientEfl.cpp
88     efl/WebCoreSupport/DragClientEfl.cpp
89     efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
90     efl/WebCoreSupport/EditorClientEfl.cpp
91     efl/WebCoreSupport/FrameLoaderClientEfl.cpp
92     efl/WebCoreSupport/FrameNetworkingContextEfl.cpp
93     efl/WebCoreSupport/FullscreenVideoControllerEfl.cpp
94     efl/WebCoreSupport/IconDatabaseClientEfl.cpp
95     efl/WebCoreSupport/InspectorClientEfl.cpp
96     efl/WebCoreSupport/NavigatorContentUtilsClientEfl.cpp 
97     efl/WebCoreSupport/NetworkInfoClientEfl.cpp
98     efl/WebCoreSupport/NotificationPresenterClientEfl.cpp
99     efl/WebCoreSupport/PageClientEfl.cpp
100     efl/WebCoreSupport/PlatformStrategiesEfl.cpp 
101     efl/WebCoreSupport/PopupMenuEfl.cpp
102     efl/WebCoreSupport/SearchPopupMenuEfl.cpp
103     efl/WebCoreSupport/StorageTrackerClientEfl.cpp
104     efl/WebCoreSupport/VibrationClientEfl.cpp
105
106     efl/ewk/ewk_auth.cpp
107     efl/ewk/ewk_auth_soup.cpp
108     efl/ewk/ewk_contextmenu.cpp
109     efl/ewk/ewk_cookies.cpp
110     efl/ewk/ewk_custom_handler.cpp
111     efl/ewk/ewk_file_chooser.cpp
112     efl/ewk/ewk_frame.cpp
113     efl/ewk/ewk_history.cpp
114     efl/ewk/ewk_intent.cpp
115     efl/ewk/ewk_intent_request.cpp
116     efl/ewk/ewk_js.cpp
117     efl/ewk/ewk_main.cpp
118     efl/ewk/ewk_network.cpp
119     efl/ewk/ewk_paint_context.cpp
120     efl/ewk/ewk_security_origin.cpp
121     efl/ewk/ewk_security_policy.cpp
122     efl/ewk/ewk_settings.cpp
123     efl/ewk/ewk_tiled_backing_store.cpp
124     efl/ewk/ewk_tiled_matrix.cpp
125     efl/ewk/ewk_tiled_model.cpp
126     efl/ewk/ewk_touch_event.cpp
127     efl/ewk/ewk_util.cpp
128     efl/ewk/ewk_view.cpp
129     efl/ewk/ewk_view_single.cpp
130     efl/ewk/ewk_view_tiled.cpp
131     efl/ewk/ewk_window_features.cpp
132     efl/ewk/ewk_web_database.cpp
133 )
134
135 LIST(APPEND WebKit_LIBRARIES
136     ${CAIRO_LIBRARIES}
137     ${ECORE_LIBRARIES}
138     ${ECORE_EVAS_LIBRARIES}
139     ${ECORE_INPUT_LIBRARIES}
140     ${EFREET_LIBRARIES}
141     ${EVAS_LIBRARIES}
142     ${FREETYPE_LIBRARIES}
143     ${HARFBUZZ_LIBRARIES}
144     ${LIBXML2_LIBRARIES}
145     ${SQLITE_LIBRARIES}
146     ${FONTCONFIG_LIBRARIES}
147     ${PNG_LIBRARY}
148     ${JPEG_LIBRARY}
149     ${CMAKE_DL_LIBS}
150     ${GLIB_LIBRARIES}
151     ${GLIB_GOBJECT_LIBRARIES}
152     ${LIBSOUP_LIBRARIES}
153 )
154
155 SET(WebKit_THEME_DEFINITION "")
156 IF (ENABLE_PROGRESS_ELEMENT)
157   LIST(APPEND WebKit_THEME_DEFINITION "-DENABLE_PROGRESS_ELEMENT")
158 ENDIF ()
159
160 FILE(MAKE_DIRECTORY ${THEME_BINARY_DIR})
161 SET(WebKit_THEME ${THEME_BINARY_DIR}/default.edj)
162 ADD_CUSTOM_COMMAND(
163   OUTPUT ${WebKit_THEME}
164   COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WebKit_THEME_DEFINITION} ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME}
165   DEPENDS
166     ${WEBKIT_DIR}/efl/DefaultTheme/default.edc
167     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc
168     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png
169     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png
170     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png
171     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png
172     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc
173     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png
174     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png
175     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png
176     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png
177     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png
178     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png
179     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc
180     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png
181     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png
182     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png
183     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png
184     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png
185     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png
186     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png
187     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png
188     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png
189     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc
190     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png
191     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png
192     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png
193     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc
194     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png
195     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png
196     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png
197     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png
198     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/fullscreenbutton/enterfullscreenbutton.png
199     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/fullscreenbutton/exitfullscreenbutton.png
200     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/fullscreenbutton/fullscreen_button.edc
201     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/mutebutton/mute_button.edc
202     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/mutebutton/mutebutton.png
203     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/mutebutton/unmutebutton.png
204     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/playpausebutton/pausebutton.png
205     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/playpausebutton/playbutton.png
206     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/playpausebutton/playpause_button.edc
207     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/seekbackwardbutton/seekbackward_button.edc
208     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/seekbackwardbutton/seekbackwardbutton.png
209     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/seekforwardbutton/seekforward_button.edc
210     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/seekforwardbutton/seekforwardbutton.png
211     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/togglecaptionsbutton/closedcaption_disabled.png
212     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/togglecaptionsbutton/closedcaption.png
213     ${WEBKIT_DIR}/efl/DefaultTheme/widget/mediacontrol/togglecaptionsbutton/toggle_captions_button.edc
214     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/bt_base.png
215     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/progressbar.edc
216     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/shelf_inset.png
217     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png
218     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png
219     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png
220     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png
221     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png
222     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png
223     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc
224     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
225     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png
226     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png
227     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png
228     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png
229     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png
230     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png
231     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
232     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png
233     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
234     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png
235     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png
236     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png
237     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc
238     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc
239     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png
240     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png
241     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png
242     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_thumb_h.png
243     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_thumb_press_h.png
244     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_thumb_press_v.png
245     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_thumb_v.png
246     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png
247     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_bg.png
248     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_down_default.png
249     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_down_hover.png
250     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_down_pressed.png
251     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/spinner.edc
252     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_up_default.png
253     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_up_hover.png
254     ${WEBKIT_DIR}/efl/DefaultTheme/widget/spinner/sp_up_pressed.png
255   VERBATIM
256 )
257
258 LIST(APPEND WebKit_SOURCES
259      ${WebKit_THEME}
260 )
261
262 IF (SHARED_CORE)
263     SET(LIBS_PRIVATE "-l${WTF_LIBRARY_NAME} -l${JavaScriptCore_LIBRARY_NAME} -l${WebCore_LIBRARY_NAME}")
264 ELSE ()
265     SET(LIBS_PRIVATE "")
266 ENDIF ()
267
268 CONFIGURE_FILE(
269     efl/ewebkit.pc.in
270     ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
271     @ONLY)
272 INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
273     DESTINATION lib/pkgconfig)
274
275 UNSET(LIBS_PRIVATE)
276
277 SET(EWebKit_HEADERS
278     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/EWebKit.h
279     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth.h
280     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_contextmenu.h
281     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_cookies.h
282     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_file_chooser.h
283     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_frame.h
284     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_history.h
285     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_intent.h
286     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_intent_request.h
287     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_js.h
288     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_main.h
289     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_network.h
290     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_security_origin.h
291     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_security_policy.h
292     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_settings.h
293     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_view.h
294     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_window_features.h
295     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_web_database.h
296 )
297
298 INSTALL(FILES ${EWebKit_HEADERS}
299         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
300
301 INSTALL(FILES ${WebKit_THEME}
302         DESTINATION ${DATA_INSTALL_DIR}/themes)
303
304 INCLUDE_DIRECTORIES(${THIRDPARTY_DIR}/gtest/include)
305
306 SET(EWKUnitTests_LIBRARIES
307     ${WTF_LIBRARY_NAME}
308     ${JavaScriptCore_LIBRARY_NAME}
309     ${WebCore_LIBRARY_NAME}
310     ${WebKit_LIBRARY_NAME}
311     ${ECORE_LIBRARIES}
312     ${ECORE_EVAS_LIBRARIES}
313     ${EVAS_LIBRARIES}
314     ${EDJE_LIBRARIES}
315     gtest
316 )
317
318 SET(EWKUnitTests_INCLUDE_DIRECTORIES
319     "${CMAKE_SOURCE_DIR}/Source"
320     "${WEBKIT_DIR}/efl/ewk"
321     "${JAVASCRIPTCORE_DIR}"
322     "${WTF_DIR}"
323     "${WTF_DIR}/wtf"
324     ${ECORE_INCLUDE_DIRS}
325     ${ECORE_EVAS_INCLUDE_DIRS}
326     ${EVAS_INCLUDE_DIRS}
327     ${EDJE_INCLUDE_DIRS}
328 )
329
330 IF (ENABLE_GLIB_SUPPORT)
331     LIST(APPEND EWKUnitTests_INCLUDE_DIRECTORIES "${WTF_DIR}/wtf/gobject")
332     LIST(APPEND EWKUnitTests_LIBRARIES
333         ${GLIB_LIBRARIES}
334         ${GLIB_GTHREAD_LIBRARIES}
335     )
336 ENDIF ()
337
338 SET(DEFAULT_TEST_PAGE_DIR ${CMAKE_SOURCE_DIR}/Source/WebKit/efl/tests/resources)
339
340 ADD_DEFINITIONS(-DDEFAULT_TEST_PAGE_DIR=\"${DEFAULT_TEST_PAGE_DIR}\"
341     -DDEFAULT_THEME_PATH=\"${THEME_BINARY_DIR}\"
342     -DGTEST_LINKED_AS_SHARED_LIBRARY=1
343 )
344
345 ADD_LIBRARY(ewkTestUtils
346     ${WEBKIT_DIR}/efl/tests/UnitTestUtils/EWKTestBase.cpp
347     ${WEBKIT_DIR}/efl/tests/UnitTestUtils/EWKTestEnvironment.cpp
348     ${WEBKIT_DIR}/efl/tests/UnitTestUtils/EWKTestView.cpp
349 )
350 TARGET_LINK_LIBRARIES(ewkTestUtils ${EWKUnitTests_LIBRARIES})
351
352 SET(WEBKIT_EFL_TEST_DIR "${WEBKIT_DIR}/efl/tests/")
353
354 SET(EWKUnitTests_BINARIES
355     test_ewk_view
356 )
357
358 IF (ENABLE_API_TESTS)
359     FOREACH (testName ${EWKUnitTests_BINARIES})
360         ADD_EXECUTABLE(${testName} ${WEBKIT_EFL_TEST_DIR}/${testName}.cpp ${WEBKIT_EFL_TEST_DIR}/test_runner.cpp)
361         ADD_TEST(${testName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${testName})
362         SET_TESTS_PROPERTIES(${testName} PROPERTIES TIMEOUT 60)
363         TARGET_LINK_LIBRARIES(${testName} ${EWKUnitTests_LIBRARIES} ewkTestUtils)
364         SET_TARGET_PROPERTIES(${testName} PROPERTIES FOLDER "WebKit")
365     ENDFOREACH ()
366 ENDIF ()
367
368 IF (ENABLE_INSPECTOR)
369     SET(WEB_INSPECTOR_DIR ${CMAKE_BINARY_DIR}/WebKit/efl/webinspector)
370     ADD_DEFINITIONS(-DWEB_INSPECTOR_DIR="${WEB_INSPECTOR_DIR}")
371     ADD_DEFINITIONS(-DWEB_INSPECTOR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webinspector")
372     ADD_CUSTOM_TARGET(
373         web-inspector-resources ALL
374         COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${WEB_INSPECTOR_DIR}
375         COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
376         COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${WEB_INSPECTOR_DIR}/InspectorBackendCommands.js
377         DEPENDS ${WebCore_LIBRARY_NAME}
378     )
379     INSTALL(DIRECTORY ${WEB_INSPECTOR_DIR}
380         DESTINATION ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}
381         FILES_MATCHING PATTERN "*.js"
382                        PATTERN "*.html"
383                        PATTERN "*.css"
384                        PATTERN "*.gif"
385                        PATTERN "*.png")
386 ENDIF ()