80072fabb8b13be6d6be913e325bf5f0bc4392f7
[WebKit-https.git] / Source / WebCore / PlatformEfl.cmake
1 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
2   "${WEBCORE_DIR}/accessibility/efl"
3   "${WEBCORE_DIR}/page/efl"
4   "${WEBCORE_DIR}/platform/efl"
5   "${WEBCORE_DIR}/platform/graphics/efl"
6   "${WEBCORE_DIR}/platform/linux"
7   "${WEBCORE_DIR}/platform/mediastream/gstreamer"
8   "${WEBCORE_DIR}/platform/network/soup"
9   "${WEBCORE_DIR}/platform/text/efl"
10   "${WEBCORE_DIR}/plugins/efl"
11 )
12
13 LIST(APPEND WebCore_SOURCES
14   accessibility/efl/AccessibilityObjectEfl.cpp
15   page/efl/DragControllerEfl.cpp
16   page/efl/EventHandlerEfl.cpp
17   platform/Cursor.cpp
18   platform/efl/AsyncFileSystemEfl.cpp
19   platform/efl/BatteryProviderEfl.cpp
20   platform/efl/ClipboardEfl.cpp
21   platform/efl/ContextMenuEfl.cpp
22   platform/efl/ContextMenuItemEfl.cpp
23   platform/efl/CursorEfl.cpp
24   platform/efl/DragDataEfl.cpp
25   platform/efl/DragImageEfl.cpp
26   platform/efl/EflKeyboardUtilities.cpp
27   platform/efl/EflScreenUtilities.cpp
28   platform/efl/ErrorsEfl.cpp
29   platform/efl/EventLoopEfl.cpp
30   platform/efl/FileSystemEfl.cpp
31   platform/efl/GamepadsEfl.cpp
32   platform/efl/KURLEfl.cpp
33   platform/efl/LanguageEfl.cpp
34   platform/efl/LocalizedStringsEfl.cpp
35   platform/efl/LoggingEfl.cpp
36   platform/efl/MIMETypeRegistryEfl.cpp
37   platform/efl/NetworkInfoProviderEfl.cpp
38   platform/efl/PasteboardEfl.cpp
39   platform/efl/PlatformKeyboardEventEfl.cpp
40   platform/efl/PlatformMouseEventEfl.cpp
41   platform/efl/PlatformScreenEfl.cpp
42   platform/efl/PlatformWheelEventEfl.cpp
43   platform/efl/RenderThemeEfl.cpp
44   platform/efl/RunLoopEfl.cpp
45   platform/efl/ScrollViewEfl.cpp
46   platform/efl/ScrollbarEfl.cpp
47   platform/efl/ScrollbarThemeEfl.cpp
48   platform/efl/SharedBufferEfl.cpp
49   platform/efl/SharedTimerEfl.cpp
50   platform/efl/SoundEfl.cpp
51   platform/efl/SystemTimeEfl.cpp
52   platform/efl/TemporaryLinkStubs.cpp
53   platform/efl/WidgetEfl.cpp
54   platform/graphics/ImageSource.cpp
55   platform/graphics/efl/CairoUtilitiesEfl.cpp
56   platform/graphics/efl/IconEfl.cpp
57   platform/graphics/efl/ImageEfl.cpp
58   platform/graphics/efl/IntPointEfl.cpp
59   platform/graphics/efl/IntRectEfl.cpp
60   platform/image-decoders/ImageDecoder.cpp
61   platform/image-decoders/bmp/BMPImageDecoder.cpp
62   platform/image-decoders/bmp/BMPImageReader.cpp
63   platform/image-decoders/gif/GIFImageDecoder.cpp
64   platform/image-decoders/gif/GIFImageReader.cpp
65   platform/image-decoders/ico/ICOImageDecoder.cpp
66   platform/image-decoders/jpeg/JPEGImageDecoder.cpp
67   platform/image-decoders/png/PNGImageDecoder.cpp
68   platform/image-decoders/webp/WEBPImageDecoder.cpp
69   platform/linux/GamepadDeviceLinux.cpp
70   platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp
71   platform/network/efl/NetworkStateNotifierEfl.cpp
72   platform/network/soup/CookieJarSoup.cpp
73   platform/network/soup/CookieStorageSoup.cpp
74   platform/network/soup/CredentialStorageSoup.cpp
75   platform/network/soup/DNSSoup.cpp
76   platform/network/soup/GOwnPtrSoup.cpp
77   platform/network/soup/ProxyResolverSoup.cpp
78   platform/network/soup/ProxyServerSoup.cpp
79   platform/network/soup/ResourceErrorSoup.cpp
80   platform/network/soup/ResourceHandleSoup.cpp
81   platform/network/soup/ResourceRequestSoup.cpp
82   platform/network/soup/ResourceResponseSoup.cpp
83   platform/network/soup/SocketStreamHandleSoup.cpp
84   platform/network/soup/SoupURIUtils.cpp
85   platform/PlatformStrategies.cpp
86   platform/posix/FileSystemPOSIX.cpp
87   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
88   platform/text/enchant/TextCheckerEnchant.cpp
89 )
90
91 IF (ENABLE_BATTERY_STATUS)
92     LIST(APPEND WebCore_INCLUDE_DIRECTORIES ${DBUS_INCLUDE_DIRS})
93     LIST(APPEND WebCore_LIBRARIES ${DBUS_LIBRARIES})
94 ENDIF ()
95
96 IF (ENABLE_NETSCAPE_PLUGIN_API)
97   LIST(APPEND WebCore_SOURCES
98     plugins/PluginDatabase.cpp
99     plugins/PluginDebug.cpp
100     plugins/PluginPackage.cpp
101     plugins/PluginStream.cpp
102     plugins/PluginView.cpp
103
104     plugins/efl/PluginPackageEfl.cpp
105     plugins/efl/PluginViewEfl.cpp
106   )
107 ELSE ()
108   LIST(APPEND WebCore_SOURCES
109     plugins/PluginPackageNone.cpp
110     plugins/PluginViewNone.cpp
111   )
112 ENDIF ()
113
114 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
115     ${WEBCORE_DIR}/css/mediaControlsEfl.css
116     ${WEBCORE_DIR}/css/mediaControlsEflFullscreen.css
117 )
118
119 IF (WTF_USE_CAIRO)
120   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
121     "${WEBCORE_DIR}/platform/cairo"
122     "${WEBCORE_DIR}/platform/graphics/cairo"
123   )
124   LIST(APPEND WebCore_SOURCES
125     platform/cairo/WidgetBackingStoreCairo.cpp
126     platform/graphics/cairo/BitmapImageCairo.cpp
127     platform/graphics/cairo/CairoUtilities.cpp
128     platform/graphics/cairo/FontCairo.cpp
129     platform/graphics/cairo/GradientCairo.cpp
130     platform/graphics/cairo/GraphicsContextCairo.cpp
131     platform/graphics/cairo/ImageBufferCairo.cpp
132     platform/graphics/cairo/ImageCairo.cpp
133     platform/graphics/cairo/IntRectCairo.cpp
134     platform/graphics/cairo/NativeImageCairo.cpp
135     platform/graphics/cairo/OwnPtrCairo.cpp
136     platform/graphics/cairo/PathCairo.cpp
137     platform/graphics/cairo/PatternCairo.cpp
138     platform/graphics/cairo/PlatformContextCairo.cpp
139     platform/graphics/cairo/PlatformPathCairo.cpp
140     platform/graphics/cairo/RefPtrCairo.cpp
141     platform/graphics/cairo/TileCairo.cpp
142     platform/graphics/cairo/TiledBackingStoreBackendCairo.cpp
143     platform/graphics/cairo/TransformationMatrixCairo.cpp
144
145     platform/image-decoders/cairo/ImageDecoderCairo.cpp
146   )
147
148   IF (WTF_USE_FREETYPE)
149     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
150       "${WEBCORE_DIR}/platform/graphics/freetype"
151       "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
152       "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
153       ${HARFBUZZ_INCLUDE_DIRS}
154     )
155     LIST(APPEND WebCore_SOURCES
156       platform/graphics/WOFFFileFormat.cpp
157       platform/graphics/cairo/FontCairoHarfbuzzNG.cpp
158       platform/graphics/freetype/FontCacheFreeType.cpp
159       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
160       platform/graphics/freetype/FontPlatformDataFreeType.cpp
161       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
162       platform/graphics/freetype/SimpleFontDataFreeType.cpp
163       platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp
164       platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp
165       platform/graphics/harfbuzz/ng/HarfBuzzNGFaceCairo.cpp
166       platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp
167     )
168     LIST(APPEND WebCore_LIBRARIES
169       ${HARFBUZZ_LIBRARIES}
170     )
171   ENDIF ()
172 ENDIF ()
173
174 IF (WTF_USE_ICU_UNICODE)
175   LIST(APPEND WebCore_SOURCES
176     editing/SmartReplaceICU.cpp
177     platform/text/TextEncodingDetectorICU.cpp
178     platform/text/TextBreakIteratorICU.cpp
179     platform/text/TextCodecICU.cpp
180   )
181 ENDIF ()
182
183 IF (WTF_USE_TEXTURE_MAPPER)
184   LIST(APPEND WebCore_SOURCES
185     platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
186   )
187 ENDIF ()
188
189 LIST(APPEND WebCore_LIBRARIES
190   ${CAIRO_LIBRARIES}
191   ${ECORE_LIBRARIES}
192   ${ECORE_EVAS_LIBRARIES}
193   ${ECORE_FILE_LIBRARIES}
194   ${ECORE_X_LIBRARIES}
195   ${E_DBUS_LIBRARIES}
196   ${E_DBUS_EUKIT_LIBRARIES}
197   ${EDJE_LIBRARIES}
198   ${EEZE_LIBRARIES}
199   ${EINA_LIBRARIES}
200   ${EVAS_LIBRARIES}
201   ${FONTCONFIG_LIBRARIES}
202   ${FREETYPE_LIBRARIES}
203   ${ICU_LIBRARIES}
204   ${JPEG_LIBRARY}
205   ${LIBXML2_LIBRARIES}
206   ${LIBXSLT_LIBRARIES}
207   ${PNG_LIBRARY}
208   ${SQLITE_LIBRARIES}
209   ${GLIB_LIBRARIES}
210   ${GLIB_GIO_LIBRARIES}
211   ${GLIB_GOBJECT_LIBRARIES}
212   ${LIBSOUP_LIBRARIES}
213   ${ZLIB_LIBRARIES}
214 )
215
216 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
217   ${CAIRO_INCLUDE_DIRS}
218   ${ECORE_INCLUDE_DIRS}
219   ${ECORE_EVAS_INCLUDE_DIRS}
220   ${ECORE_FILE_INCLUDE_DIRS}
221   ${ECORE_X_INCLUDE_DIRS}
222   ${E_DBUS_INCLUDE_DIRS}
223   ${E_DBUS_EUKIT_INCLUDE_DIRS}
224   ${EDJE_INCLUDE_DIRS}
225   ${EEZE_INCLUDE_DIRS}
226   ${EINA_INCLUDE_DIRS}
227   ${EVAS_INCLUDE_DIRS}
228   ${FREETYPE_INCLUDE_DIRS}
229   ${ICU_INCLUDE_DIRS}
230   ${LIBXML2_INCLUDE_DIR}
231   ${LIBXSLT_INCLUDE_DIR}
232   ${SQLITE_INCLUDE_DIR}
233   ${GLIB_INCLUDE_DIRS}
234   ${LIBSOUP_INCLUDE_DIRS}
235   ${ZLIB_INCLUDE_DIRS}
236 )
237
238 IF (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
239   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
240     "${WEBCORE_DIR}/platform/graphics/gstreamer"
241
242     ${GSTREAMER_INCLUDE_DIRS}
243     ${GSTREAMER_BASE_INCLUDE_DIRS}
244     ${GSTREAMER_APP_INCLUDE_DIRS}
245     ${GSTREAMER_INTERFACES_INCLUDE_DIRS}
246     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
247   )
248   LIST(APPEND WebCore_SOURCES
249     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
250     platform/graphics/gstreamer/GStreamerUtilities.cpp
251     platform/graphics/gstreamer/GStreamerVersioning.cpp
252   )
253   LIST(APPEND WebCore_LIBRARIES
254     ${GSTREAMER_LIBRARIES}
255     ${GSTREAMER_BASE_LIBRARIES}
256     ${GSTREAMER_APP_LIBRARIES}
257     ${GSTREAMER_INTERFACES_LIBRARIES}
258     ${GSTREAMER_PBUTILS_LIBRARIES}
259   )
260 ENDIF ()
261
262 IF (ENABLE_VIDEO)
263   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
264     ${GSTREAMER_VIDEO_INCLUDE_DIRS}
265   )
266   LIST(APPEND WebCore_SOURCES
267     platform/graphics/gstreamer/GStreamerGWorld.cpp
268     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
269     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
270     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
271     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
272     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
273   )
274   LIST(APPEND WebCore_LIBRARIES
275     ${GSTREAMER_VIDEO_LIBRARIES}
276   )
277 ENDIF ()
278
279 IF (WTF_USE_3D_GRAPHICS)
280   SET(WTF_USE_OPENGL 1)
281   ADD_DEFINITIONS(-DWTF_USE_OPENGL=1)
282
283   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
284     "${WEBCORE_DIR}/platform/graphics/cairo"
285     "${WEBCORE_DIR}/platform/graphics/opengl"
286     "${WEBCORE_DIR}/platform/graphics/texmap"
287   )
288   LIST(APPEND WebCore_LIBRARIES
289     ${OPENGL_gl_LIBRARY}
290   )
291   LIST(APPEND WebCore_SOURCES
292     platform/graphics/OpenGLShims.cpp
293     platform/graphics/cairo/DrawingBufferCairo.cpp
294     platform/graphics/efl/GraphicsContext3DEfl.cpp
295     platform/graphics/efl/GraphicsContext3DPrivate.cpp
296     platform/graphics/opengl/Extensions3DOpenGL.cpp
297     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
298     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
299     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
300     platform/graphics/texmap/TextureMapperGL.cpp
301     platform/graphics/texmap/TextureMapperShaderManager.cpp
302   )
303 ENDIF ()
304
305 ADD_DEFINITIONS(-DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")
306
307 IF (ENABLE_WEB_AUDIO)
308   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
309     "${WEBCORE_DIR}/platform/audio/gstreamer"
310
311     ${GSTREAMER_AUDIO_INCLUDE_DIRS}
312     ${GSTREAMER_FFT_INCLUDE_DIRS}
313   )
314   LIST(APPEND WebCore_SOURCES
315     platform/audio/efl/AudioBusEfl.cpp
316     platform/audio/gstreamer/AudioDestinationGStreamer.cpp
317     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
318     platform/audio/gstreamer/FFTFrameGStreamer.cpp
319     platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
320   )
321   LIST(APPEND WebCore_LIBRARIES
322     ${GSTREAMER_AUDIO_LIBRARIES}
323     ${GSTREAMER_FFT_LIBRARIES}
324   )
325   SET(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
326   FILE(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
327   INSTALL(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
328   ADD_DEFINITIONS(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
329 ENDIF ()
330
331 IF (ENABLE_SPELLCHECK)
332     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
333         ${ENCHANT_INCLUDE_DIRS}
334     )
335     LIST(APPEND WebCore_LIBRARIES
336         ${ENCHANT_LIBRARIES}
337     )
338 ENDIF()