Replace static_casts with to* functions.
[WebKit-https.git] / Source / WebCore / PlatformEfl.cmake
1 list(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${WEBCORE_DIR}/editing/atk"
3     "${WEBCORE_DIR}/page/efl"
4     "${WEBCORE_DIR}/platform/cairo"
5     "${WEBCORE_DIR}/platform/efl"
6     "${WEBCORE_DIR}/platform/graphics/cairo"
7     "${WEBCORE_DIR}/platform/graphics/efl"
8     "${WEBCORE_DIR}/platform/graphics/freetype"
9     "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
10     "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
11     "${WEBCORE_DIR}/platform/linux"
12     "${WEBCORE_DIR}/platform/mediastream/gstreamer"
13     "${WEBCORE_DIR}/platform/network/soup"
14     "${WEBCORE_DIR}/platform/text/efl"
15     "${WEBCORE_DIR}/plugins/efl"
16 )
17
18 list(APPEND WebCore_SOURCES
19     accessibility/atk/AccessibilityObjectAtk.cpp
20     accessibility/atk/AXObjectCacheAtk.cpp
21     accessibility/atk/WebKitAccessibleHyperlink.cpp
22     accessibility/atk/WebKitAccessibleInterfaceAction.cpp
23     accessibility/atk/WebKitAccessibleInterfaceComponent.cpp
24     accessibility/atk/WebKitAccessibleInterfaceDocument.cpp
25     accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp
26     accessibility/atk/WebKitAccessibleInterfaceHyperlinkImpl.cpp
27     accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp
28     accessibility/atk/WebKitAccessibleInterfaceImage.cpp
29     accessibility/atk/WebKitAccessibleInterfaceSelection.cpp
30     accessibility/atk/WebKitAccessibleInterfaceTable.cpp
31     accessibility/atk/WebKitAccessibleInterfaceText.cpp
32     accessibility/atk/WebKitAccessibleInterfaceValue.cpp
33     accessibility/atk/WebKitAccessibleUtil.cpp
34     accessibility/atk/WebKitAccessibleWrapperAtk.cpp
35
36     editing/SmartReplaceICU.cpp
37
38     editing/atk/FrameSelectionAtk.cpp
39
40     page/efl/DragControllerEfl.cpp
41     page/efl/EventHandlerEfl.cpp
42
43     platform/cairo/WidgetBackingStoreCairo.cpp
44
45     platform/Cursor.cpp
46
47     platform/audio/efl/AudioBusEfl.cpp
48     platform/audio/gstreamer/AudioDestinationGStreamer.cpp
49     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
50     platform/audio/gstreamer/FFTFrameGStreamer.cpp
51     platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
52
53     platform/efl/AsyncFileSystemEfl.cpp
54     platform/efl/BatteryProviderEfl.cpp
55     platform/efl/ClipboardEfl.cpp
56     platform/efl/ContextMenuEfl.cpp
57     platform/efl/ContextMenuItemEfl.cpp
58     platform/efl/CursorEfl.cpp
59     platform/efl/DragDataEfl.cpp
60     platform/efl/DragImageEfl.cpp
61     platform/efl/EflInspectorUtilities.cpp
62     platform/efl/EflKeyboardUtilities.cpp
63     platform/efl/EflScreenUtilities.cpp
64     platform/efl/ErrorsEfl.cpp
65     platform/efl/EventLoopEfl.cpp
66     platform/efl/FileSystemEfl.cpp
67     platform/efl/GamepadsEfl.cpp
68     platform/efl/KURLEfl.cpp
69     platform/efl/LanguageEfl.cpp
70     platform/efl/LocalizedStringsEfl.cpp
71     platform/efl/LoggingEfl.cpp
72     platform/efl/MIMETypeRegistryEfl.cpp
73     platform/efl/NetworkInfoProviderEfl.cpp
74     platform/efl/PasteboardEfl.cpp
75     platform/efl/PlatformKeyboardEventEfl.cpp
76     platform/efl/PlatformMouseEventEfl.cpp
77     platform/efl/PlatformScreenEfl.cpp
78     platform/efl/PlatformWheelEventEfl.cpp
79     platform/efl/RenderThemeEfl.cpp
80     platform/efl/RunLoopEfl.cpp
81     platform/efl/ScrollbarEfl.cpp
82     platform/efl/ScrollbarThemeEfl.cpp
83     platform/efl/ScrollViewEfl.cpp
84     platform/efl/SharedTimerEfl.cpp
85     platform/efl/SoundEfl.cpp
86     platform/efl/SystemTimeEfl.cpp
87     platform/efl/TemporaryLinkStubs.cpp
88     platform/efl/WidgetEfl.cpp
89
90     platform/graphics/cairo/BitmapImageCairo.cpp
91     platform/graphics/cairo/CairoUtilities.cpp
92     platform/graphics/cairo/FontCairo.cpp
93     platform/graphics/cairo/FontCairoHarfbuzzNG.cpp
94     platform/graphics/cairo/GradientCairo.cpp
95     platform/graphics/cairo/GraphicsContextCairo.cpp
96     platform/graphics/cairo/ImageBufferCairo.cpp
97     platform/graphics/cairo/ImageCairo.cpp
98     platform/graphics/cairo/IntRectCairo.cpp
99     platform/graphics/cairo/NativeImageCairo.cpp
100     platform/graphics/cairo/OwnPtrCairo.cpp
101     platform/graphics/cairo/PathCairo.cpp
102     platform/graphics/cairo/PatternCairo.cpp
103     platform/graphics/cairo/PlatformContextCairo.cpp
104     platform/graphics/cairo/PlatformPathCairo.cpp
105     platform/graphics/cairo/RefPtrCairo.cpp
106     platform/graphics/cairo/TileCairo.cpp
107     platform/graphics/cairo/TiledBackingStoreBackendCairo.cpp
108     platform/graphics/cairo/TransformationMatrixCairo.cpp
109
110     platform/graphics/efl/CairoUtilitiesEfl.cpp
111     platform/graphics/efl/IconEfl.cpp
112     platform/graphics/efl/ImageEfl.cpp
113     platform/graphics/efl/IntPointEfl.cpp
114     platform/graphics/efl/IntRectEfl.cpp
115
116     platform/graphics/freetype/FontCacheFreeType.cpp
117     platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
118     platform/graphics/freetype/FontPlatformDataFreeType.cpp
119     platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
120     platform/graphics/freetype/SimpleFontDataFreeType.cpp
121
122     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
123     platform/graphics/gstreamer/GStreamerGWorld.cpp
124     platform/graphics/gstreamer/GStreamerUtilities.cpp
125     platform/graphics/gstreamer/GStreamerVersioning.cpp
126     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
127     platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
128     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
129     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
130     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
131     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
132
133     platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp
134     platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
135     platform/graphics/harfbuzz/HarfBuzzFace.cpp
136     platform/graphics/harfbuzz/HarfBuzzShaper.cpp
137
138     platform/graphics/WOFFFileFormat.cpp
139
140     platform/image-decoders/cairo/ImageDecoderCairo.cpp
141
142     platform/linux/GamepadDeviceLinux.cpp
143
144     platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp
145
146     platform/network/efl/NetworkStateNotifierEfl.cpp
147
148     platform/network/soup/AuthenticationChallengeSoup.cpp
149     platform/network/soup/CookieJarSoup.cpp
150     platform/network/soup/CookieStorageSoup.cpp
151     platform/network/soup/CredentialStorageSoup.cpp
152     platform/network/soup/DNSSoup.cpp
153     platform/network/soup/GOwnPtrSoup.cpp
154     platform/network/soup/NetworkStorageSessionSoup.cpp
155     platform/network/soup/ProxyResolverSoup.cpp
156     platform/network/soup/ProxyServerSoup.cpp
157     platform/network/soup/ResourceErrorSoup.cpp
158     platform/network/soup/ResourceHandleSoup.cpp
159     platform/network/soup/ResourceRequestSoup.cpp
160     platform/network/soup/ResourceResponseSoup.cpp
161     platform/network/soup/SocketStreamHandleSoup.cpp
162     platform/network/soup/SoupURIUtils.cpp
163
164     platform/PlatformStrategies.cpp
165
166     platform/posix/FileSystemPOSIX.cpp
167     platform/posix/SharedBufferPOSIX.cpp
168
169     platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
170     platform/text/enchant/TextCheckerEnchant.cpp
171     platform/text/LocaleICU.cpp
172     platform/text/TextBreakIteratorICU.cpp
173     platform/text/TextCodecICU.cpp
174     platform/text/TextEncodingDetectorICU.cpp
175 )
176
177 if (ENABLE_BATTERY_STATUS)
178     list(APPEND WebCore_INCLUDE_DIRECTORIES ${DBUS_INCLUDE_DIRS})
179     list(APPEND WebCore_LIBRARIES ${DBUS_LIBRARIES})
180 endif ()
181
182 if (ENABLE_NETSCAPE_PLUGIN_API)
183     list(APPEND WebCore_SOURCES
184         plugins/PluginDatabase.cpp
185         plugins/PluginDebug.cpp
186         plugins/PluginPackage.cpp
187         plugins/PluginStream.cpp
188         plugins/PluginView.cpp
189
190         plugins/efl/PluginPackageEfl.cpp
191         plugins/efl/PluginViewEfl.cpp
192     )
193 else ()
194     list(APPEND WebCore_SOURCES
195         plugins/PluginPackageNone.cpp
196         plugins/PluginViewNone.cpp
197     )
198 endif ()
199
200 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
201     ${WEBCORE_DIR}/css/mediaControlsEfl.css
202     ${WEBCORE_DIR}/css/mediaControlsEflFullscreen.css
203 )
204
205 if (WTF_USE_TEXTURE_MAPPER)
206     list(APPEND WebCore_SOURCES
207         platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
208     )
209 endif ()
210
211 list(APPEND WebCore_LIBRARIES
212     ${CAIRO_LIBRARIES}
213     ${ECORE_LIBRARIES}
214     ${ECORE_EVAS_LIBRARIES}
215     ${ECORE_FILE_LIBRARIES}
216     ${ECORE_X_LIBRARIES}
217     ${EO_LIBRARIES}
218     ${E_DBUS_LIBRARIES}
219     ${E_DBUS_EUKIT_LIBRARIES}
220     ${EDJE_LIBRARIES}
221     ${EEZE_LIBRARIES}
222     ${EINA_LIBRARIES}
223     ${EVAS_LIBRARIES}
224     ${FONTCONFIG_LIBRARIES}
225     ${FREETYPE_LIBRARIES}
226     ${ICU_LIBRARIES}
227     ${JPEG_LIBRARIES}
228     ${LIBXML2_LIBRARIES}
229     ${LIBXSLT_LIBRARIES}
230     ${PNG_LIBRARIES}
231     ${SQLITE_LIBRARIES}
232     ${GLIB_LIBRARIES}
233     ${GLIB_GIO_LIBRARIES}
234     ${GLIB_GOBJECT_LIBRARIES}
235     ${LIBSOUP_LIBRARIES}
236     ${ZLIB_LIBRARIES}
237     ${HARFBUZZ_LIBRARIES}
238 )
239
240 list(APPEND WebCore_INCLUDE_DIRECTORIES
241     ${CAIRO_INCLUDE_DIRS}
242     ${ECORE_INCLUDE_DIRS}
243     ${ECORE_EVAS_INCLUDE_DIRS}
244     ${ECORE_FILE_INCLUDE_DIRS}
245     ${ECORE_X_INCLUDE_DIRS}
246     ${EO_INCLUDE_DIRS}
247     ${E_DBUS_INCLUDE_DIRS}
248     ${E_DBUS_EUKIT_INCLUDE_DIRS}
249     ${EDJE_INCLUDE_DIRS}
250     ${EEZE_INCLUDE_DIRS}
251     ${EINA_INCLUDE_DIRS}
252     ${EVAS_INCLUDE_DIRS}
253     ${FREETYPE_INCLUDE_DIRS}
254     ${ICU_INCLUDE_DIRS}
255     ${LIBXML2_INCLUDE_DIR}
256     ${LIBXSLT_INCLUDE_DIR}
257     ${SQLITE_INCLUDE_DIR}
258     ${GLIB_INCLUDE_DIRS}
259     ${LIBSOUP_INCLUDE_DIRS}
260     ${ZLIB_INCLUDE_DIRS}
261     ${HARFBUZZ_INCLUDE_DIRS}
262 )
263
264 if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
265     list(APPEND WebCore_INCLUDE_DIRECTORIES
266         "${WEBCORE_DIR}/platform/graphics/gstreamer"
267
268         ${GSTREAMER_INCLUDE_DIRS}
269         ${GSTREAMER_BASE_INCLUDE_DIRS}
270         ${GSTREAMER_APP_INCLUDE_DIRS}
271         ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
272     )
273
274     list(APPEND WebCore_LIBRARIES
275         ${GSTREAMER_LIBRARIES}
276         ${GSTREAMER_BASE_LIBRARIES}
277         ${GSTREAMER_APP_LIBRARIES}
278         ${GSTREAMER_PBUTILS_LIBRARIES}
279     )
280     # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
281     set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
282 endif ()
283
284 if (ENABLE_VIDEO)
285     list(APPEND WebCore_INCLUDE_DIRECTORIES
286         ${GSTREAMER_VIDEO_INCLUDE_DIRS}
287     )
288     list(APPEND WebCore_LIBRARIES
289         ${GSTREAMER_VIDEO_LIBRARIES}
290     )
291 endif ()
292
293 if (WTF_USE_3D_GRAPHICS)
294     set(WTF_USE_OPENGL 1)
295     add_definitions(-DWTF_USE_OPENGL=1)
296
297     list(APPEND WebCore_INCLUDE_DIRECTORIES
298         "${WEBCORE_DIR}/platform/graphics/opengl"
299         "${WEBCORE_DIR}/platform/graphics/surfaces"
300         "${WEBCORE_DIR}/platform/graphics/surfaces/glx"
301         "${WEBCORE_DIR}/platform/graphics/texmap"
302     )
303
304     if (WTF_USE_EGL)
305         list(APPEND WebCore_INCLUDE_DIRECTORIES
306             ${EGL_INCLUDE_DIR}
307             "${WEBCORE_DIR}/platform/graphics/surfaces/egl"
308     )
309     endif ()
310
311     list(APPEND WebCore_SOURCES
312         platform/graphics/cairo/DrawingBufferCairo.cpp
313         platform/graphics/efl/GraphicsContext3DEfl.cpp
314         platform/graphics/efl/GraphicsContext3DPrivate.cpp
315         platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
316         platform/graphics/opengl/GLPlatformContext.cpp
317         platform/graphics/opengl/GLPlatformSurface.cpp
318         platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
319         platform/graphics/surfaces/GLTransportSurface.cpp
320         platform/graphics/surfaces/GraphicsSurface.cpp
321         platform/graphics/surfaces/glx/X11Helper.cpp
322         platform/graphics/texmap/TextureMapperGL.cpp
323         platform/graphics/texmap/TextureMapperShaderProgram.cpp
324     )
325
326     if (WTF_USE_EGL)
327         list(APPEND WebCore_SOURCES
328             platform/graphics/surfaces/egl/EGLConfigSelector.cpp
329             platform/graphics/surfaces/egl/EGLContext.cpp
330             platform/graphics/surfaces/egl/EGLSurface.cpp
331         )
332     else ()
333         list(APPEND WebCore_SOURCES
334             platform/graphics/surfaces/glx/GLXContext.cpp
335             platform/graphics/surfaces/glx/GLXSurface.cpp
336             platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp
337         )
338     endif ()
339
340     if (WTF_USE_OPENGL_ES_2)
341         list(APPEND WebCore_SOURCES
342             platform/graphics/opengl/Extensions3DOpenGLES.cpp
343             platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
344         )
345     else ()
346         list(APPEND WebCore_SOURCES
347             platform/graphics/opengl/Extensions3DOpenGL.cpp
348             platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
349             platform/graphics/OpenGLShims.cpp
350         )
351     endif ()
352
353     list(APPEND WebCore_LIBRARIES
354         ${X11_X11_LIB}
355         ${X11_Xcomposite_LIB}
356         ${X11_Xrender_LIB}
357     )
358     if (WTF_USE_EGL)
359         list(APPEND WebCore_LIBRARIES
360             ${EGL_LIBRARY}
361         )
362     endif ()
363 endif ()
364
365 add_definitions(-DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")
366
367 if (ENABLE_WEB_AUDIO)
368     list(APPEND WebCore_INCLUDE_DIRECTORIES
369         "${WEBCORE_DIR}/platform/audio/gstreamer"
370
371         ${GSTREAMER_AUDIO_INCLUDE_DIRS}
372         ${GSTREAMER_FFT_INCLUDE_DIRS}
373     )
374     list(APPEND WebCore_LIBRARIES
375         ${GSTREAMER_AUDIO_LIBRARIES}
376         ${GSTREAMER_FFT_LIBRARIES}
377     )
378     set(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
379     file(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
380     install(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
381     add_definitions(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
382 endif ()
383
384 if (ENABLE_SPELLCHECK)
385     list(APPEND WebCore_INCLUDE_DIRECTORIES
386         ${ENCHANT_INCLUDE_DIRS}
387     )
388     list(APPEND WebCore_LIBRARIES
389         ${ENCHANT_LIBRARIES}
390     )
391 endif ()
392
393 if (ENABLE_ACCESSIBILITY)
394     list(APPEND WebCore_INCLUDE_DIRECTORIES
395         "${WEBCORE_DIR}/accessibility/atk"
396         ${ATK_INCLUDE_DIRS}
397     )
398     list(APPEND WebCore_LIBRARIES
399         ${ATK_LIBRARIES}
400     )
401 endif ()