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