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