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