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