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