b8764500980cc586c9cc0a8b344d705ef605b551
[framework/web/webkit-efl.git] / Source / WebKit2 / PlatformTizen.cmake
1 LIST(APPEND WebKit2StaticForDebug_INCLUDE_DIRECTORIES
2     "${WEBCORE_DIR}/Modules/filesystem"
3     "${WEBCORE_DIR}/Modules/mediastream"
4     "${WEBCORE_DIR}/platform/efl/tizen"
5     "${WEBCORE_DIR}/platform/graphics/efl/tizen"
6     "${WEBCORE_DIR}/platform/graphics/gstreamer"
7     "${WEBCORE_DIR}/platform/graphics/surfaces"
8     "${WEBCORE_DIR}/platform/graphics/texmap/tizen"
9     "${WEBCORE_DIR}/platform/mediastream"
10     "${WEBKIT2_DIR}/Platform/tizen/AboutData"
11     "${WEBKIT2_DIR}/Shared/efl/tizen"
12     "${WEBKIT2_DIR}/Shared/API/c/cairo"
13     "${WEBKIT2_DIR}/Shared/API/c/efl"
14     "${WEBKIT2_DIR}/Shared/API/c/tizen"
15     "${WEBKIT2_DIR}/Shared/tizen"
16     "${WEBKIT2_DIR}/UIProcess/API/C/efl"
17     "${WEBKIT2_DIR}/UIProcess/API/C/efl/tizen"
18     "${WEBKIT2_DIR}/UIProcess/API/efl/editor"
19     "${WEBKIT2_DIR}/UIProcess/API/efl/tizen"
20     "${WEBKIT2_DIR}/UIProcess/efl"
21     "${WEBKIT2_DIR}/UIProcess/MediaStream"
22     "${WEBKIT2_DIR}/UIProcess/texmap"
23     "${WEBKIT2_DIR}/UIProcess/tizen"
24     "${WEBKIT2_DIR}/WebProcess/LocalFileSystem"
25     "${WEBKIT2_DIR}/WebProcess/MediaStream"
26     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl/tizen"
27     "${WEBKIT2_DIR}/WebProcess/WebPage/efl/tizen"
28     "${WTF_DIR}"
29     ${ELEMENTARY_INCLUDE_DIRS}
30     ${GLES_INCLUDE_DIRS} #FIXME
31     ${TTS_INCLUDE_DIRS}
32     ${Tizen-Location-Manager_INCLUDE_DIRS}
33     ${UIGadget_INCLUDE_DIRS}
34     ${EFL_ASSIST_INCLUDE_DIRS}
35 )
36
37 LIST(APPEND WebKit2_LIBRARIES
38     ${ELEMENTARY_LIBRARIES}
39     ${GLES20_LIBRARIES} #FIXME
40     ${TTS_LIBRARIES}
41     ${Tizen-Location-Manager_LIBRARIES}
42     ${UIGadget_LIBRARY}
43 )
44
45 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=0)
46 ADD_DEFINITIONS(-DENABLE_CONTEXT_MENUS=1)
47
48 LIST(REMOVE_ITEM WebKit2StaticForDebug_SOURCES
49     Shared/efl/NativeWebKeyboardEventEfl.cpp
50     WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp
51 )
52
53 LIST(APPEND WebKit2StaticForDebug_SOURCES
54     Platform/tizen/AboutData/AboutDataTizen.cpp
55
56     PluginProcess/efl/PluginControllerProxyEfl.cpp
57
58     Shared/API/c/tizen/WKURLRequestTizen.cpp
59     Shared/API/c/tizen/WKURLResponseTizen.cpp
60     Shared/efl/tizen/WebSubresourceTizen.cpp
61     Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp
62     Shared/tizen/ArgumentCodersTizen.cpp
63     Shared/tizen/NativeWebKeyboardEventTizen.cpp
64     Shared/tizen/WebURLRequestTizen.cpp
65     Shared/tizen/WebURLResponseTizen.cpp
66
67     UIProcess/API/C/efl/tizen/WKLocalFileSystemManager.cpp
68     UIProcess/API/C/efl/tizen/WKContextTizen.cpp
69     UIProcess/API/C/efl/tizen/WKIconDatabaseTizen.cpp
70     UIProcess/API/C/efl/tizen/WKPageTizen.cpp
71     UIProcess/API/C/efl/tizen/WKPreferencesTizen.cpp
72     UIProcess/API/C/efl/tizen/WKUserMediaPermissionRequest.cpp
73
74     UIProcess/API/efl/ewk_auth_challenge.cpp
75     UIProcess/API/efl/ewk_certificate.cpp
76     UIProcess/API/efl/ewk_context_injected_bundle_client.cpp
77     UIProcess/API/efl/ewk_context_menu.cpp
78     UIProcess/API/efl/ewk_custom_handlers.cpp
79     UIProcess/API/efl/ewk_form_data.cpp
80     UIProcess/API/efl/ewk_frame.cpp
81     UIProcess/API/efl/ewk_geolocation.cpp
82     UIProcess/API/efl/ewk_history.cpp
83     UIProcess/API/efl/ewk_hit_test.cpp
84     UIProcess/API/efl/ewk_notification.cpp
85     UIProcess/API/efl/ewk_policy_decision.cpp
86     UIProcess/API/efl/ewk_search_provider.cpp
87     UIProcess/API/efl/ewk_security_origin.cpp
88     UIProcess/API/efl/ewk_text_style.cpp
89     UIProcess/API/efl/ewk_user_media.cpp
90     UIProcess/API/efl/ewk_util.cpp
91     UIProcess/API/efl/ewk_view_context_menu_client.cpp
92     UIProcess/API/efl/ewk_view_geolocation_provider.cpp
93     UIProcess/API/efl/ewk_view_icondatabase_client.cpp
94     UIProcess/API/efl/ewk_view_notification_provider.cpp
95     UIProcess/API/efl/ewk_view_tizen_client.cpp
96     UIProcess/API/efl/ewk_web_application_icon_data.cpp
97
98     UIProcess/API/efl/tizen/ClipboardHelper.cpp
99     UIProcess/API/efl/tizen/Drag.cpp
100     UIProcess/API/efl/tizen/DragHandle.cpp
101     UIProcess/API/efl/tizen/EasingUtilities.cpp
102     UIProcess/API/efl/tizen/Flick.cpp
103     UIProcess/API/efl/tizen/FocusRing.cpp
104     UIProcess/API/efl/tizen/FormDataCandidate.cpp
105     UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp
106     UIProcess/API/efl/tizen/GestureClient.cpp
107     UIProcess/API/efl/tizen/GestureRecognizer.cpp
108     UIProcess/API/efl/tizen/InputPicker.cpp
109     UIProcess/API/efl/tizen/JavaScriptPopup.cpp
110     UIProcess/API/efl/tizen/LinkMagnifierProxy.cpp
111     UIProcess/API/efl/tizen/OfflinePageSave.cpp
112     UIProcess/API/efl/tizen/OpenPanel.cpp
113     UIProcess/API/efl/tizen/Pan.cpp
114     UIProcess/API/efl/tizen/FormDatabase.cpp
115     UIProcess/API/efl/tizen/ScreenReaderProxy.cpp
116     UIProcess/API/efl/tizen/SmartZoom.cpp
117     UIProcess/API/efl/tizen/TextSelection.cpp
118     UIProcess/API/efl/tizen/TextSelectionHandle.cpp
119     UIProcess/API/efl/tizen/TextSelectionMagnifier.cpp
120     UIProcess/API/efl/tizen/Zoom.cpp
121     UIProcess/API/efl/tizen/ewk_popup_picker.cpp
122
123     UIProcess/efl/PlatformSurfaceTexturePoolEfl.cpp
124
125     UIProcess/MediaStream/UserMediaPermissionRequest.cpp
126     UIProcess/MediaStream/UserMediaPermissionRequestManagerProxy.cpp
127
128     UIProcess/texmap/tizen/LayerBackingStoreTizen.cpp
129
130     UIProcess/tizen/MainFrameScrollbarTizen.cpp
131     UIProcess/tizen/WebContextMenuProxyTizen.cpp
132     UIProcess/tizen/WebLayerTreeRendererTizen.cpp
133     UIProcess/tizen/WebLocalFileSystemManagerProxy.cpp
134     UIProcess/tizen/WebTizenClient.cpp
135
136     WebProcess/FullScreen/efl/WebFullScreenManagerEfl.cpp
137
138     WebProcess/LocalFileSystem/WebLocalFileSystemManager.cpp
139
140     WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp
141
142     WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
143     WebProcess/Plugins/Netscape/efl/PluginProxyEfl.cpp
144
145     WebProcess/WebCoreSupport/efl/tizen/WebDragClientTizen.cpp
146     WebProcess/WebCoreSupport/efl/tizen/WebErrorsTizen.cpp
147     WebProcess/WebCoreSupport/efl/tizen/WebInspectorServerTizen.cpp
148     WebProcess/WebCoreSupport/efl/tizen/WebRegisterContentHandlerClient.cpp
149     WebProcess/WebCoreSupport/efl/tizen/WebRegisterProtocolHandlerClient.cpp
150     WebProcess/WebCoreSupport/efl/tizen/WebUserMediaClient.cpp
151
152     WebProcess/WebPage/efl/tizen/LinkMagnifier.cpp
153     WebProcess/WebPage/efl/tizen/PlatformSurfacePoolTizen.cpp
154     WebProcess/WebPage/efl/tizen/ScreenReader.cpp
155     WebProcess/WebPage/efl/tizen/TiledBackingStoreRemoteTileTizen.cpp
156     WebProcess/WebPage/efl/tizen/WebPageSerializerTizen.cpp
157 )
158
159 IF (WTF_USE_TEXTURE_MAPPER)
160     LIST(APPEND WebKit2StaticForDebug_SOURCES
161         UIProcess/texmap/LayerBackingStore.cpp
162     )
163 ENDIF ()
164
165 LIST(APPEND WebKit2StaticForDebug_MESSAGES_IN_FILES
166     UIProcess/WebLocalFileSystemManagerProxy.messages.in
167     WebProcess/LocalFileSystem/WebLocalFileSystemManager.messages.in
168 )
169
170 SET(THEME_DIR ${CMAKE_BINARY_DIR}/theme)
171 SET(CONTROL_THEME ${THEME_DIR}/control.edj)
172 SET(JS_POPUP_THEME ${THEME_DIR}/JavaScriptPopup.edj)
173
174 IF (ENABLE_TIZEN_WEBKIT2_TEXT_SELECTION)
175     SET(MAGNIFIER_THEME ${THEME_DIR}/Magnifier.edj)
176 ENDIF ()
177
178 IF (ENABLE_TIZEN_DRAG_SUPPORT)
179     SET(DRAG_THEME ${THEME_DIR}/Drag.edj)
180 ENDIF ()
181
182 IF (ENABLE_TIZEN_WEBKIT2_FORM_DATABASE)
183     SET(FORMDATA_THEME ${THEME_DIR}/FormDataCandidate.edj)
184 ENDIF ()
185
186 FILE(MAKE_DIRECTORY ${THEME_DIR})
187
188 ADD_CUSTOM_COMMAND(
189     OUTPUT ${CONTROL_THEME}
190     COMMAND ${EDJE_CC_EXECUTABLE} -id ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/images ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/control.edc ${CONTROL_THEME}
191     DEPENDS
192         ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/control.edc
193 )
194
195 ADD_CUSTOM_COMMAND(
196     OUTPUT ${JS_POPUP_THEME}
197     COMMAND  ${EDJE_CC_EXECUTABLE} -id ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/images ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/JavaScriptPopup.edc ${JS_POPUP_THEME}
198     DEPENDS
199         ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/JavaScriptPopup.edc
200 )
201
202 IF (ENABLE_TIZEN_WEBKIT2_TEXT_SELECTION)
203     ADD_CUSTOM_COMMAND(
204         OUTPUT ${MAGNIFIER_THEME}
205         COMMAND  ${EDJE_CC_EXECUTABLE} -id ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/images ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/Magnifier.edc ${MAGNIFIER_THEME}
206         DEPENDS
207             ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/Magnifier.edc
208     )
209     LIST(APPEND WebKit2StaticForDebug_SOURCES ${MAGNIFIER_THEME})
210 ENDIF ()
211
212 IF (ENABLE_TIZEN_DRAG_SUPPORT)
213     ADD_CUSTOM_COMMAND(
214         OUTPUT ${DRAG_THEME}
215         COMMAND  ${EDJE_CC_EXECUTABLE} -id ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/images ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/Drag.edc ${DRAG_THEME}
216         DEPENDS
217             ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/Drag.edc
218     )
219     LIST(APPEND WebKit2StaticForDebug_SOURCES ${DRAG_THEME})
220 ENDIF ()
221
222 IF (ENABLE_TIZEN_WEBKIT2_FORM_DATABASE)
223     ADD_CUSTOM_COMMAND(
224         OUTPUT ${FORMDATA_THEME}
225         COMMAND  ${EDJE_CC_EXECUTABLE} -id ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/images ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/FormDataCandidate.edc ${FORMDATA_THEME}
226         DEPENDS
227             ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/FormDataCandidate.edc
228     )
229     LIST(APPEND WebKit2StaticForDebug_SOURCES ${FORMDATA_THEME})
230 ENDIF ()
231
232 LIST(APPEND WebKit2StaticForDebug_SOURCES ${CONTROL_THEME} ${JS_POPUP_THEME})
233
234 ADD_DEFINITIONS("-DEDJE_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes\"")
235
236 FILE(GLOB Shared_API_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/Shared/API/c/*.h")
237 LIST(APPEND Shared_API_HEADERS
238     "${CMAKE_CURRENT_SOURCE_DIR}/Shared/API/c/efl/WKBaseEfl.h"
239     "${CMAKE_CURRENT_SOURCE_DIR}/Shared/API/c/cairo/WKImageCairo.h"
240     "${CMAKE_CURRENT_SOURCE_DIR}/Shared/API/c/tizen/WKURLRequestTizen.h"
241     "${CMAKE_CURRENT_SOURCE_DIR}/Shared/API/c/tizen/WKURLResponseTizen.h"
242 )
243
244 LIST(APPEND NPAPI_HEADERS
245     "${WEBCORE_DIR}/plugins/npapi.h"
246     "${WEBCORE_DIR}/plugins/npfunctions.h"
247     "${WEBCORE_DIR}/plugins/npruntime.h"
248     "${WEBCORE_DIR}/plugins/nptypes.h"
249 )
250
251 INCLUDE_IF_EXISTS(${WEBKIT2_DIR}/PlatformExperimental.cmake)
252
253 INSTALL(FILES ${NPAPI_HEADERS}
254     DESTINATION include/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/NPAPI)
255
256 INSTALL(FILES ${Shared_API_HEADERS}
257     DESTINATION include/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/WebKit2)
258
259 INSTALL(FILES ${CONTROL_THEME}
260     DESTINATION share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)
261 INSTALL(FILES ${JS_POPUP_THEME}
262     DESTINATION share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)
263
264 IF (ENABLE_TIZEN_WEBKIT2_TEXT_SELECTION)
265     INSTALL(FILES ${MAGNIFIER_THEME}
266         DESTINATION share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)
267 ENDIF ()
268
269 IF (ENABLE_TIZEN_DRAG_SUPPORT)
270     INSTALL(FILES ${DRAG_THEME}
271         DESTINATION share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)
272 ENDIF ()
273
274 IF (ENABLE_TIZEN_WEBKIT2_FORM_DATABASE)
275     INSTALL(FILES ${FORMDATA_THEME}
276         DESTINATION share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)
277 ENDIF ()
278
279 FILE(GLOB InjectedBundle_API_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/WebProcess/InjectedBundle/API/c/*.h")
280 # FIXME: WKBundleFrame.h includes WKFrame.h
281 LIST(APPEND InjectedBundle_API_HEADERS
282     "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/C/WKFrame.h"
283 )
284 INSTALL(FILES ${InjectedBundle_API_HEADERS}
285     DESTINATION include/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/WebKit2)
286
287 ADD_DEFINITIONS("-DWEBKIT_TEXT_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/locale/po\"")
288 ADD_DEFINITIONS("-DWEBKIT_HTML_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/html\"")
289 INCLUDE_IF_EXISTS(${WEBKIT2_DIR}/UIProcess/efl/po_tizen/CMakeLists.txt)
290 SET(WEBKIT2_EFL_ERROR_PAGE_DIR share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/html)
291 INSTALL(FILES ${WEBKIT2_DIR}/UIProcess/efl/htmlfiles/errorPage.html DESTINATION ${WEBKIT2_EFL_ERROR_PAGE_DIR})
292
293 IF (ENABLE_TIZEN_SCREEN_READER)
294     SET(SCREEN_READER_FOCUS_RING_IMAGE_PATH ${CMAKE_INSTALL_PREFIX}/share/${WebKit2_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/images)
295     ADD_DEFINITIONS(-DSCREEN_READER_FOCUS_RING_IMAGE_PATH="${SCREEN_READER_FOCUS_RING_IMAGE_PATH}/screenReaderFocusRing.png")
296     INSTALL(FILES ${WEBKIT2_DIR}/UIProcess/API/efl/tizen/images/screenReaderFocusRing.png DESTINATION ${SCREEN_READER_FOCUS_RING_IMAGE_PATH})
297 ENDIF ()