[GTK] [CMake] Add support for building WebKit2
[WebKit-https.git] / Source / WebKit2 / PlatformEfl.cmake
1 list(APPEND WebKit2_SOURCES
2     Platform/efl/LoggingEfl.cpp
3     Platform/efl/ModuleEfl.cpp
4     Platform/efl/WorkQueueEfl.cpp
5     Platform/unix/SharedMemoryUnix.cpp
6
7     Platform/CoreIPC/unix/ConnectionUnix.cpp
8     Platform/CoreIPC/unix/AttachmentUnix.cpp
9
10     PluginProcess/unix/PluginControllerProxyUnix.cpp
11     PluginProcess/unix/PluginProcessMainUnix.cpp
12     PluginProcess/unix/PluginProcessUnix.cpp
13
14     Shared/API/c/cairo/WKImageCairo.cpp
15     Shared/API/c/efl/WKArrayEfl.cpp
16
17     Shared/Downloads/efl/DownloadSoupErrorsEfl.cpp
18     Shared/Downloads/soup/DownloadSoup.cpp
19
20     Shared/cairo/ShareableBitmapCairo.cpp
21
22     Shared/efl/LayerTreeContextEfl.cpp
23     Shared/efl/NativeWebKeyboardEventEfl.cpp
24     Shared/efl/NativeWebWheelEventEfl.cpp
25     Shared/efl/NativeWebMouseEventEfl.cpp
26     Shared/efl/NativeWebTouchEventEfl.cpp
27     Shared/efl/ProcessExecutablePathEfl.cpp
28     Shared/efl/WebEventFactory.cpp
29
30     Shared/linux/SeccompFilters/OpenSyscall.cpp
31     Shared/linux/SeccompFilters/SigactionSyscall.cpp
32     Shared/linux/SeccompFilters/SigprocmaskSyscall.cpp
33     Shared/linux/SeccompFilters/SeccompBroker.cpp
34     Shared/linux/SeccompFilters/SeccompFilters.cpp
35     Shared/linux/SeccompFilters/Syscall.cpp
36     Shared/linux/SeccompFilters/SyscallPolicy.cpp
37
38     Shared/linux/WebMemorySamplerLinux.cpp
39
40     Shared/soup/PlatformCertificateInfo.cpp
41     Shared/soup/WebCoreArgumentCodersSoup.cpp
42
43     UIProcess/DefaultUndoController.cpp
44     UIProcess/PageViewportController.cpp
45
46     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
47
48     UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp
49
50     UIProcess/API/C/CoordinatedGraphics/WKView.cpp
51
52     UIProcess/API/C/efl/WKPageEfl.cpp
53     UIProcess/API/C/efl/WKPopupItem.cpp
54     UIProcess/API/C/efl/WKPopupMenuListener.cpp
55     UIProcess/API/C/efl/WKViewEfl.cpp
56
57     UIProcess/API/cpp/efl/WKEinaSharedString.cpp
58
59     UIProcess/API/C/soup/WKContextSoup.cpp
60     UIProcess/API/C/soup/WKCookieManagerSoup.cpp
61     UIProcess/API/C/soup/WKSoupRequestManager.cpp
62
63     UIProcess/API/efl/EwkView.cpp
64     UIProcess/API/efl/EvasGLContext.cpp
65     UIProcess/API/efl/EvasGLSurface.cpp
66     UIProcess/API/efl/SnapshotImageGL.cpp
67     UIProcess/API/efl/ewk_auth_request.cpp
68     UIProcess/API/efl/ewk_back_forward_list.cpp
69     UIProcess/API/efl/ewk_back_forward_list_item.cpp
70     UIProcess/API/efl/ewk_color_picker.cpp
71     UIProcess/API/efl/ewk_context.cpp
72     UIProcess/API/efl/ewk_context_menu.cpp
73     UIProcess/API/efl/ewk_context_menu_item.cpp
74     UIProcess/API/efl/ewk_cookie_manager.cpp
75     UIProcess/API/efl/ewk_database_manager.cpp
76     UIProcess/API/efl/ewk_download_job.cpp
77     UIProcess/API/efl/ewk_error.cpp
78     UIProcess/API/efl/ewk_favicon_database.cpp
79     UIProcess/API/efl/ewk_file_chooser_request.cpp
80     UIProcess/API/efl/ewk_form_submission_request.cpp
81     UIProcess/API/efl/ewk_main.cpp
82     UIProcess/API/efl/ewk_navigation_data.cpp
83     UIProcess/API/efl/ewk_navigation_policy_decision.cpp
84     UIProcess/API/efl/ewk_object.cpp
85     UIProcess/API/efl/ewk_page_group.cpp
86     UIProcess/API/efl/ewk_popup_menu.cpp
87     UIProcess/API/efl/ewk_popup_menu_item.cpp
88     UIProcess/API/efl/ewk_security_origin.cpp
89     UIProcess/API/efl/ewk_settings.cpp
90     UIProcess/API/efl/ewk_storage_manager.cpp
91     UIProcess/API/efl/ewk_text_checker.cpp
92     UIProcess/API/efl/ewk_url_request.cpp
93     UIProcess/API/efl/ewk_url_response.cpp
94     UIProcess/API/efl/ewk_url_scheme_request.cpp
95     UIProcess/API/efl/ewk_view.cpp
96     UIProcess/API/efl/ewk_window_features.cpp
97
98     UIProcess/cairo/BackingStoreCairo.cpp
99
100     UIProcess/CoordinatedGraphics/WebView.cpp
101     UIProcess/CoordinatedGraphics/WebViewClient.cpp
102
103     UIProcess/efl/BatteryProvider.cpp
104     UIProcess/efl/ContextHistoryClientEfl.cpp
105     UIProcess/efl/ContextMenuClientEfl.cpp
106     UIProcess/efl/DownloadManagerEfl.cpp
107     UIProcess/efl/FindClientEfl.cpp
108     UIProcess/efl/FormClientEfl.cpp
109     UIProcess/efl/InputMethodContextEfl.cpp
110     UIProcess/efl/NetworkInfoProvider.cpp
111     UIProcess/efl/PageLoadClientEfl.cpp
112     UIProcess/efl/PagePolicyClientEfl.cpp
113     UIProcess/efl/PageUIClientEfl.cpp
114     UIProcess/efl/PageViewportControllerClientEfl.cpp
115     UIProcess/efl/RequestManagerClientEfl.cpp
116     UIProcess/efl/TextCheckerClientEfl.cpp
117     UIProcess/efl/TextCheckerEfl.cpp
118     UIProcess/efl/VibrationClientEfl.cpp
119     UIProcess/efl/ViewClientEfl.cpp
120     UIProcess/efl/WebViewEfl.cpp
121     UIProcess/efl/WebContextEfl.cpp
122     UIProcess/efl/WebContextMenuProxyEfl.cpp
123     UIProcess/efl/WebFullScreenManagerProxyEfl.cpp
124     UIProcess/efl/WebInspectorProxyEfl.cpp
125     UIProcess/efl/WebPageProxyEfl.cpp
126     UIProcess/efl/WebPopupItemEfl.cpp
127     UIProcess/efl/WebPopupMenuListenerEfl.cpp
128     UIProcess/efl/WebPreferencesEfl.cpp
129     UIProcess/efl/WebProcessProxyEfl.cpp
130     UIProcess/efl/WebUIPopupMenuClient.cpp
131
132     UIProcess/InspectorServer/efl/WebInspectorServerEfl.cpp
133     UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp
134
135     UIProcess/soup/WebCookieManagerProxySoup.cpp
136     UIProcess/soup/WebSoupRequestManagerClient.cpp
137     UIProcess/soup/WebSoupRequestManagerProxy.cpp
138
139     UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
140
141     UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
142     UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp
143
144     UIProcess/Storage/StorageManager.cpp
145
146     WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
147     WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
148
149     WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp
150
151     WebProcess/Plugins/Netscape/unix/PluginProxyUnix.cpp
152
153     WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
154
155     WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp
156     WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp
157     WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp
158     WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp
159
160     WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
161
162     WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
163     WebProcess/WebPage/efl/WebInspectorEfl.cpp
164     WebProcess/WebPage/efl/WebPageEfl.cpp
165
166     WebProcess/efl/SeccompFiltersWebProcessEfl.cpp
167     WebProcess/efl/WebProcessMainEfl.cpp
168
169     WebProcess/soup/WebProcessSoup.cpp
170     WebProcess/soup/WebSoupRequestManager.cpp
171     WebProcess/soup/WebKitSoupRequestGeneric.cpp
172     WebProcess/soup/WebKitSoupRequestInputStream.cpp
173 )
174
175 list(APPEND WebKit2_MESSAGES_IN_FILES
176     UIProcess/soup/WebSoupRequestManagerProxy.messages.in
177     WebProcess/soup/WebSoupRequestManager.messages.in
178 )
179
180 list(APPEND WebKit2_INCLUDE_DIRECTORIES
181     "${WEBCORE_DIR}/platform/efl"
182     "${WEBCORE_DIR}/platform/graphics/cairo"
183     "${WEBCORE_DIR}/platform/network/soup"
184     "${WEBCORE_DIR}/platform/text/enchant"
185     "${WEBKIT2_DIR}/Shared/API/c/efl"
186     "${WEBKIT2_DIR}/Shared/Downloads/soup"
187     "${WEBKIT2_DIR}/Shared/efl"
188     "${WEBKIT2_DIR}/Shared/soup"
189     "${WEBKIT2_DIR}/UIProcess/API/C/cairo"
190     "${WEBKIT2_DIR}/UIProcess/API/C/CoordinatedGraphics"
191     "${WEBKIT2_DIR}/UIProcess/API/C/efl"
192     "${WEBKIT2_DIR}/UIProcess/API/C/soup"
193     "${WEBKIT2_DIR}/UIProcess/API/cpp/efl"
194     "${WEBKIT2_DIR}/UIProcess/API/efl"
195     "${WEBKIT2_DIR}/UIProcess/efl"
196     "${WEBKIT2_DIR}/UIProcess/soup"
197     "${WEBKIT2_DIR}/WebProcess/efl"
198     "${WEBKIT2_DIR}/WebProcess/soup"
199     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
200     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
201     "${WTF_DIR}/wtf/efl/"
202     "${WTF_DIR}/wtf/gobject"
203     ${CAIRO_INCLUDE_DIRS}
204     ${ECORE_EVAS_INCLUDE_DIRS}
205     ${ECORE_IMF_EVAS_INCLUDE_DIRS}
206     ${ECORE_IMF_INCLUDE_DIRS}
207     ${ECORE_INCLUDE_DIRS}
208     ${ECORE_X_INCLUDE_DIRS}
209     ${EDJE_INCLUDE_DIRS}
210     ${EFREET_INCLUDE_DIRS}
211     ${EINA_INCLUDE_DIRS}
212     ${EO_INCLUDE_DIRS}
213     ${EVAS_INCLUDE_DIRS}
214     ${HARFBUZZ_INCLUDE_DIRS}
215     ${LIBSOUP_INCLUDE_DIRS}
216     ${LIBXML2_INCLUDE_DIR}
217     ${LIBXSLT_INCLUDE_DIRS}
218     ${SQLITE_INCLUDE_DIRS}
219     ${GLIB_INCLUDE_DIRS}
220     ${LIBSOUP_INCLUDE_DIRS}
221     ${WTF_DIR}
222 )
223
224 list(APPEND WebKit2_LIBRARIES
225     ${CAIRO_LIBRARIES}
226     ${ECORE_LIBRARIES}
227     ${ECORE_EVAS_LIBRARIES}
228     ${EDJE_LIBRARIES}
229     ${EFREET_LIBRARIES}
230     ${EINA_LIBRARIES}
231     ${EO_LIBRARIES}
232     ${EVAS_LIBRARIES}
233     ${Freetype_LIBRARIES}
234     ${HARFBUZZ_LIBRARIES}
235     ${LIBXML2_LIBRARIES}
236     ${OPENGL_LIBRARIES}
237     ${SQLITE_LIBRARIES}
238     ${FONTCONFIG_LIBRARIES}
239     ${PNG_LIBRARIES}
240     ${JPEG_LIBRARIES}
241     ${CMAKE_DL_LIBS}
242     ${GLIB_LIBRARIES}
243     ${GLIB_GIO_LIBRARIES}
244     ${GLIB_GOBJECT_LIBRARIES}
245     ${LIBSOUP_LIBRARIES}
246 )
247
248 list(APPEND WebProcess_SOURCES
249     efl/MainEfl.cpp
250 )
251
252 list(APPEND WebProcess_LIBRARIES
253     ${CAIRO_LIBRARIES}
254     ${ECORE_IMF_LIBRARIES}
255     ${ECORE_IMF_EVAS_LIBRARIES}
256     ${EDJE_LIBRARIES}
257     ${EFLDEPS_LIBRARIES}
258     ${EVAS_LIBRARIES}
259     ${LIBXML2_LIBRARIES}
260     ${LIBXSLT_LIBRARIES}
261     ${OPENGL_LIBRARIES}
262     ${SQLITE_LIBRARIES}
263 )
264
265 if (ENABLE_SECCOMP_FILTERS)
266     list(APPEND WebKit2_LIBRARIES
267         ${LIBSECCOMP_LIBRARIES}
268     )
269     list(APPEND WebKit2_INCLUDE_DIRECTORIES
270         ${LIBSECCOMP_INCLUDE_DIRS}
271     )
272
273     # If building with jhbuild, add the root build directory to the
274     # filesystem access policy.
275     if (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/WebKitBuild/Dependencies)
276         add_definitions(-DSOURCE_DIR=\"${CMAKE_SOURCE_DIR}\")
277     endif ()
278 endif ()
279
280 if (ENABLE_ECORE_X)
281     list(APPEND WebProcess_LIBRARIES
282         ${ECORE_X_LIBRARIES}
283         ${X11_Xext_LIB})
284 endif ()
285
286 add_custom_target(forwarding-headerEfl
287     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
288     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include CoordinatedGraphics
289 )
290
291 add_custom_target(forwarding-headerSoup
292     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
293 )
294
295 set(WEBKIT2_EXTRA_DEPENDENCIES
296      forwarding-headerEfl
297      forwarding-headerSoup
298 )
299
300 configure_file(efl/ewebkit2.pc.in ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc @ONLY)
301 set(EWebKit2_HEADERS
302     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/EWebKit2.h"
303     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_auth_request.h"
304     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_back_forward_list.h"
305     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_back_forward_list_item.h"
306     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_color_picker.h"
307     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context.h"
308     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context_menu.h"
309     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context_menu_item.h"
310     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_cookie_manager.h"
311     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_database_manager.h"
312     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_defines.h"
313     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_download_job.h"
314     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_error.h"
315     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_favicon_database.h"
316     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_file_chooser_request.h"
317     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_form_submission_request.h"
318     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_page_group.h"
319     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_main.h"
320     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_data.h"
321     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_policy_decision.h"
322     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_object.h"
323     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_popup_menu.h"
324     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_popup_menu_item.h"
325     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_security_origin.h"
326     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_settings.h"
327     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_storage_manager.h"
328     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_text_checker.h"
329     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_touch.h"
330     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_request.h"
331     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_response.h"
332     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_scheme_request.h"
333     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_view.h"
334     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_window_features.h"
335 )
336
337 install(FILES ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc DESTINATION lib/pkgconfig)
338 install(FILES ${EWebKit2_HEADERS} DESTINATION include/${WebKit2_OUTPUT_NAME}-${PROJECT_VERSION_MAJOR})
339
340 if (ENABLE_PLUGIN_PROCESS)
341     add_definitions(-DENABLE_PLUGIN_PROCESS=1)
342
343     list(APPEND PluginProcess_INCLUDE_DIRECTORIES
344         "${WEBKIT2_DIR}/PluginProcess/unix"
345     )
346
347     include_directories(${PluginProcess_INCLUDE_DIRECTORIES})
348
349     list(APPEND PluginProcess_SOURCES
350         ${WEBKIT2_DIR}/unix/PluginMainUnix.cpp
351     )
352
353     set(PluginProcess_LIBRARIES
354         WebKit2
355     )
356
357     add_executable(PluginProcess ${PluginProcess_SOURCES})
358     target_link_libraries(PluginProcess ${PluginProcess_LIBRARIES})
359     install(TARGETS PluginProcess DESTINATION "${EXEC_INSTALL_DIR}")
360 endif () # ENABLE_PLUGIN_PROCESS
361
362 include_directories(${THIRDPARTY_DIR}/gtest/include)
363
364 set(EWK2UnitTests_LIBRARIES
365     WTF
366     JavaScriptCore
367     WebCore
368     WebKit2
369     ${CAIRO_LIBRARIES}
370     ${ECORE_LIBRARIES}
371     ${ECORE_EVAS_LIBRARIES}
372     ${EVAS_LIBRARIES}
373     ${GLIB_LIBRARIES}
374     ${GLIB_GIO_LIBRARIES}
375     ${GLIB_GOBJECT_LIBRARIES}
376     ${GLIB_GTHREAD_LIBRARIES}
377     ${LIBSOUP_LIBRARIES}
378     gtest
379 )
380
381 set(WEBKIT2_EFL_TEST_DIR "${WEBKIT2_DIR}/UIProcess/API/efl/tests")
382 set(TEST_RESOURCES_DIR ${WEBKIT2_EFL_TEST_DIR}/resources)
383 set(TEST_INJECTED_BUNDLE_DIR ${WEBKIT2_EFL_TEST_DIR}/InjectedBundle)
384
385 add_definitions(-DTEST_RESOURCES_DIR=\"${TEST_RESOURCES_DIR}\"
386     -DTEST_LIB_DIR=\"${CMAKE_LIBRARY_OUTPUT_DIRECTORY}\"
387     -DGTEST_LINKED_AS_SHARED_LIBRARY=1
388     -DLIBEXECDIR=\"${CMAKE_INSTALL_PREFIX}/${EXEC_INSTALL_DIR}\"
389     -DWEBPROCESSNAME=\"WebProcess\"
390     -DPLUGINPROCESSNAME=\"PluginProcess\"
391 )
392
393 add_library(ewk2UnitTestUtils
394     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestBase.cpp
395     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestEnvironment.cpp
396     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestMain.cpp
397     ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestServer.cpp
398 )
399
400 target_link_libraries(ewk2UnitTestUtils ${EWK2UnitTests_LIBRARIES})
401
402 # The "ewk" on the test name needs to be suffixed with "2", otherwise it
403 # will clash with tests from the WebKit 1 test suite.
404 set(EWK2UnitTests_BINARIES
405     test_ewk2_auth_request
406     test_ewk2_back_forward_list
407     test_ewk2_color_picker
408     test_ewk2_context
409     test_ewk2_context_history_callbacks
410     test_ewk2_context_menu
411     test_ewk2_cookie_manager
412     test_ewk2_database_manager
413     test_ewk2_download_job
414     test_ewk2_eina_shared_string
415     test_ewk2_favicon_database
416     test_ewk2_file_chooser_request
417     test_ewk2_object
418     test_ewk2_page_group
419     test_ewk2_popup_menu
420     test_ewk2_refptr_evas_object
421     test_ewk2_settings
422     test_ewk2_storage_manager
423     test_ewk2_text_checker
424     test_ewk2_view
425     test_ewk2_window_features
426 )
427
428 # Skipped unit tests list:
429 #
430 # webkit.org/b/107422: test_ewk2_auth_request
431 #
432
433 if (ENABLE_API_TESTS)
434     foreach (testName ${EWK2UnitTests_BINARIES})
435         add_executable(${testName} ${WEBKIT2_EFL_TEST_DIR}/${testName}.cpp)
436         add_test(${testName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${testName})
437         set_tests_properties(${testName} PROPERTIES TIMEOUT 60)
438         target_link_libraries(${testName} ${EWK2UnitTests_LIBRARIES} ewk2UnitTestUtils)
439     endforeach ()
440
441     add_library(ewk2UnitTestInjectedBundleSample SHARED ${TEST_INJECTED_BUNDLE_DIR}/injected_bundle_sample.cpp)
442     target_link_libraries(ewk2UnitTestInjectedBundleSample WebKit2)
443 endif ()
444
445 if (ENABLE_SPELLCHECK)
446     list(APPEND WebKit2_INCLUDE_DIRECTORIES
447         ${ENCHANT_INCLUDE_DIRS}
448     )
449     list(APPEND WebKit2_LIBRARIES
450         ${ENCHANT_LIBRARIES}
451     )
452 endif ()
453
454 if (ENABLE_ACCESSIBILITY)
455     list(APPEND WebKit2_INCLUDE_DIRECTORIES
456         "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
457         ${ATK_INCLUDE_DIRS}
458     )
459     list(APPEND WebKit2_LIBRARIES
460         ${ATK_LIBRARIES}
461     )
462 endif ()