blob: 5374ae95c6432d70230dd20f8b341db7e258f075 [file] [log] [blame]
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +00001LIST(APPEND WebKit2_LINK_FLAGS
2 ${ECORE_X_LDFLAGS}
3 ${EDJE_LDFLAGS}
4 ${EFLDEPS_LDFLAGS}
5 ${EVAS_LDFLAGS}
commit-queue@webkit.orge8e600d2012-06-05 11:13:14 +00006 ${LIBSOUP24_LDFLAGS}
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +00007)
8
9LIST(APPEND WebKit2_SOURCES
10 Platform/efl/ModuleEfl.cpp
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000011 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.com8d2c4892012-07-05 08:47:49 +000017 Shared/API/c/cairo/WKImageCairo.cpp
18
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000019 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.orge6ce9da2012-07-13 07:26:17 +000030 Shared/soup/PlatformCertificateInfo.cpp
31
ryuan.choi@samsung.com71b54342012-06-21 15:11:48 +000032 UIProcess/API/C/efl/WKView.cpp
33
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +000034 UIProcess/API/C/soup/WKContextSoup.cpp
35 UIProcess/API/C/soup/WKSoupRequestManager.cpp
36
commit-queue@webkit.org773f66d2012-07-11 06:10:43 +000037 UIProcess/API/efl/BatteryProvider.cpp
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000038 UIProcess/API/efl/PageClientImpl.cpp
ryuan.choi@samsung.com5c8bdc112012-06-10 14:21:31 +000039 UIProcess/API/efl/ewk_context.cpp
commit-queue@webkit.org1a4a9e42012-07-02 02:12:41 +000040 UIProcess/API/efl/ewk_intent.cpp
commit-queue@webkit.orgf6288ca2012-07-03 06:27:10 +000041 UIProcess/API/efl/ewk_intent_service.cpp
commit-queue@webkit.orgc4c64362012-07-12 08:35:36 +000042 UIProcess/API/efl/ewk_navigation_policy_decision.cpp
commit-queue@webkit.org96a167d2012-07-05 07:59:25 +000043 UIProcess/API/efl/ewk_url_request.cpp
commit-queue@webkit.org8d230602012-07-12 03:22:03 +000044 UIProcess/API/efl/ewk_url_response.cpp
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000045 UIProcess/API/efl/ewk_view.cpp
commit-queue@webkit.org25599e42012-06-15 12:16:55 +000046 UIProcess/API/efl/ewk_view_loader_client.cpp
commit-queue@webkit.orgc4c64362012-07-12 08:35:36 +000047 UIProcess/API/efl/ewk_view_policy_client.cpp
commit-queue@webkit.org96a167d2012-07-05 07:59:25 +000048 UIProcess/API/efl/ewk_view_resource_load_client.cpp
commit-queue@webkit.org78f60db2012-07-04 07:33:41 +000049 UIProcess/API/efl/ewk_web_error.cpp
commit-queue@webkit.org96a167d2012-07-05 07:59:25 +000050 UIProcess/API/efl/ewk_web_resource.cpp
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000051
52 UIProcess/cairo/BackingStoreCairo.cpp
53
54 UIProcess/efl/TextCheckerEfl.cpp
55 UIProcess/efl/WebContextEfl.cpp
commit-queue@webkit.orgc57a1792012-04-17 18:01:42 +000056 UIProcess/efl/WebFullScreenManagerProxyEfl.cpp
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000057 UIProcess/efl/WebInspectorEfl.cpp
58 UIProcess/efl/WebPageProxyEfl.cpp
59 UIProcess/efl/WebPreferencesEfl.cpp
60
carlosgc@webkit.orgc74f54f2012-07-12 08:12:52 +000061 UIProcess/soup/WebCookieManagerProxySoup.cpp
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +000062 UIProcess/soup/WebSoupRequestManagerClient.cpp
63 UIProcess/soup/WebSoupRequestManagerProxy.cpp
64
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000065 UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
66 UIProcess/Launcher/efl/ThreadLauncherEfl.cpp
67
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +000068 UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000069
kubo@profusion.mobic3a2eeb52012-02-13 13:30:42 +000070 WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
carlosgc@webkit.orgc74f54f2012-07-12 08:12:52 +000071 WebProcess/Cookies/soup/WebKitSoupCookieJarSqlite.cpp
kubo@profusion.mobic3a2eeb52012-02-13 13:30:42 +000072
commit-queue@webkit.org22d97d72012-01-05 08:51:02 +000073 WebProcess/Downloads/efl/DownloadEfl.cpp
commit-queue@webkit.org611984b2012-02-09 06:12:47 +000074 WebProcess/Downloads/efl/FileDownloaderEfl.cpp
commit-queue@webkit.org22d97d72012-01-05 08:51:02 +000075
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000076 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.come9e65c22012-05-30 12:12:23 +000088
89 WebProcess/soup/WebSoupRequestManager.cpp
90 WebProcess/soup/WebKitSoupRequestGeneric.cpp
91 WebProcess/soup/WebKitSoupRequestInputStream.cpp
92)
93
94LIST(APPEND WebKit2_MESSAGES_IN_FILES
95 UIProcess/soup/WebSoupRequestManagerProxy.messages.in
96 WebProcess/soup/WebSoupRequestManager.messages.in
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +000097)
98
99LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +0000100 "${JAVASCRIPTCORE_DIR}/llint"
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000101 "${WEBCORE_DIR}/platform/efl"
102 "${WEBCORE_DIR}/platform/graphics/cairo"
kubo@profusion.mobic3a2eeb52012-02-13 13:30:42 +0000103 "${WEBCORE_DIR}/platform/network/soup"
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +0000104 "${WEBCORE_DIR}/svg/graphics"
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000105 "${WEBKIT2_DIR}/Shared/efl"
carlosgc@webkit.orgc74f54f2012-07-12 08:12:52 +0000106 "${WEBKIT2_DIR}/Shared/soup"
ryuan.choi@samsung.com71b54342012-06-21 15:11:48 +0000107 "${WEBKIT2_DIR}/UIProcess/API/C/efl"
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +0000108 "${WEBKIT2_DIR}/UIProcess/API/C/soup"
109 "${WEBKIT2_DIR}/UIProcess/API/efl"
110 "${WEBKIT2_DIR}/UIProcess/soup"
commit-queue@webkit.org611984b2012-02-09 06:12:47 +0000111 "${WEBKIT2_DIR}/WebProcess/Downloads/efl"
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000112 "${WEBKIT2_DIR}/WebProcess/efl"
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +0000113 "${WEBKIT2_DIR}/WebProcess/soup"
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000114 "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +0000115 "${WTF_DIR}/wtf/gobject"
rakuco@webkit.orgfb7fec12012-05-04 00:39:57 +0000116 ${CAIRO_INCLUDE_DIRS}
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000117 ${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.mobic3a2eeb52012-02-13 13:30:42 +0000124 ${Glib_INCLUDE_DIRS}
125 ${LIBSOUP24_INCLUDE_DIRS}
ryuan.choi@samsung.come9e65c22012-05-30 12:12:23 +0000126 ${WTF_DIR}
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000127)
128
129LIST(APPEND WebKit2_LIBRARIES
rakuco@webkit.orgfb7fec12012-05-04 00:39:57 +0000130 ${CAIRO_LIBRARIES}
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000131 ${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.mobic3a2eeb52012-02-13 13:30:42 +0000140 ${Glib_LIBRARIES}
141 ${LIBSOUP24_LIBRARIES}
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000142)
143
144LIST (APPEND WebProcess_SOURCES
145 efl/MainEfl.cpp
146)
147
148LIST (APPEND WebProcess_LIBRARIES
rakuco@webkit.orgfb7fec12012-05-04 00:39:57 +0000149 ${CAIRO_LIBRARIES}
ryuan.choi@samsung.comf97cd692011-12-22 10:47:50 +0000150 ${ECORE_X_LIBRARIES}
151 ${EDJE_LIBRARIES}
152 ${EFLDEPS_LIBRARIES}
153 ${EVAS_LIBRARIES}
154 ${LIBXML2_LIBRARIES}
155 ${LIBXSLT_LIBRARIES}
156 ${SQLITE_LIBRARIES}
157)
158
159ADD_CUSTOM_TARGET(forwarding-headerEfl
160 COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
161)
162SET(ForwardingHeaders_NAME forwarding-headerEfl)
163
kubo@profusion.mobic3a2eeb52012-02-13 13:30:42 +0000164ADD_CUSTOM_TARGET(forwarding-headerSoup
165 COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
166)
167SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup)
commit-queue@webkit.orgbff9a102012-06-21 15:46:40 +0000168
169CONFIGURE_FILE(efl/ewebkit2.pc.in ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc @ONLY)
170SET (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.org975681a2012-07-13 17:09:03 +0000173 "${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.orgbff9a102012-06-21 15:46:40 +0000178 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_view.h"
commit-queue@webkit.org975681a2012-07-13 17:09:03 +0000179 "${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.orgbff9a102012-06-21 15:46:40 +0000181)
182
183INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit2/efl/ewebkit2.pc DESTINATION lib/pkgconfig)
184INSTALL(FILES ${EWebKit2_HEADERS} DESTINATION include/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
commit-queue@webkit.org58eba592012-07-12 21:46:04 +0000185
186INCLUDE_DIRECTORIES(${THIRDPARTY_DIR}/gtest/include)
187
188SET(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
197IF (ENABLE_GLIB_SUPPORT)
198 LIST(APPEND EWK2UnitTests_LIBRARIES
199 ${Glib_LIBRARIES}
200 ${Gthread_LIBRARIES}
201 )
202ENDIF()
203
204SET(WEBKIT2_EFL_TEST_DIR "${WEBKIT2_DIR}/UIProcess/API/efl/tests")
205SET(TEST_RESOURCES_DIR ${WEBKIT2_EFL_TEST_DIR}/resources)
206
207ADD_DEFINITIONS(-DTEST_RESOURCES_DIR=\"${TEST_RESOURCES_DIR}\")
208
209ADD_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
215TARGET_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.
219SET(EWK2UnitTests_BINARIES
220 test_ewk2_view
221)
222
223FOREACH(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)
228ENDFOREACH()