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