Fix Mac CMake build after r206261
[WebKit.git] / Source / WebKit2 / PlatformEfl.cmake
1 list(APPEND WebKit2_SOURCES
2     DatabaseProcess/efl/DatabaseProcessMainEfl.cpp
3
4     NetworkProcess/CustomProtocols/soup/CustomProtocolManagerImpl.cpp
5     NetworkProcess/CustomProtocols/soup/CustomProtocolManagerSoup.cpp
6
7     NetworkProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp
8
9     NetworkProcess/Downloads/soup/DownloadSoup.cpp
10
11     NetworkProcess/cache/NetworkCacheCodersSoup.cpp
12     NetworkProcess/cache/NetworkCacheDataSoup.cpp
13     NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp
14
15     NetworkProcess/efl/NetworkProcessMainEfl.cpp
16
17     NetworkProcess/soup/NetworkProcessSoup.cpp
18     NetworkProcess/soup/RemoteNetworkingContextSoup.cpp
19
20     Platform/IPC/unix/AttachmentUnix.cpp
21     Platform/IPC/unix/ConnectionUnix.cpp
22
23     Platform/efl/ModuleEfl.cpp
24
25     Platform/unix/LoggingUnix.cpp
26     Platform/unix/SharedMemoryUnix.cpp
27
28     PluginProcess/unix/PluginControllerProxyUnix.cpp
29     PluginProcess/unix/PluginProcessMainUnix.cpp
30     PluginProcess/unix/PluginProcessUnix.cpp
31
32     Shared/API/c/cairo/WKImageCairo.cpp
33
34     Shared/API/c/efl/WKArrayEfl.cpp
35
36     Shared/Authentication/soup/AuthenticationManagerSoup.cpp
37
38     Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp
39     Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp
40     Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp
41     Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp
42
43     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
44
45     Shared/Plugins/unix/PluginSearchPath.cpp
46
47     Shared/cairo/ShareableBitmapCairo.cpp
48
49     Shared/efl/NativeWebKeyboardEventEfl.cpp
50     Shared/efl/NativeWebTouchEventEfl.cpp
51     Shared/efl/NativeWebWheelEventEfl.cpp
52     Shared/efl/ProcessExecutablePathEfl.cpp
53     Shared/efl/WebEventFactory.cpp
54     Shared/efl/WebKit2InitializeEFL.cpp
55
56     Shared/linux/WebMemorySamplerLinux.cpp
57
58     Shared/soup/WebCoreArgumentCodersSoup.cpp
59
60     Shared/unix/ChildProcessMain.cpp
61
62     UIProcess/AcceleratedDrawingAreaProxy.cpp
63     UIProcess/BackingStore.cpp
64     UIProcess/DefaultUndoController.cpp
65     UIProcess/LegacySessionStateCodingNone.cpp
66     UIProcess/WebResourceLoadStatisticsStore.cpp
67     UIProcess/WebTextChecker.cpp
68     UIProcess/WebTextCheckerClient.cpp
69
70     UIProcess/API/C/CoordinatedGraphics/WKView.cpp
71
72     UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp
73
74     UIProcess/API/C/efl/WKColorPickerResultListener.cpp
75     UIProcess/API/C/efl/WKEventEfl.cpp
76     UIProcess/API/C/efl/WKViewEfl.cpp
77
78     UIProcess/API/C/soup/WKCookieManagerSoup.cpp
79     UIProcess/API/C/soup/WKSoupCustomProtocolRequestManager.cpp
80
81     UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp
82
83     UIProcess/API/cpp/efl/WKEinaSharedString.cpp
84
85     UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp
86     UIProcess/API/efl/EwkView.cpp
87     UIProcess/API/efl/GestureRecognizer.cpp
88     UIProcess/API/efl/SnapshotImageGL.cpp
89     UIProcess/API/efl/WebAccessibility.cpp
90     UIProcess/API/efl/ewk_application_cache_manager.cpp
91     UIProcess/API/efl/ewk_auth_request.cpp
92     UIProcess/API/efl/ewk_back_forward_list.cpp
93     UIProcess/API/efl/ewk_back_forward_list_item.cpp
94     UIProcess/API/efl/ewk_color_picker.cpp
95     UIProcess/API/efl/ewk_context.cpp
96     UIProcess/API/efl/ewk_context_menu.cpp
97     UIProcess/API/efl/ewk_context_menu_item.cpp
98     UIProcess/API/efl/ewk_cookie_manager.cpp
99     UIProcess/API/efl/ewk_database_manager.cpp
100     UIProcess/API/efl/ewk_download_job.cpp
101     UIProcess/API/efl/ewk_error.cpp
102     UIProcess/API/efl/ewk_favicon_database.cpp
103     UIProcess/API/efl/ewk_file_chooser_request.cpp
104     UIProcess/API/efl/ewk_form_submission_request.cpp
105     UIProcess/API/efl/ewk_main.cpp
106     UIProcess/API/efl/ewk_navigation_data.cpp
107     UIProcess/API/efl/ewk_navigation_policy_decision.cpp
108     UIProcess/API/efl/ewk_object.cpp
109     UIProcess/API/efl/ewk_page_group.cpp
110     UIProcess/API/efl/ewk_popup_menu.cpp
111     UIProcess/API/efl/ewk_popup_menu_item.cpp
112     UIProcess/API/efl/ewk_security_origin.cpp
113     UIProcess/API/efl/ewk_settings.cpp
114     UIProcess/API/efl/ewk_storage_manager.cpp
115     UIProcess/API/efl/ewk_text_checker.cpp
116     UIProcess/API/efl/ewk_url_request.cpp
117     UIProcess/API/efl/ewk_url_response.cpp
118     UIProcess/API/efl/ewk_url_scheme_request.cpp
119     UIProcess/API/efl/ewk_view_configuration.cpp
120     UIProcess/API/efl/ewk_view.cpp
121     UIProcess/API/efl/ewk_window_features.cpp
122
123     UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp
124     UIProcess/CoordinatedGraphics/PageViewportController.cpp
125     UIProcess/CoordinatedGraphics/WebPageProxyCoordinatedGraphics.cpp
126
127     UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp
128
129     UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
130
131     UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
132
133     UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp
134     UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp
135     UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManagerClient.cpp
136
137     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
138     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
139
140     UIProcess/Storage/StorageManager.cpp
141
142     UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
143
144     UIProcess/cairo/BackingStoreCairo.cpp
145
146     UIProcess/efl/BatteryProvider.cpp
147     UIProcess/efl/ContextHistoryClientEfl.cpp
148     UIProcess/efl/ContextMenuClientEfl.cpp
149     UIProcess/efl/DownloadManagerEfl.cpp
150     UIProcess/efl/EasingCurves.cpp
151     UIProcess/efl/EwkTouchEvent.cpp
152     UIProcess/efl/EwkTouchPoint.cpp
153     UIProcess/efl/FindClientEfl.cpp
154     UIProcess/efl/FormClientEfl.cpp
155     UIProcess/efl/InputMethodContextEfl.cpp
156     UIProcess/efl/PageLoadClientEfl.cpp
157     UIProcess/efl/PagePolicyClientEfl.cpp
158     UIProcess/efl/PageUIClientEfl.cpp
159     UIProcess/efl/PageViewportControllerClientEfl.cpp
160     UIProcess/efl/RequestManagerClientEfl.cpp
161     UIProcess/efl/TextCheckerClientEfl.cpp
162     UIProcess/efl/TextCheckerEfl.cpp
163     UIProcess/efl/VibrationClientEfl.cpp
164     UIProcess/efl/ViewClientEfl.cpp
165     UIProcess/efl/WebColorPickerClient.cpp
166     UIProcess/efl/WebColorPickerEfl.cpp
167     UIProcess/efl/WebColorPickerResultListenerProxy.cpp
168     UIProcess/efl/WebContextMenuProxyEfl.cpp
169     UIProcess/efl/WebInspectorProxyEfl.cpp
170     UIProcess/efl/WebPageProxyEfl.cpp
171     UIProcess/efl/WebPopupItemEfl.cpp
172     UIProcess/efl/WebPopupMenuProxyEfl.cpp
173     UIProcess/efl/WebPreferencesEfl.cpp
174     UIProcess/efl/WebProcessPoolEfl.cpp
175     UIProcess/efl/WebView.cpp
176     UIProcess/efl/WebViewClient.cpp
177
178     UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.cpp
179     UIProcess/gstreamer/WebPageProxyGStreamer.cpp
180
181     UIProcess/linux/MemoryPressureMonitor.cpp
182
183     UIProcess/soup/WebCookieManagerProxySoup.cpp
184     UIProcess/soup/WebProcessPoolSoup.cpp
185
186     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
187     WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
188
189     WebProcess/InjectedBundle/API/efl/ewk_extension.cpp
190     WebProcess/InjectedBundle/API/efl/ewk_page.cpp
191
192     WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp
193
194     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
195
196     WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
197     WebProcess/Plugins/Netscape/unix/PluginProxyUnix.cpp
198
199     WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
200
201     WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp
202     WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp
203     WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp
204     WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp
205
206     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
207
208     WebProcess/WebPage/AcceleratedDrawingArea.cpp
209     WebProcess/WebPage/DrawingAreaImpl.cpp
210
211     WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
212     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
213     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
214     WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp
215     WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp
216
217     WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
218
219     WebProcess/WebPage/efl/WebInspectorUIEfl.cpp
220     WebProcess/WebPage/efl/WebPageEfl.cpp
221
222     WebProcess/WebPage/gstreamer/WebPageGStreamer.cpp
223
224     WebProcess/efl/ExtensionManagerEfl.cpp
225     WebProcess/efl/WebProcessMainEfl.cpp
226
227     WebProcess/soup/WebKitSoupRequestInputStream.cpp
228     WebProcess/soup/WebProcessSoup.cpp
229 )
230
231 list(APPEND WebKit2_MESSAGES_IN_FILES
232     UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in
233
234     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in
235 )
236
237 list(APPEND WebKit2_INCLUDE_DIRECTORIES
238     "${WEBCORE_DIR}/platform/efl"
239     "${WEBCORE_DIR}/platform/graphics/cairo"
240     "${WEBCORE_DIR}/platform/graphics/efl"
241     "${WEBCORE_DIR}/platform/graphics/freetype"
242     "${WEBCORE_DIR}/platform/graphics/opentype"
243     "${WEBCORE_DIR}/platform/graphics/x11"
244     "${WEBCORE_DIR}/platform/network/soup"
245     "${WEBCORE_DIR}/platform/text/enchant"
246     "${WEBKIT2_DIR}/DatabaseProcess/unix"
247     "${WEBKIT2_DIR}/NetworkProcess/CustomProtocols/soup"
248     "${WEBKIT2_DIR}/NetworkProcess/Downloads/soup"
249     "${WEBKIT2_DIR}/NetworkProcess/efl"
250     "${WEBKIT2_DIR}/NetworkProcess/unix"
251     "${WEBKIT2_DIR}/Platform/efl"
252     "${WEBKIT2_DIR}/Shared/API/c/efl"
253     "${WEBKIT2_DIR}/Shared/CoordinatedGraphics"
254     "${WEBKIT2_DIR}/Shared/Plugins/unix"
255     "${WEBKIT2_DIR}/Shared/glib"
256     "${WEBKIT2_DIR}/Shared/efl"
257     "${WEBKIT2_DIR}/Shared/soup"
258     "${WEBKIT2_DIR}/Shared/unix"
259     "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
260     "${WEBKIT2_DIR}/UIProcess/API/C/CoordinatedGraphics"
261     "${WEBKIT2_DIR}/UIProcess/API/C/efl"
262     "${WEBKIT2_DIR}/UIProcess/API/C/soup"
263     "${WEBKIT2_DIR}/UIProcess/API/cpp/efl"
264     "${WEBKIT2_DIR}/UIProcess/API/efl"
265     "${WEBKIT2_DIR}/UIProcess/CoordinatedGraphics"
266     "${WEBKIT2_DIR}/UIProcess/Network/CustomProtocols/soup"
267     "${WEBKIT2_DIR}/UIProcess/efl"
268     "${WEBKIT2_DIR}/UIProcess/linux"
269     "${WEBKIT2_DIR}/UIProcess/soup"
270     "${WEBKIT2_DIR}/WebProcess/efl"
271     "${WEBKIT2_DIR}/WebProcess/soup"
272     "${WEBKIT2_DIR}/WebProcess/unix"
273     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/efl"
274     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape/unix"
275     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape/x11"
276     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
277     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
278     "${WEBKIT2_DIR}/WebProcess/WebPage/CoordinatedGraphics"
279     "${WTF_DIR}/wtf/efl"
280     "${WTF_DIR}/wtf/glib"
281     "${WTF_DIR}"
282     "${WEBKIT2_DIR}"
283 )
284
285 list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
286     ${CAIRO_INCLUDE_DIRS}
287     ${ECORE_EVAS_INCLUDE_DIRS}
288     ${ECORE_IMF_EVAS_INCLUDE_DIRS}
289     ${ECORE_IMF_INCLUDE_DIRS}
290     ${ECORE_INCLUDE_DIRS}
291     ${ECORE_X_INCLUDE_DIRS}
292     ${EDJE_INCLUDE_DIRS}
293     ${EFREET_INCLUDE_DIRS}
294     ${EINA_INCLUDE_DIRS}
295     ${EO_INCLUDE_DIRS}
296     ${EVAS_INCLUDE_DIRS}
297     ${GLIB_INCLUDE_DIRS}
298     ${GSTREAMER_INCLUDE_DIRS}
299     ${HARFBUZZ_INCLUDE_DIRS}
300     ${LIBSOUP_INCLUDE_DIRS}
301     ${LIBXML2_INCLUDE_DIR}
302     ${LIBXSLT_INCLUDE_DIRS}
303     ${SQLITE_INCLUDE_DIRS}
304 )
305
306 list(APPEND WebKit2_LIBRARIES
307     WTF
308     ${CAIRO_LIBRARIES}
309     ${CMAKE_DL_LIBS}
310     ${ECORE_EVAS_LIBRARIES}
311     ${ECORE_IMF_EVAS_LIBRARIES}
312     ${ECORE_LIBRARIES}
313     ${EDJE_LIBRARIES}
314     ${EFREET_LIBRARIES}
315     ${EINA_LIBRARIES}
316     ${EO_LIBRARIES}
317     ${EVAS_LIBRARIES}
318     ${FONTCONFIG_LIBRARIES}
319     ${FREETYPE2_LIBRARIES}
320     ${GLIB_GIO_LIBRARIES}
321     ${GLIB_GOBJECT_LIBRARIES}
322     ${GLIB_LIBRARIES}
323     ${HARFBUZZ_LIBRARIES}
324     ${JPEG_LIBRARIES}
325     ${LIBSOUP_LIBRARIES}
326     ${LIBXML2_LIBRARIES}
327     ${OPENGL_LIBRARIES}
328     ${PNG_LIBRARIES}
329     ${SQLITE_LIBRARIES}
330 )
331
332 list(APPEND WebProcess_SOURCES
333     WebProcess/EntryPoint/unix/WebProcessMain.cpp
334 )
335
336 list(APPEND NetworkProcess_SOURCES
337     NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
338 )
339
340 list(APPEND DatabaseProcess_SOURCES
341     DatabaseProcess/EntryPoint/unix/DatabaseProcessMain.cpp
342 )
343
344 list(APPEND WebProcess_LIBRARIES
345     ${CAIRO_LIBRARIES}
346     ${ECORE_IMF_EVAS_LIBRARIES}
347     ${ECORE_IMF_LIBRARIES}
348     ${EDJE_LIBRARIES}
349     ${EFLDEPS_LIBRARIES}
350     ${EVAS_LIBRARIES}
351     ${LIBXML2_LIBRARIES}
352     ${LIBXSLT_LIBRARIES}
353     ${OPENGL_LIBRARIES}
354     ${SQLITE_LIBRARIES}
355 )
356
357 if (ENABLE_ECORE_X)
358     list(APPEND WebProcess_LIBRARIES
359         ${ECORE_X_LIBRARIES}
360     )
361     list(APPEND WebKit2_LIBRARIES
362         ${ECORE_X_LIBRARIES}
363         ${X11_Xext_LIB}
364     )
365 endif ()
366
367 add_custom_target(forwarding-headersEflForWebKit2
368     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT2_DIR} --output ${DERIVED_SOURCES_WEBKIT2_DIR}/include --platform efl --platform CoordinatedGraphics --platform soup
369 )
370
371 set(WEBKIT2_EXTRA_DEPENDENCIES
372      forwarding-headersEflForWebKit2
373 )
374
375 configure_file(efl/ewebkit2.pc.in ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc @ONLY)
376 configure_file(efl/ewebkit2-extension.pc.in ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2-extension.pc @ONLY)
377 configure_file(efl/EWebKit2Config.cmake.in ${CMAKE_BINARY_DIR}/WebKit2/efl/EWebKit2Config.cmake @ONLY)
378 configure_file(efl/EWebKit2ConfigVersion.cmake.in ${CMAKE_BINARY_DIR}/WebKit2/efl/EWebKit2ConfigVersion.cmake @ONLY)
379 configure_file(UIProcess/API/efl/EWebKit2.h.in ${DERIVED_SOURCES_WEBKIT2_DIR}/include/EWebKit2.h)
380
381 set(EWebKit2_HEADERS
382     "${DERIVED_SOURCES_WEBKIT2_DIR}/include/EWebKit2.h"
383     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_auth_request.h"
384     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_back_forward_list.h"
385     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_back_forward_list_item.h"
386     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_application_cache_manager.h"
387     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_color_picker.h"
388     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context.h"
389     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context_menu.h"
390     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context_menu_item.h"
391     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_cookie_manager.h"
392     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_database_manager.h"
393     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_download_job.h"
394     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_error.h"
395     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_favicon_database.h"
396     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_file_chooser_request.h"
397     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_form_submission_request.h"
398     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intro.h"
399     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_main.h"
400     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_data.h"
401     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_policy_decision.h"
402     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_object.h"
403     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_page_group.h"
404     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_popup_menu.h"
405     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_popup_menu_item.h"
406     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_security_origin.h"
407     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_settings.h"
408     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_storage_manager.h"
409     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_text_checker.h"
410     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_touch.h"
411     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_request.h"
412     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_response.h"
413     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_scheme_request.h"
414     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_view.h"
415     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_window_features.h"
416 )
417
418 set(EWebKit2_Extension_HEADERS
419     "${CMAKE_CURRENT_SOURCE_DIR}/WebProcess/InjectedBundle/API/efl/EWebKit_Extension.h"
420     "${CMAKE_CURRENT_SOURCE_DIR}/WebProcess/InjectedBundle/API/efl/ewk_extension.h"
421     "${CMAKE_CURRENT_SOURCE_DIR}/WebProcess/InjectedBundle/API/efl/ewk_page.h"
422 )
423
424 install(FILES ${EWebKit2_HEADERS} DESTINATION ${HEADER_INSTALL_DIR})
425 install(FILES ${EWebKit2_Extension_HEADERS} DESTINATION ${HEADER_INSTALL_DIR}/extension)
426
427 install(FILES ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc DESTINATION lib/pkgconfig)
428 install(FILES ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2-extension.pc DESTINATION lib/pkgconfig)
429 install(FILES
430         ${CMAKE_BINARY_DIR}/WebKit2/efl/EWebKit2Config.cmake
431         ${CMAKE_BINARY_DIR}/WebKit2/efl/EWebKit2ConfigVersion.cmake
432         DESTINATION lib/cmake/EWebKit2)
433
434 set(EWEBKIT_EXTENSION_MANAGER_INSTALL_DIR "${LIB_INSTALL_DIR}/${WebKit2_OUTPUT_NAME}-${PROJECT_VERSION_MAJOR}/" CACHE PATH "Absolute path to install injected bundle which controls the extension library")
435
436 add_library(ewebkit_extension_manager SHARED "${WEBKIT2_DIR}/WebProcess/efl/WebInjectedBundleMainEfl.cpp")
437 target_link_libraries(ewebkit_extension_manager WebKit2)
438
439 install(TARGETS ewebkit_extension_manager DESTINATION "${EWEBKIT_EXTENSION_MANAGER_INSTALL_DIR}")
440
441 if (ENABLE_PLUGIN_PROCESS)
442     list(APPEND PluginProcess_INCLUDE_DIRECTORIES
443         "${WEBKIT2_DIR}/PluginProcess/unix"
444     )
445
446     include_directories(${PluginProcess_INCLUDE_DIRECTORIES})
447
448     list(APPEND PluginProcess_SOURCES
449         ${WEBKIT2_DIR}/PluginProcess/EntryPoint/unix/PluginProcessMain.cpp
450     )
451
452     if (ENABLE_ECORE_X)
453         list(APPEND PluginProcess_LIBRARIES
454             ${ECORE_X_LIBRARIES}
455         )
456     endif ()
457 endif () # ENABLE_PLUGIN_PROCESS
458
459 include_directories(${THIRDPARTY_DIR}/gtest/include)
460
461 set(EWK2UnitTests_LIBRARIES
462     ${CAIRO_LIBRARIES}
463     ${ECORE_EVAS_LIBRARIES}
464     ${ECORE_LIBRARIES}
465     ${EVAS_LIBRARIES}
466     ${GLIB_GIO_LIBRARIES}
467     ${GLIB_GOBJECT_LIBRARIES}
468     ${GLIB_GTHREAD_LIBRARIES}
469     ${GLIB_LIBRARIES}
470     ${LIBSOUP_LIBRARIES}
471     JavaScriptCore
472     WTF
473     WebCore
474     WebKit2
475     gtest
476 )
477
478 if (ENABLE_ECORE_X)
479     list(APPEND EWK2UnitTests_LIBRARIES
480         ${ECORE_X_LIBRARIES}
481     )
482 endif ()
483
484 set(WEBKIT2_EFL_TEST_DIR "${WEBKIT2_DIR}/UIProcess/API/efl/tests")
485 set(TEST_RESOURCES_DIR ${WEBKIT2_EFL_TEST_DIR}/resources)
486 set(TEST_EXTENSIONS_DIR ${WEBKIT2_EFL_TEST_DIR}/extensions)
487 set(WEBKIT2_EFL_TEST_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TestWebKitAPI/EWebKit2)
488
489 add_definitions(-DTEST_RESOURCES_DIR=\"${TEST_RESOURCES_DIR}\"
490     -DTEST_LIB_DIR=\"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}\"
491     -DGTEST_LINKED_AS_SHARED_LIBRARY=1
492     -DLIBDIR=\"${LIB_INSTALL_DIR}\"
493     -DLIBEXECDIR=\"${EXEC_INSTALL_DIR}\"
494     -DDATADIR=\"${CMAKE_INSTALL_PREFIX}/share\"
495     -DEXTENSIONMANAGERDIR=\"${CMAKE_INSTALL_PREFIX}/${EWEBKIT_EXTENSION_MANAGER_INSTALL_DIR}\"
496     -DWEBPROCESSNAME=\"WebKitWebProcess\"
497     -DPLUGINPROCESSNAME=\"WebKitPluginProcess\"
498     -DNETWORKPROCESSNAME=\"WebKitNetworkProcess\"
499     -DDATABASEPROCESSNAME=\"WebKitDatabaseProcess\"
500     -DEXTENSIONMANAGERNAME=\"libewebkit_extension_manager.so\"
501     -DGTEST_HAS_RTTI=0
502 )
503
504 add_library(ewk2UnitTestUtils
505     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestBase.cpp
506     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestEnvironment.cpp
507     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestMain.cpp
508     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestServer.cpp
509 )
510
511 target_link_libraries(ewk2UnitTestUtils ${EWK2UnitTests_LIBRARIES})
512
513 # The "ewk" on the test name needs to be suffixed with "2", otherwise it
514 # will clash with tests from the WebKit 1 test suite.
515 set(EWK2UnitTests_BINARIES
516     test_ewk2_accessibility
517     test_ewk2_application_cache_manager
518     test_ewk2_auth_request
519     test_ewk2_back_forward_list
520     test_ewk2_color_picker
521     test_ewk2_context
522     test_ewk2_context_history_callbacks
523     test_ewk2_context_menu
524     test_ewk2_cookie_manager
525     test_ewk2_database_manager
526     test_ewk2_download_job
527     test_ewk2_eina_shared_string
528     test_ewk2_favicon_database
529     test_ewk2_file_chooser_request
530     test_ewk2_javascript_binding
531     test_ewk2_object
532     test_ewk2_page
533     test_ewk2_page_group
534     test_ewk2_popup_menu
535     test_ewk2_settings
536     test_ewk2_ssl
537     test_ewk2_storage_manager
538     test_ewk2_text_checker
539     test_ewk2_view
540     test_ewk2_view_configuration
541     test_ewk2_window_features
542 )
543
544 # Skipped unit tests list:
545 #
546 # webkit.org/b/107422: test_ewk2_auth_request
547
548 if (ENABLE_API_TESTS)
549     foreach (testName ${EWK2UnitTests_BINARIES})
550         add_executable(${testName} ${WEBKIT2_EFL_TEST_DIR}/${testName}.cpp)
551         add_test(${testName} ${WEBKIT2_EFL_TEST_RUNTIME_OUTPUT_DIRECTORY}/${testName})
552         set_tests_properties(${testName} PROPERTIES TIMEOUT 60)
553         set_target_properties(${testName} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${WEBKIT2_EFL_TEST_RUNTIME_OUTPUT_DIRECTORY})
554         target_link_libraries(${testName} ${EWK2UnitTests_LIBRARIES} ewk2UnitTestUtils)
555     endforeach ()
556
557     add_library(ewk2UnitTestExtensionSample SHARED ${TEST_EXTENSIONS_DIR}/extension_sample.cpp)
558     target_link_libraries(ewk2UnitTestExtensionSample ${EINA_LIBRARIES} WebKit2)
559 endif ()
560
561 if (ENABLE_SPELLCHECK)
562     list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
563         ${ENCHANT_INCLUDE_DIRS}
564     )
565     list(APPEND WebKit2_LIBRARIES
566         ${ENCHANT_LIBRARIES}
567     )
568 endif ()
569
570 if (ENABLE_ACCESSIBILITY)
571     list(APPEND WebKit2_INCLUDE_DIRECTORIES
572         "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
573     )
574     list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
575         ${ATK_INCLUDE_DIRS}
576     )
577     list(APPEND WebKit2_LIBRARIES
578         ${ATK_LIBRARIES}
579     )
580 endif ()
581
582 if (ENABLE_BATTERY_STATUS)
583     list(APPEND WebKit2_LIBRARIES
584         ${ELDBUS_LIBRARIES}
585     )
586     list(APPEND WebKit2_SYSTEM_INCLUDE_DIRECTORIES
587         ${ELDBUS_INCLUDE_DIRS}
588     )
589 endif ()