ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 1 | LIST(APPEND WebKit2_LINK_FLAGS |
| 2 | ${ECORE_X_LDFLAGS} |
| 3 | ${EDJE_LDFLAGS} |
| 4 | ${EFLDEPS_LDFLAGS} |
| 5 | ${EVAS_LDFLAGS} |
commit-queue@webkit.org | e8e600d | 2012-06-05 11:13:14 +0000 | [diff] [blame] | 6 | ${LIBSOUP24_LDFLAGS} |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 7 | ) |
| 8 | |
| 9 | LIST(APPEND WebKit2_SOURCES |
| 10 | Platform/efl/ModuleEfl.cpp |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 11 | Platform/efl/WorkQueueEfl.cpp |
| 12 | Platform/unix/SharedMemoryUnix.cpp |
| 13 | |
| 14 | Platform/CoreIPC/unix/ConnectionUnix.cpp |
| 15 | Platform/CoreIPC/unix/AttachmentUnix.cpp |
| 16 | |
ryuan.choi@samsung.com | 8d2c489 | 2012-07-05 08:47:49 +0000 | [diff] [blame] | 17 | Shared/API/c/cairo/WKImageCairo.cpp |
| 18 | |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 19 | Shared/API/c/gtk/WKGraphicsContextGtk.cpp |
| 20 | |
| 21 | Shared/cairo/LayerTreeContextCairo.cpp |
| 22 | Shared/cairo/ShareableBitmapCairo.cpp |
| 23 | |
| 24 | Shared/efl/NativeWebKeyboardEventEfl.cpp |
| 25 | Shared/efl/NativeWebWheelEventEfl.cpp |
| 26 | Shared/efl/NativeWebMouseEventEfl.cpp |
| 27 | Shared/efl/WebEventFactory.cpp |
| 28 | Shared/efl/WebCoreArgumentCodersEfl.cpp |
| 29 | |
carlosgc@webkit.org | e6ce9da | 2012-07-13 07:26:17 +0000 | [diff] [blame] | 30 | Shared/soup/PlatformCertificateInfo.cpp |
| 31 | |
ryuan.choi@samsung.com | 71b5434 | 2012-06-21 15:11:48 +0000 | [diff] [blame] | 32 | UIProcess/API/C/efl/WKView.cpp |
| 33 | |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 34 | UIProcess/API/C/soup/WKContextSoup.cpp |
| 35 | UIProcess/API/C/soup/WKSoupRequestManager.cpp |
| 36 | |
commit-queue@webkit.org | 773f66d | 2012-07-11 06:10:43 +0000 | [diff] [blame] | 37 | UIProcess/API/efl/BatteryProvider.cpp |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 38 | UIProcess/API/efl/PageClientImpl.cpp |
ryuan.choi@samsung.com | 5c8bdc11 | 2012-06-10 14:21:31 +0000 | [diff] [blame] | 39 | UIProcess/API/efl/ewk_context.cpp |
commit-queue@webkit.org | 1a4a9e4 | 2012-07-02 02:12:41 +0000 | [diff] [blame] | 40 | UIProcess/API/efl/ewk_intent.cpp |
commit-queue@webkit.org | f6288ca | 2012-07-03 06:27:10 +0000 | [diff] [blame] | 41 | UIProcess/API/efl/ewk_intent_service.cpp |
commit-queue@webkit.org | c4c6436 | 2012-07-12 08:35:36 +0000 | [diff] [blame] | 42 | UIProcess/API/efl/ewk_navigation_policy_decision.cpp |
commit-queue@webkit.org | 96a167d | 2012-07-05 07:59:25 +0000 | [diff] [blame] | 43 | UIProcess/API/efl/ewk_url_request.cpp |
commit-queue@webkit.org | 8d23060 | 2012-07-12 03:22:03 +0000 | [diff] [blame] | 44 | UIProcess/API/efl/ewk_url_response.cpp |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 45 | UIProcess/API/efl/ewk_view.cpp |
commit-queue@webkit.org | 25599e4 | 2012-06-15 12:16:55 +0000 | [diff] [blame] | 46 | UIProcess/API/efl/ewk_view_loader_client.cpp |
commit-queue@webkit.org | c4c6436 | 2012-07-12 08:35:36 +0000 | [diff] [blame] | 47 | UIProcess/API/efl/ewk_view_policy_client.cpp |
commit-queue@webkit.org | 96a167d | 2012-07-05 07:59:25 +0000 | [diff] [blame] | 48 | UIProcess/API/efl/ewk_view_resource_load_client.cpp |
commit-queue@webkit.org | 78f60db | 2012-07-04 07:33:41 +0000 | [diff] [blame] | 49 | UIProcess/API/efl/ewk_web_error.cpp |
commit-queue@webkit.org | 96a167d | 2012-07-05 07:59:25 +0000 | [diff] [blame] | 50 | UIProcess/API/efl/ewk_web_resource.cpp |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 51 | |
| 52 | UIProcess/cairo/BackingStoreCairo.cpp |
| 53 | |
| 54 | UIProcess/efl/TextCheckerEfl.cpp |
| 55 | UIProcess/efl/WebContextEfl.cpp |
commit-queue@webkit.org | c57a179 | 2012-04-17 18:01:42 +0000 | [diff] [blame] | 56 | UIProcess/efl/WebFullScreenManagerProxyEfl.cpp |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 57 | UIProcess/efl/WebInspectorEfl.cpp |
| 58 | UIProcess/efl/WebPageProxyEfl.cpp |
| 59 | UIProcess/efl/WebPreferencesEfl.cpp |
| 60 | |
carlosgc@webkit.org | c74f54f | 2012-07-12 08:12:52 +0000 | [diff] [blame] | 61 | UIProcess/soup/WebCookieManagerProxySoup.cpp |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 62 | UIProcess/soup/WebSoupRequestManagerClient.cpp |
| 63 | UIProcess/soup/WebSoupRequestManagerProxy.cpp |
| 64 | |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 65 | UIProcess/Launcher/efl/ProcessLauncherEfl.cpp |
| 66 | UIProcess/Launcher/efl/ThreadLauncherEfl.cpp |
| 67 | |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 68 | UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 69 | |
kubo@profusion.mobi | c3a2eeb5 | 2012-02-13 13:30:42 +0000 | [diff] [blame] | 70 | WebProcess/Cookies/soup/WebCookieManagerSoup.cpp |
carlosgc@webkit.org | c74f54f | 2012-07-12 08:12:52 +0000 | [diff] [blame] | 71 | WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp |
kubo@profusion.mobi | c3a2eeb5 | 2012-02-13 13:30:42 +0000 | [diff] [blame] | 72 | |
commit-queue@webkit.org | 22d97d7 | 2012-01-05 08:51:02 +0000 | [diff] [blame] | 73 | WebProcess/Downloads/efl/DownloadEfl.cpp |
commit-queue@webkit.org | 611984b | 2012-02-09 06:12:47 +0000 | [diff] [blame] | 74 | WebProcess/Downloads/efl/FileDownloaderEfl.cpp |
commit-queue@webkit.org | 22d97d7 | 2012-01-05 08:51:02 +0000 | [diff] [blame] | 75 | |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 76 | WebProcess/efl/WebProcessEfl.cpp |
| 77 | WebProcess/efl/WebProcessMainEfl.cpp |
| 78 | |
| 79 | WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp |
| 80 | |
| 81 | WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp |
| 82 | WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp |
| 83 | WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp |
| 84 | WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp |
| 85 | |
| 86 | WebProcess/WebPage/efl/WebInspectorEfl.cpp |
| 87 | WebProcess/WebPage/efl/WebPageEfl.cpp |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 88 | |
| 89 | WebProcess/soup/WebSoupRequestManager.cpp |
| 90 | WebProcess/soup/WebKitSoupRequestGeneric.cpp |
| 91 | WebProcess/soup/WebKitSoupRequestInputStream.cpp |
| 92 | ) |
| 93 | |
| 94 | LIST(APPEND WebKit2_MESSAGES_IN_FILES |
| 95 | UIProcess/soup/WebSoupRequestManagerProxy.messages.in |
| 96 | WebProcess/soup/WebSoupRequestManager.messages.in |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 97 | ) |
| 98 | |
| 99 | LIST(APPEND WebKit2_INCLUDE_DIRECTORIES |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 100 | "${JAVASCRIPTCORE_DIR}/llint" |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 101 | "${WEBCORE_DIR}/platform/efl" |
| 102 | "${WEBCORE_DIR}/platform/graphics/cairo" |
kubo@profusion.mobi | c3a2eeb5 | 2012-02-13 13:30:42 +0000 | [diff] [blame] | 103 | "${WEBCORE_DIR}/platform/network/soup" |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 104 | "${WEBCORE_DIR}/svg/graphics" |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 105 | "${WEBKIT2_DIR}/Shared/efl" |
carlosgc@webkit.org | c74f54f | 2012-07-12 08:12:52 +0000 | [diff] [blame] | 106 | "${WEBKIT2_DIR}/Shared/soup" |
ryuan.choi@samsung.com | 71b5434 | 2012-06-21 15:11:48 +0000 | [diff] [blame] | 107 | "${WEBKIT2_DIR}/UIProcess/API/C/efl" |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 108 | "${WEBKIT2_DIR}/UIProcess/API/C/soup" |
| 109 | "${WEBKIT2_DIR}/UIProcess/API/efl" |
| 110 | "${WEBKIT2_DIR}/UIProcess/soup" |
commit-queue@webkit.org | 611984b | 2012-02-09 06:12:47 +0000 | [diff] [blame] | 111 | "${WEBKIT2_DIR}/WebProcess/Downloads/efl" |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 112 | "${WEBKIT2_DIR}/WebProcess/efl" |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 113 | "${WEBKIT2_DIR}/WebProcess/soup" |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 114 | "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl" |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 115 | "${WTF_DIR}/wtf/gobject" |
rakuco@webkit.org | fb7fec1 | 2012-05-04 00:39:57 +0000 | [diff] [blame] | 116 | ${CAIRO_INCLUDE_DIRS} |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 117 | ${ECORE_X_INCLUDE_DIRS} |
| 118 | ${EDJE_INCLUDE_DIRS} |
| 119 | ${EFLDEPS_INCLUDE_DIRS} |
| 120 | ${EVAS_INCLUDE_DIRS} |
| 121 | ${LIBXML2_INCLUDE_DIR} |
| 122 | ${LIBXSLT_INCLUDE_DIRS} |
| 123 | ${SQLITE_INCLUDE_DIRS} |
kubo@profusion.mobi | c3a2eeb5 | 2012-02-13 13:30:42 +0000 | [diff] [blame] | 124 | ${Glib_INCLUDE_DIRS} |
| 125 | ${LIBSOUP24_INCLUDE_DIRS} |
ryuan.choi@samsung.com | e9e65c2 | 2012-05-30 12:12:23 +0000 | [diff] [blame] | 126 | ${WTF_DIR} |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 127 | ) |
| 128 | |
| 129 | LIST(APPEND WebKit2_LIBRARIES |
rakuco@webkit.org | fb7fec1 | 2012-05-04 00:39:57 +0000 | [diff] [blame] | 130 | ${CAIRO_LIBRARIES} |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 131 | ${ECORE_X_LIBRARIES} |
| 132 | ${EFLDEPS_LIBRARIES} |
| 133 | ${Freetype_LIBRARIES} |
| 134 | ${LIBXML2_LIBRARIES} |
| 135 | ${SQLITE_LIBRARIES} |
| 136 | ${FONTCONFIG_LIBRARIES} |
| 137 | ${PNG_LIBRARY} |
| 138 | ${JPEG_LIBRARY} |
| 139 | ${CMAKE_DL_LIBS} |
kubo@profusion.mobi | c3a2eeb5 | 2012-02-13 13:30:42 +0000 | [diff] [blame] | 140 | ${Glib_LIBRARIES} |
| 141 | ${LIBSOUP24_LIBRARIES} |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 142 | ) |
| 143 | |
| 144 | LIST (APPEND WebProcess_SOURCES |
| 145 | efl/MainEfl.cpp |
| 146 | ) |
| 147 | |
| 148 | LIST (APPEND WebProcess_LIBRARIES |
rakuco@webkit.org | fb7fec1 | 2012-05-04 00:39:57 +0000 | [diff] [blame] | 149 | ${CAIRO_LIBRARIES} |
ryuan.choi@samsung.com | f97cd69 | 2011-12-22 10:47:50 +0000 | [diff] [blame] | 150 | ${ECORE_X_LIBRARIES} |
| 151 | ${EDJE_LIBRARIES} |
| 152 | ${EFLDEPS_LIBRARIES} |
| 153 | ${EVAS_LIBRARIES} |
| 154 | ${LIBXML2_LIBRARIES} |
| 155 | ${LIBXSLT_LIBRARIES} |
| 156 | ${SQLITE_LIBRARIES} |
| 157 | ) |
| 158 | |
| 159 | ADD_CUSTOM_TARGET(forwarding-headerEfl |
| 160 | COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl |
| 161 | ) |
| 162 | SET(ForwardingHeaders_NAME forwarding-headerEfl) |
| 163 | |
kubo@profusion.mobi | c3a2eeb5 | 2012-02-13 13:30:42 +0000 | [diff] [blame] | 164 | ADD_CUSTOM_TARGET(forwarding-headerSoup |
| 165 | COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup |
| 166 | ) |
| 167 | SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup) |
commit-queue@webkit.org | bff9a10 | 2012-06-21 15:46:40 +0000 | [diff] [blame] | 168 | |
| 169 | CONFIGURE_FILE(efl/ewebkit2.pc.in ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc @ONLY) |
| 170 | SET (EWebKit2_HEADERS |
| 171 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/EWebKit2.h" |
| 172 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_context.h" |
commit-queue@webkit.org | 975681a | 2012-07-13 17:09:03 +0000 | [diff] [blame^] | 173 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intent.h" |
| 174 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intent_service.h" |
| 175 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_policy_decision.h" |
| 176 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_request.h" |
| 177 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_url_response.h" |
commit-queue@webkit.org | bff9a10 | 2012-06-21 15:46:40 +0000 | [diff] [blame] | 178 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_view.h" |
commit-queue@webkit.org | 975681a | 2012-07-13 17:09:03 +0000 | [diff] [blame^] | 179 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_web_error.h" |
| 180 | "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_web_resource.h" |
commit-queue@webkit.org | bff9a10 | 2012-06-21 15:46:40 +0000 | [diff] [blame] | 181 | ) |
| 182 | |
| 183 | INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc DESTINATION lib/pkgconfig) |
| 184 | INSTALL(FILES ${EWebKit2_HEADERS} DESTINATION include/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}) |
commit-queue@webkit.org | 58eba59 | 2012-07-12 21:46:04 +0000 | [diff] [blame] | 185 | |
| 186 | INCLUDE_DIRECTORIES(${THIRDPARTY_DIR}/gtest/include) |
| 187 | |
| 188 | SET(EWK2UnitTests_LIBRARIES |
| 189 | ${JavaScriptCore_LIBRARY_NAME} |
| 190 | ${WebCore_LIBRARY_NAME} |
| 191 | ${WebKit2_LIBRARY_NAME} |
| 192 | ${ECORE_LIBRARIES} |
| 193 | ${ECORE_EVAS_LIBRARIES} |
| 194 | ${EVAS_LIBRARIES} |
| 195 | ) |
| 196 | |
| 197 | IF (ENABLE_GLIB_SUPPORT) |
| 198 | LIST(APPEND EWK2UnitTests_LIBRARIES |
| 199 | ${Glib_LIBRARIES} |
| 200 | ${Gthread_LIBRARIES} |
| 201 | ) |
| 202 | ENDIF() |
| 203 | |
| 204 | SET(WEBKIT2_EFL_TEST_DIR "${WEBKIT2_DIR}/UIProcess/API/efl/tests") |
| 205 | SET(TEST_RESOURCES_DIR ${WEBKIT2_EFL_TEST_DIR}/resources) |
| 206 | |
| 207 | ADD_DEFINITIONS(-DTEST_RESOURCES_DIR=\"${TEST_RESOURCES_DIR}\") |
| 208 | |
| 209 | ADD_LIBRARY(ewk2UnitTestUtils |
| 210 | ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestBase.cpp |
| 211 | ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestEnvironment.cpp |
| 212 | ${WEBKIT2_EFL_TEST_DIR}/UnitTestUtils/EWK2UnitTestMain.cpp |
| 213 | ) |
| 214 | |
| 215 | TARGET_LINK_LIBRARIES(ewk2UnitTestUtils ${EWK2UnitTests_LIBRARIES}) |
| 216 | |
| 217 | # The "ewk" on the test name needs to be suffixed with "2", otherwise it |
| 218 | # will clash with tests from the WebKit 1 test suite. |
| 219 | SET(EWK2UnitTests_BINARIES |
| 220 | test_ewk2_view |
| 221 | ) |
| 222 | |
| 223 | FOREACH(testName ${EWK2UnitTests_BINARIES}) |
| 224 | ADD_EXECUTABLE(${testName} ${WEBKIT2_EFL_TEST_DIR}/${testName}.cpp) |
| 225 | ADD_TEST(${testName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${testName}) |
| 226 | SET_TESTS_PROPERTIES(${testName} PROPERTIES TIMEOUT 60) |
| 227 | TARGET_LINK_LIBRARIES(${testName} ${EWK2UnitTests_LIBRARIES} ewk2UnitTestUtils gtest pthread) |
| 228 | ENDFOREACH() |