LIST(APPEND WebKit2StaticForDebug_SOURCES Platform/efl/LoggingEfl.cpp Platform/efl/ModuleEfl.cpp Platform/efl/WorkQueueEfl.cpp Platform/unix/SharedMemoryUnix.cpp Platform/CoreIPC/unix/ConnectionUnix.cpp Platform/CoreIPC/unix/AttachmentUnix.cpp PluginProcess/efl/PluginProcessEfl.cpp PluginProcess/efl/PluginProcessMainEfl.cpp Shared/API/c/cairo/WKImageCairo.cpp Shared/API/c/gtk/WKGraphicsContextGtk.cpp Shared/cairo/ShareableBitmapCairo.cpp Shared/efl/LayerTreeContextEfl.cpp Shared/efl/NativeWebKeyboardEventEfl.cpp Shared/efl/NativeWebWheelEventEfl.cpp Shared/efl/NativeWebMouseEventEfl.cpp Shared/efl/NativeWebTouchEventEfl.cpp Shared/efl/ProcessExecutablePathEfl.cpp Shared/efl/WebEventFactory.cpp Shared/soup/PlatformCertificateInfo.cpp Shared/soup/WebCoreArgumentCodersSoup.cpp UIProcess/API/C/efl/WKView.cpp UIProcess/API/cpp/efl/WKEinaSharedString.cpp UIProcess/API/C/soup/WKContextSoup.cpp UIProcess/API/C/soup/WKSoupRequestManager.cpp UIProcess/API/efl/BatteryProvider.cpp UIProcess/API/efl/EwkViewImpl.cpp UIProcess/API/efl/NetworkInfoProvider.cpp UIProcess/API/efl/PageClientImpl.cpp UIProcess/API/efl/VibrationProvider.cpp UIProcess/API/efl/ewk_back_forward_list.cpp UIProcess/API/efl/ewk_back_forward_list_item.cpp UIProcess/API/efl/ewk_context.cpp UIProcess/API/efl/ewk_cookie_manager.cpp UIProcess/API/efl/ewk_download_job.cpp UIProcess/API/efl/ewk_error.cpp UIProcess/API/efl/ewk_favicon_database.cpp UIProcess/API/efl/ewk_form_submission_request.cpp UIProcess/API/efl/ewk_intent.cpp UIProcess/API/efl/ewk_intent_service.cpp UIProcess/API/efl/ewk_main.cpp UIProcess/API/efl/ewk_navigation_data.cpp UIProcess/API/efl/ewk_navigation_policy_decision.cpp UIProcess/API/efl/ewk_popup_menu_item.cpp UIProcess/API/efl/ewk_resource.cpp UIProcess/API/efl/ewk_settings.cpp UIProcess/API/efl/ewk_text_checker.cpp UIProcess/API/efl/ewk_url_request.cpp UIProcess/API/efl/ewk_url_response.cpp UIProcess/API/efl/ewk_url_scheme_request.cpp UIProcess/API/efl/ewk_view.cpp UIProcess/cairo/BackingStoreCairo.cpp UIProcess/efl/ContextHistoryClientEfl.cpp UIProcess/efl/DownloadManagerEfl.cpp UIProcess/efl/FindClientEfl.cpp UIProcess/efl/FormClientEfl.cpp UIProcess/efl/InputMethodContextEfl.cpp UIProcess/efl/PageLoadClientEfl.cpp UIProcess/efl/PagePolicyClientEfl.cpp UIProcess/efl/PageUIClientEfl.cpp UIProcess/efl/RequestManagerClientEfl.cpp UIProcess/efl/ResourceLoadClientEfl.cpp UIProcess/efl/TextCheckerEfl.cpp UIProcess/efl/WebContextEfl.cpp UIProcess/efl/WebFullScreenManagerProxyEfl.cpp UIProcess/efl/WebInspectorProxyEfl.cpp UIProcess/efl/WebPageProxyEfl.cpp UIProcess/efl/WebPopupMenuProxyEfl.cpp UIProcess/efl/WebPreferencesEfl.cpp UIProcess/soup/WebCookieManagerProxySoup.cpp UIProcess/soup/WebSoupRequestManagerClient.cpp UIProcess/soup/WebSoupRequestManagerProxy.cpp UIProcess/Launcher/efl/ProcessLauncherEfl.cpp UIProcess/Launcher/efl/ThreadLauncherEfl.cpp UIProcess/Plugins/efl/PluginProcessProxyEfl.cpp UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp WebProcess/Cookies/soup/WebCookieManagerSoup.cpp WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp WebProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp WebProcess/Downloads/soup/DownloadSoup.cpp WebProcess/efl/WebProcessEfl.cpp WebProcess/efl/WebProcessMainEfl.cpp WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp WebProcess/WebPage/efl/WebInspectorEfl.cpp WebProcess/WebPage/efl/WebPageEfl.cpp WebProcess/soup/WebSoupRequestManager.cpp WebProcess/soup/WebKitSoupRequestGeneric.cpp WebProcess/soup/WebKitSoupRequestInputStream.cpp ) LIST(APPEND WebKit2StaticForDebug_MESSAGES_IN_FILES UIProcess/soup/WebSoupRequestManagerProxy.messages.in WebProcess/soup/WebSoupRequestManager.messages.in ) LIST(APPEND WebKit2StaticForDebug_INCLUDE_DIRECTORIES "${JAVASCRIPTCORE_DIR}/llint" "${WEBCORE_DIR}/platform/efl" "${WEBCORE_DIR}/platform/graphics/cairo" "${WEBCORE_DIR}/platform/graphics/surfaces" "${WEBCORE_DIR}/platform/network/soup" "${WEBCORE_DIR}/platform/text/enchant" "${WEBCORE_DIR}/svg/graphics" "${WEBKIT2_DIR}/Shared/efl" "${WEBKIT2_DIR}/Shared/soup" "${WEBKIT2_DIR}/UIProcess/API/C/efl" "${WEBKIT2_DIR}/UIProcess/API/C/soup" "${WEBKIT2_DIR}/UIProcess/API/cpp/efl" "${WEBKIT2_DIR}/UIProcess/API/efl" "${WEBKIT2_DIR}/UIProcess/efl" "${WEBKIT2_DIR}/UIProcess/soup" "${WEBKIT2_DIR}/WebProcess/Downloads/soup" "${WEBKIT2_DIR}/WebProcess/efl" "${WEBKIT2_DIR}/WebProcess/soup" "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl" "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup" "${WTF_DIR}/wtf/efl/" "${WTF_DIR}/wtf/gobject" ${CAIRO_INCLUDE_DIRS} ${ECORE_INCLUDE_DIRS} ${ECORE_EVAS_INCLUDE_DIRS} ${EDJE_INCLUDE_DIRS} ${EFREET_INCLUDE_DIRS} ${EINA_INCLUDE_DIRS} ${EVAS_INCLUDE_DIRS} ${HARFBUZZ_INCLUDE_DIRS} ${LIBSOUP_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_DIRS} ${SQLITE_INCLUDE_DIRS} ${GLIB_INCLUDE_DIRS} ${LIBSOUP_INCLUDE_DIRS} ${WTF_DIR} ${CAPI_INCLUDE_DIRS} ) LIST(APPEND WebKit2_LIBRARIES ${CAIRO_LIBRARIES} ${ECORE_LIBRARIES} ${ECORE_EVAS_LIBRARIES} ${EDJE_LIBRARIES} ${EFREET_LIBRARIES} ${EINA_LIBRARIES} ${EVAS_LIBRARIES} ${Freetype_LIBRARIES} ${HARFBUZZ_LIBRARIES} ${LIBXML2_LIBRARIES} ${SQLITE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${PNG_LIBRARY} ${JPEG_LIBRARY} ${CMAKE_DL_LIBS} ${GLIB_LIBRARIES} ${GLIB_GIO_LIBRARIES} ${GLIB_GOBJECT_LIBRARIES} ${LIBSOUP_LIBRARIES} ${CAPI_LIBRARIES} ) LIST (APPEND WebKit2_FORWARDING_HEADERS_DIRECTORIES Shared/API/c/efl Shared/API/c/soup UIProcess/API/C/efl UIProcess/API/C/soup ) LIST (APPEND WebProcess_SOURCES efl/MainEfl.cpp ) LIST (APPEND WebProcess_LIBRARIES ${CAIRO_LIBRARIES} ${ECORE_IMF_LIBRARIES} ${ECORE_X_LIBRARIES} ${EDJE_LIBRARIES} ${EFLDEPS_LIBRARIES} ${EVAS_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${SQLITE_LIBRARIES} ) ADD_CUSTOM_TARGET(forwarding-headerEfl COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl ) SET(ForwardingHeaders_NAME forwarding-headerEfl) ADD_CUSTOM_TARGET(forwarding-headerSoup COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup ) SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup) IF (ENABLE_GLIB_SUPPORT) LIST(APPEND WebKit2StaticForDebug_INCLUDE_DIRECTORIES ${Glib_INCLUDE_DIRS} ${JAVASCRIPTCORE_DIR}/wtf/gobject ) LIST(APPEND WebKit2_LIBRARIES ${Glib_LIBRARIES} ) ENDIF () IF (ENABLE_BATTERY_STATUS) LIST(APPEND WebKit2StaticForDebug_INCLUDE_DIRECTORIES $(WEBCORE_DIR)/Modules/battery) ENDIF () IF (ENABLE_TIZEN_SUPPORT) INCLUDE_IF_EXISTS(${WEBKIT2_DIR}/PlatformTizen.cmake) ENDIF () CONFIGURE_FILE(efl/ewebkit2.pc.in ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc @ONLY) SET (EWebKit2_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/EWebKit2.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_auth_challenge.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_back_forward_list.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_back_forward_list_item.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_certificate.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_cookie_manager.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_download_job.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_error.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_favicon_database.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_form_submission_request.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intent.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intent_service.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_main.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_data.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_policy_decision.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_popup_menu_item.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_resource.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_settings.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_text_checker.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_touch.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_request.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_response.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_scheme_request.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_view.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context_menu.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_custom_handlers.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_enums.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_form_data.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_frame.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_history.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_hit_test.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_geolocation.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_notification.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_policy_decision.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_popup_menu_item.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_search_provider.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_security_origin.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_settings.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_text_style.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_user_media.h" "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_web_application_icon_data.h" ) INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc DESTINATION lib/pkgconfig) INSTALL(FILES ${EWebKit2_HEADERS} DESTINATION include/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}) INCLUDE_DIRECTORIES(${THIRDPARTY_DIR}/gtest/include) SET(EWK2UnitTests_LIBRARIES ${WTF_LIBRARY_NAME} ${JavaScriptCore_LIBRARY_NAME} ${WebCore_LIBRARY_NAME} ${WebKit2_LIBRARY_NAME} ${CAIRO_LIBRARIES} ${ECORE_LIBRARIES} ${ECORE_EVAS_LIBRARIES} ${EVAS_LIBRARIES} ${GLIB_LIBRARIES} ${GLIB_GIO_LIBRARIES} ${GLIB_GOBJECT_LIBRARIES} ${LIBSOUP_LIBRARIES} gtest ) IF (ENABLE_GLIB_SUPPORT) LIST(APPEND EWK2UnitTests_LIBRARIES ${GLIB_LIBRARIES} ${GLIB_GTHREAD_LIBRARIES} ) ENDIF() SET(WEBKIT2_EFL_TEST_DIR "${WEBKIT2_DIR}/UIProcess/API/efl/tests") SET(TEST_RESOURCES_DIR ${WEBKIT2_EFL_TEST_DIR}/resources) SET(TEST_INJECTED_BUNDLE_DIR ${WEBKIT2_EFL_TEST_DIR}/InjectedBundle) ADD_DEFINITIONS(-DTEST_RESOURCES_DIR=\"${TEST_RESOURCES_DIR}\" -DTEST_THEME_DIR=\"${THEME_BINARY_DIR}\" -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DLIBEXECDIR=\"${CMAKE_INSTALL_PREFIX}/${EXEC_INSTALL_DIR}\" -DWEBPROCESSNAME=\"${WebProcess_EXECUTABLE_NAME}\" -DPLUGINPROCESSNAME=\"${PluginProcess_EXECUTABLE_NAME}\" ) ADD_LIBRARY(ewk2UnitTestUtils ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestBase.cpp ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestEnvironment.cpp ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestMain.cpp ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestServer.cpp ) TARGET_LINK_LIBRARIES(ewk2UnitTestUtils ${EWK2UnitTests_LIBRARIES}) # The "ewk" on the test name needs to be suffixed with "2", otherwise it # will clash with tests from the WebKit 1 test suite. SET(EWK2UnitTests_BINARIES test_ewk2_back_forward_list test_ewk2_context test_ewk2_context_history_callbacks test_ewk2_cookie_manager test_ewk2_download_job test_ewk2_eina_shared_string test_ewk2_favicon_database test_ewk2_intents test_ewk2_settings test_ewk2_view ) IF (ENABLE_API_TESTS) FOREACH (testName ${EWK2UnitTests_BINARIES}) ADD_EXECUTABLE(${testName} ${WEBKIT2_EFL_TEST_DIR}/${testName}.cpp) ADD_TEST(${testName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${testName}) SET_TESTS_PROPERTIES(${testName} PROPERTIES TIMEOUT 60) TARGET_LINK_LIBRARIES(${testName} ${EWK2UnitTests_LIBRARIES} ewk2UnitTestUtils) ENDFOREACH () ADD_LIBRARY(ewk2UnitTestInjectedBundleSample SHARED ${TEST_INJECTED_BUNDLE_DIR}/injected_bundle_sample.cpp) SET_TARGET_PROPERTIES(ewk2UnitTestInjectedBundleSample PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${TEST_RESOURCES_DIR}") ENDIF () IF (ENABLE_SPELLCHECK) LIST(APPEND WebKit2StaticForDebug_INCLUDE_DIRECTORIES ${ENCHANT_INCLUDE_DIRS} ) LIST(APPEND WebKit2_LIBRARIES ${ENCHANT_LIBRARIES} ) ENDIF() IF (ENABLE_INSPECTOR) SET(WK2_WEB_INSPECTOR_DIR ${CMAKE_BINARY_DIR}/WebKit2/efl/webinspector) SET(WK2_WEB_INSPECTOR_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}) ADD_DEFINITIONS(-DWK2_WEB_INSPECTOR_DIR="${WK2_WEB_INSPECTOR_DIR}") ADD_DEFINITIONS(-DWK2_WEB_INSPECTOR_INSTALL_DIR="${WK2_WEB_INSPECTOR_INSTALL_DIR}/webinspector") ADD_CUSTOM_TARGET( wk2-web-inspector-resources ALL COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${WK2_WEB_INSPECTOR_DIR} COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${WK2_WEB_INSPECTOR_DIR} COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${WK2_WEB_INSPECTOR_DIR}/InspectorBackendCommands.js DEPENDS ${WebCore_LIBRARY_NAME} ) INSTALL(DIRECTORY ${WK2_WEB_INSPECTOR_DIR} DESTINATION ${WK2_WEB_INSPECTOR_INSTALL_DIR} FILES_MATCHING PATTERN "*.js" PATTERN "*.html" PATTERN "*.css" PATTERN "*.gif" PATTERN "*.png") ENDIF ()