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