[EFL] Get rid of GeolocationServiceEfl
[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   "${JAVASCRIPTCORE_DIR}/wtf/gobject"
8   "${WEBCORE_DIR}/accessibility/efl"
9   "${WEBCORE_DIR}/page/efl"
10   "${WEBCORE_DIR}/platform/efl"
11   "${WEBCORE_DIR}/platform/graphics/efl"
12   "${WEBCORE_DIR}/platform/network/soup"
13   "${WEBCORE_DIR}/platform/text/efl"
14   "${WEBCORE_DIR}/plugins/efl"
15   "${WEBKIT_DIR}/efl/WebCoreSupport"
16   "${WEBKIT_DIR}/efl/ewk"
17 )
18
19 LIST(APPEND WebCore_SOURCES
20   accessibility/efl/AccessibilityObjectEfl.cpp
21   bindings/js/ScriptControllerEfl.cpp
22   page/efl/DragControllerEfl.cpp
23   page/efl/EventHandlerEfl.cpp
24   platform/Cursor.cpp
25   platform/efl/ClipboardEfl.cpp
26   platform/efl/ContextMenuEfl.cpp
27   platform/efl/ContextMenuItemEfl.cpp
28   platform/efl/CursorEfl.cpp
29   platform/efl/DragDataEfl.cpp
30   platform/efl/DragImageEfl.cpp
31   platform/efl/EflKeyboardUtilities.cpp
32   platform/efl/EflScreenUtilities.cpp
33   platform/efl/EventLoopEfl.cpp
34   platform/efl/FileSystemEfl.cpp
35   platform/efl/KURLEfl.cpp
36   platform/efl/LanguageEfl.cpp
37   platform/efl/LocalizedStringsEfl.cpp
38   platform/efl/LoggingEfl.cpp
39   platform/efl/MIMETypeRegistryEfl.cpp
40   platform/efl/PasteboardEfl.cpp
41   platform/efl/PlatformKeyboardEventEfl.cpp
42   platform/efl/PlatformMouseEventEfl.cpp
43   platform/efl/PlatformScreenEfl.cpp
44   platform/efl/PlatformTouchEventEfl.cpp
45   platform/efl/PlatformTouchPointEfl.cpp
46   platform/efl/PlatformWheelEventEfl.cpp
47   platform/efl/PopupMenuEfl.cpp
48   platform/efl/RefPtrEfl.cpp
49   platform/efl/RenderThemeEfl.cpp
50   platform/efl/ScrollViewEfl.cpp
51   platform/efl/ScrollbarEfl.cpp
52   platform/efl/ScrollbarThemeEfl.cpp
53   platform/efl/SearchPopupMenuEfl.cpp
54   platform/efl/SharedBufferEfl.cpp
55   platform/efl/SharedTimerEfl.cpp
56   platform/efl/SoundEfl.cpp
57   platform/efl/SystemTimeEfl.cpp
58   platform/efl/TemporaryLinkStubs.cpp
59   platform/efl/WidgetEfl.cpp
60   platform/graphics/ImageSource.cpp
61   platform/graphics/efl/GraphicsLayerEfl.cpp
62   platform/graphics/efl/IconEfl.cpp
63   platform/graphics/efl/ImageEfl.cpp
64   platform/graphics/efl/IntPointEfl.cpp
65   platform/graphics/efl/IntRectEfl.cpp
66   platform/image-decoders/ImageDecoder.cpp
67   platform/image-decoders/bmp/BMPImageDecoder.cpp
68   platform/image-decoders/bmp/BMPImageReader.cpp
69   platform/image-decoders/gif/GIFImageDecoder.cpp
70   platform/image-decoders/gif/GIFImageReader.cpp
71   platform/image-decoders/ico/ICOImageDecoder.cpp
72   platform/image-decoders/jpeg/JPEGImageDecoder.cpp
73   platform/image-decoders/png/PNGImageDecoder.cpp
74   platform/image-decoders/webp/WEBPImageDecoder.cpp
75   platform/network/soup/CookieJarSoup.cpp
76   platform/network/soup/CredentialStorageSoup.cpp
77   platform/network/soup/GOwnPtrSoup.cpp
78   platform/network/soup/ProxyServerSoup.cpp
79   platform/network/soup/ResourceHandleSoup.cpp
80   platform/network/soup/ResourceRequestSoup.cpp
81   platform/network/soup/ResourceResponseSoup.cpp
82   platform/network/soup/SocketStreamHandleSoup.cpp
83   platform/network/soup/SoupURIUtils.cpp
84   platform/posix/FileSystemPOSIX.cpp
85   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
86 )
87
88 IF (ENABLE_NETSCAPE_PLUGIN_API)
89   LIST(APPEND WebCore_SOURCES
90     plugins/PluginDatabase.cpp
91     plugins/PluginDebug.cpp
92     plugins/PluginPackage.cpp
93     plugins/PluginStream.cpp
94     plugins/PluginView.cpp
95
96     plugins/efl/PluginDataEfl.cpp
97     plugins/efl/PluginPackageEfl.cpp
98     plugins/efl/PluginViewEfl.cpp
99   )
100 ELSE ()
101   LIST(APPEND WebCore_SOURCES
102     plugins/PluginDataNone.cpp
103     plugins/PluginPackageNone.cpp
104     plugins/PluginViewNone.cpp
105   )
106 ENDIF ()
107
108 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
109     ${WEBCORE_DIR}/css/mediaControlsEfl.css
110 )
111
112 IF (WTF_USE_CAIRO)
113   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
114     "${WEBCORE_DIR}/platform/cairo"
115     "${WEBCORE_DIR}/platform/graphics/cairo"
116   )
117   LIST(APPEND WebCore_SOURCES
118     platform/cairo/WidgetBackingStoreCairo.cpp
119     platform/graphics/cairo/CairoUtilities.cpp
120     platform/graphics/cairo/FontCairo.cpp
121     platform/graphics/cairo/GradientCairo.cpp
122     platform/graphics/cairo/GraphicsContextCairo.cpp
123     platform/graphics/cairo/ImageBufferCairo.cpp
124     platform/graphics/cairo/ImageCairo.cpp
125     platform/graphics/cairo/OwnPtrCairo.cpp
126     platform/graphics/cairo/PathCairo.cpp
127     platform/graphics/cairo/PatternCairo.cpp
128     platform/graphics/cairo/PlatformContextCairo.cpp
129     platform/graphics/cairo/PlatformPathCairo.cpp
130     platform/graphics/cairo/RefPtrCairo.cpp
131     platform/graphics/cairo/TransformationMatrixCairo.cpp
132
133     platform/image-decoders/cairo/ImageDecoderCairo.cpp
134   )
135
136   IF (WTF_USE_FREETYPE)
137     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
138       "${WEBCORE_DIR}/platform/graphics/freetype"
139     )
140     LIST(APPEND WebCore_SOURCES
141       platform/graphics/WOFFFileFormat.cpp
142       platform/graphics/efl/FontEfl.cpp
143       platform/graphics/freetype/FontCacheFreeType.cpp
144       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
145       platform/graphics/freetype/FontPlatformDataFreeType.cpp
146       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
147       platform/graphics/freetype/SimpleFontDataFreeType.cpp
148     )
149     LIST(APPEND WebCore_LIBRARIES
150       ${ZLIB_LIBRARIES}
151     )
152   ENDIF ()
153
154   IF (WTF_USE_PANGO)
155     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
156       "${WEBCORE_DIR}/platform/graphics/pango"
157       ${Pango_INCLUDE_DIRS}
158     )
159     LIST(APPEND WebCore_SOURCES
160       platform/graphics/pango/FontPango.cpp
161       platform/graphics/pango/FontCachePango.cpp
162       platform/graphics/pango/FontCustomPlatformDataPango.cpp
163       platform/graphics/pango/FontPlatformDataPango.cpp
164       platform/graphics/pango/GlyphPageTreeNodePango.cpp
165       platform/graphics/pango/SimpleFontDataPango.cpp
166       platform/graphics/pango/PangoUtilities.cpp
167     )
168     LIST(APPEND WebCore_LIBRARIES
169       ${Pango_LIBRARY}
170       ${Pango_Cairo_LIBRARY}
171     )
172   ENDIF ()
173 ENDIF ()
174
175 IF (WTF_USE_ICU_UNICODE)
176   LIST(APPEND WebCore_SOURCES
177     editing/SmartReplaceICU.cpp
178     platform/text/TextEncodingDetectorICU.cpp
179     platform/text/TextBreakIteratorICU.cpp
180     platform/text/TextCodecICU.cpp
181   )
182 ENDIF ()
183
184 IF (ENABLE_VIDEO)
185   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
186     "${WEBCORE_DIR}/platform/graphics/gstreamer"
187   )
188   LIST(APPEND WebCore_SOURCES
189     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
190     platform/graphics/gstreamer/GStreamerGWorld.cpp
191     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
192     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
193     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
194     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
195     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
196   )
197 ENDIF ()
198
199 LIST(APPEND WebCore_LIBRARIES
200   ${Cairo_LIBRARIES}
201   ${ECORE_X_LIBRARIES}
202   ${EFLDEPS_LIBRARIES}
203   ${EVAS_LIBRARIES}
204   ${FREETYPE_LIBRARIES}
205   ${ICU_LIBRARIES}
206   ${LIBXML2_LIBRARIES}
207   ${LIBXSLT_LIBRARIES}
208   ${SQLITE_LIBRARIES}
209   ${Glib_LIBRARIES}
210   ${LIBSOUP24_LIBRARIES}
211 )
212
213 IF (ENABLE_VIDEO)
214   LIST(APPEND WebCore_LIBRARIES
215     ${GStreamer-App_LIBRARIES}
216     ${GStreamer-Interfaces_LIBRARIES}
217     ${GStreamer-Pbutils_LIBRARIES}
218     ${GStreamer-Video_LIBRARIES}
219   )
220 ENDIF ()
221
222 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
223   ${Cairo_INCLUDE_DIRS}
224   ${ECORE_X_INCLUDE_DIRS}
225   ${EFLDEPS_INCLUDE_DIRS}
226   ${EVAS_INCLUDE_DIRS}
227   ${FREETYPE_INCLUDE_DIRS}
228   ${ICU_INCLUDE_DIRS}
229   ${LIBXML2_INCLUDE_DIR}
230   ${LIBXSLT_INCLUDE_DIR}
231   ${SQLITE_INCLUDE_DIR}
232   ${Glib_INCLUDE_DIRS}
233   ${LIBSOUP24_INCLUDE_DIRS}
234 )
235
236 IF (ENABLE_VIDEO)
237   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
238     ${GStreamer-App_INCLUDE_DIRS}
239     ${GStreamer-Interfaces_INCLUDE_DIRS}
240     ${GStreamer-Pbutils_INCLUDE_DIRS}
241     ${GStreamer-Video_INCLUDE_DIRS}
242   )
243 ENDIF ()
244
245 IF (ENABLE_WEBGL)
246   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
247     ${OPENGL_INCLUDE_DIR}
248     "${WEBCORE_DIR}/platform/graphics/cairo"
249     "${WEBCORE_DIR}/platform/graphics/glx"
250     "${WEBCORE_DIR}/platform/graphics/opengl"
251   )
252   LIST(APPEND WebCore_LIBRARIES
253     ${OPENGL_gl_LIBRARY}
254   )
255   LIST(APPEND WebCore_SOURCES
256     platform/graphics/cairo/DrawingBufferCairo.cpp
257     platform/graphics/cairo/GraphicsContext3DCairo.cpp
258     platform/graphics/glx/GraphicsContext3DPrivate.cpp
259     platform/graphics/OpenGLShims.cpp
260     platform/graphics/opengl/Extensions3DOpenGL.cpp
261     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
262     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
263   )
264 ENDIF ()
265
266 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1
267                 -DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")