PlatformEfl.cmake 16 KB

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