[WK2] Fix crash in create and update tiles.
[framework/web/webkit-efl.git] / Source / WebCore / PlatformTizen.cmake
1 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${JAVASCRIPTCORE_DIR}/wtf/efl"
3
4     "${WEBCORE_DIR}/platform/tizen/"
5
6     ${VConf_INCLUDE_DIRS}
7 )
8
9 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
10     ${WEBCORE_DIR}/css/mediaControlsTizen.css
11     ${WEBCORE_DIR}/css/mediaControlsTizenFullscreen.css
12 )
13
14 LIST(APPEND WebCore_SOURCES
15     platform/efl/PlatformTouchEventEfl.cpp
16     platform/efl/PlatformTouchPointEfl.cpp
17
18     platform/network/tizen/NetworkStateNotifierTizen.cpp
19
20     plugins/PluginPackage.cpp
21 )
22
23 SET(WebKit_THEME_DEFINITION "")
24 IF (ENABLE_PROGRESS_TAG)
25   LIST(APPEND WebKit_THEME_DEFINITION "-DENABLE_PROGRESS_TAG")
26 ENDIF ()
27
28 FILE(MAKE_DIRECTORY ${THEME_BINARY_DIR})
29 SET(WebKit_THEME ${THEME_BINARY_DIR}/default.edj)
30 ADD_CUSTOM_COMMAND(
31   OUTPUT ${WebKit_THEME}
32   COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WebKit_THEME_DEFINITION} ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME}
33   DEPENDS
34     ${WEBKIT_DIR}/efl/DefaultTheme/default.edc
35     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_v.png
36     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_v.png
37     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png
38     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc
39     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_h.png
40     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_h.png
41     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png
42     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png
43     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png
44     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png
45     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png
46     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png
47     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png
48     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png
49     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png
50     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png
51     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png
52     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc
53     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png
54     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
55     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png
56     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png
57     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc
58     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png
59     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png
60     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png
61     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png
62     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
63     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png
64     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc
65     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png
66     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png
67     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png
68     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png
69     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png
70     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png
71     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png
72     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png
73     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png
74     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc
75     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png
76     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png
77     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png
78     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png
79     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png
80     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png
81     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc
82     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc
83     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png
84     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png
85     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png
86     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png
87     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png
88     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png
89     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png
90     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
91     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png
92     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png
93     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png
94     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png
95     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc
96     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/progressbar.edc
97     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/shelf_inset.png
98     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/bt_base.png
99   VERBATIM
100 )
101
102 LIST(APPEND WebCore_SOURCES
103      ${WebKit_THEME}
104 )
105
106 INSTALL(FILES ${WebKit_THEME}
107         DESTINATION ${DATA_INSTALL_DIR}/themes)
108
109 SET(RESOURCES_FILES
110     ${WEBCORE_DIR}/Resources/deleteButton@2x.png
111     ${WEBCORE_DIR}/Resources/deleteButton.png
112 )
113 INSTALL(FILES ${RESOURCES_FILES} DESTINATION ${DATA_INSTALL_DIR}/images)
114
115 LIST(APPEND WebCore_LIBRARIES ${VConf_LIBRARIES})
116
117 IF (ENABLE_NETSCAPE_PLUGIN_API)
118     LIST(APPEND WebCore_SOURCES
119         plugins/efl/X11Window.cpp
120         plugins/efl/X11EmbedContainer.cpp
121     )
122 ELSE ()
123     # Remove XP_UNIX macro when netscape plugin api is off.
124     # This is because of redefinition of determineQuirks function
125     # in PluginPackage.cpp and PluginPackageNone.cpp with disabled NETSCAPE_PLUGIN_API macro.
126     # XP_UNIX is added to definitions in OptionsCommon.cmake which is included by top level CMakeLists.txt file
127     # Qt port uses its own building system, and enables XP_UNIX only when NETSCAPE_PLUGIN_API is on
128     # Gtk port can't be build without npapi support from script
129     REMOVE_DEFINITIONS(-DXP_UNIX)
130 ENDIF ()
131
132 IF (ENABLE_DEVICE_ORIENTATION)
133     LIST(APPEND WebCore_INCLUDE_DIRECTORIES ${Tizen-Sensor_INCLUDE_DIRS})
134     LIST(APPEND WebCore_SOURCES
135         platform/efl/DeviceMotionClientEfl.cpp
136         platform/efl/DeviceOrientationClientEfl.cpp
137
138         platform/tizen/SensorEventProvider.cpp
139         platform/tizen/SensorItem.cpp
140         platform/tizen/Sensor.cpp
141     )
142     LIST(APPEND WebCore_LIBRARIES ${Tizen-Sensor_LIBRARIES})
143 ENDIF ()
144
145 IF (WTF_USE_TEXTURE_MAPPER)
146     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
147         "${WEBCORE_DIR}/platform/graphics/texmap"
148     )
149     LIST(APPEND WebCore_SOURCES
150         platform/graphics/OpenGLShims.cpp
151         platform/graphics/texmap/TextureMapperGL.cpp
152         platform/graphics/texmap/TextureMapperShaderManager.cpp
153         platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
154         platform/graphics/texmap/LayerTransform.cpp
155         platform/graphics/texmap/TextureMapper.cpp
156         platform/graphics/texmap/TextureMapperAnimation.cpp
157         platform/graphics/texmap/TextureMapperBackingStore.cpp
158         platform/graphics/texmap/TextureMapperImageBuffer.cpp
159         platform/graphics/texmap/TextureMapperLayer.cpp
160     )
161 ENDIF ()
162
163 IF (WTF_USE_FREETYPE)
164     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
165         ${Pango_INCLUDE_DIRS}
166     )
167     LIST(REMOVE_ITEM WebCore_SOURCES
168         platform/graphics/efl/FontEfl.cpp
169     )
170     LIST(APPEND WebCore_SOURCES
171         platform/graphics/pango/FontPango.cpp
172         platform/graphics/pango/PangoUtilities.cpp
173     )
174     LIST(APPEND WebCore_LIBRARIES
175         ${Pango_LIBRARY}
176         ${Pango_Cairo_LIBRARY}
177     )
178 ENDIF ()
179
180 IF (WTF_USE_LEVELDB)
181     LIST(APPEND WebCore_LIBRARIES
182         ${LevelDB_LIBRARIES}
183         ${LevelDB-MemEnv_LIBRARIES}
184     )
185     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
186         ${LevelDB_INCLUDE_DIRS}
187         ${LevelDB-MemEnv_INCLUDE_DIRS}
188     )
189 ENDIF ()
190
191 IF (WTF_USE_SKIA)
192     LIST(REMOVE_ITEM WebCore_SOURCES platform/graphics/efl/FontEfl.cpp)
193 ENDIF ()
194
195 IF (ENABLE_TIZEN_BATTERY_STATUS)
196     LIST(APPEND WebCore_LIBRARIES
197         ${Pmapi_LIBRARIES}
198     )
199     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
200         ${Pmapi_INCLUDE_DIRS}
201     )
202 ENDIF()
203
204 IF (ENABLE_TIZEN_MM_PLAYER)
205   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
206     ${ELEMENTARY_INCLUDE_DIRS}
207     ${MM-Player_INCLUDE_DIRS}
208   )
209   LIST(APPEND WebCore_LIBRARIES
210     ${ELEMENTARY_LIBRARIES}
211     ${MM-Player_LIBRARIES}
212   )
213 ENDIF()
214
215 IF (ENABLE_TIZEN_MEDIA_STREAM)
216     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
217         ${WEBCORE_DIR}/platform/mediastream/efl
218     )
219     LIST(APPEND WebCore_SOURCES
220         Modules/mediastream/MediaStreamRecorder.cpp
221
222         platform/mediastream/MediaRecorder.cpp
223         platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp
224         platform/mediastream/efl/LocalMediaServer.cpp
225         platform/mediastream/efl/MediaStreamCenterEfl.cpp
226         platform/mediastream/efl/MediaStreamManager.cpp
227     )
228     IF (ENABLE_WEBKIT2)
229         LIST(APPEND WebCore_SOURCES
230             platform/mediastream/efl/MediaRecorderPrivateImpl.cpp
231         )
232     ELSE ()
233         LIST(APPEND WebCore_SOURCES
234             platform/mediastream/efl/MediaRecorderPrivateDeprecated.cpp
235             platform/mediastream/efl/MediaStreamPlayer.cpp
236         )
237     ENDIF ()
238 ENDIf ()
239
240 IF (ENABLE_VIDEO)
241   LIST(APPEND WebCore_SOURCES
242     platform/graphics/gstreamer/WebKitCameraSourceGStreamer.cpp
243   )
244 ENDIF ()
245
246 IF (ENABLE_WEBKIT2)
247     IF (ENABLE_TIZEN_WEBKIT2_TILED_AC_SHARED_PIXMAP)
248         LIST(APPEND WebCore_SOURCES
249             platform/graphics/efl/SharedPixmapEfl.cpp
250         )
251     ENDIF ()
252     LIST(APPEND WebCore_LIBRARIES
253         ${ZLIB_LIBRARIES}
254         ${Pango_Ft2_LIBRARY}
255     )
256 ELSE ()
257     LIST(APPEND EWebCore_HEADERS
258       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/npapi.h"
259       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/npfunctions.h"
260       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/npruntime.h"
261       "${CMAKE_CURRENT_SOURCE_DIR}/plugins/nptypes.h"
262     )
263     INSTALL(FILES ${EWebCore_HEADERS}
264         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
265 ENDIF ()
266
267 IF (ENABLE_TIZEN_PROFILE)
268     LIST(APPEND WebCore_SOURCES platform/tizen/TizenProfiler.cpp)
269 ENDIF ()