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