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