[EFL] Make zlib a general build requirement
[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/RunLoopEfl.cpp
51   platform/efl/ScrollViewEfl.cpp
52   platform/efl/ScrollbarEfl.cpp
53   platform/efl/ScrollbarThemeEfl.cpp
54   platform/efl/SearchPopupMenuEfl.cpp
55   platform/efl/SharedBufferEfl.cpp
56   platform/efl/SharedTimerEfl.cpp
57   platform/efl/SoundEfl.cpp
58   platform/efl/SystemTimeEfl.cpp
59   platform/efl/TemporaryLinkStubs.cpp
60   platform/efl/WidgetEfl.cpp
61   platform/graphics/ImageSource.cpp
62   platform/graphics/efl/GraphicsLayerEfl.cpp
63   platform/graphics/efl/IconEfl.cpp
64   platform/graphics/efl/ImageEfl.cpp
65   platform/graphics/efl/IntPointEfl.cpp
66   platform/graphics/efl/IntRectEfl.cpp
67   platform/image-decoders/ImageDecoder.cpp
68   platform/image-decoders/bmp/BMPImageDecoder.cpp
69   platform/image-decoders/bmp/BMPImageReader.cpp
70   platform/image-decoders/gif/GIFImageDecoder.cpp
71   platform/image-decoders/gif/GIFImageReader.cpp
72   platform/image-decoders/ico/ICOImageDecoder.cpp
73   platform/image-decoders/jpeg/JPEGImageDecoder.cpp
74   platform/image-decoders/png/PNGImageDecoder.cpp
75   platform/image-decoders/webp/WEBPImageDecoder.cpp
76   platform/network/soup/CookieJarSoup.cpp
77   platform/network/soup/CredentialStorageSoup.cpp
78   platform/network/soup/DNSSoup.cpp
79   platform/network/soup/GOwnPtrSoup.cpp
80   platform/network/soup/ProxyServerSoup.cpp
81   platform/network/soup/ResourceHandleSoup.cpp
82   platform/network/soup/ResourceRequestSoup.cpp
83   platform/network/soup/ResourceResponseSoup.cpp
84   platform/network/soup/SocketStreamHandleSoup.cpp
85   platform/network/soup/SoupURIUtils.cpp
86   platform/posix/FileSystemPOSIX.cpp
87   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
88 )
89
90 IF (ENABLE_NETSCAPE_PLUGIN_API)
91   LIST(APPEND WebCore_SOURCES
92     plugins/PluginDatabase.cpp
93     plugins/PluginDebug.cpp
94     plugins/PluginPackage.cpp
95     plugins/PluginStream.cpp
96     plugins/PluginView.cpp
97
98     plugins/efl/PluginDataEfl.cpp
99     plugins/efl/PluginPackageEfl.cpp
100     plugins/efl/PluginViewEfl.cpp
101   )
102 ELSE ()
103   LIST(APPEND WebCore_SOURCES
104     plugins/PluginDataNone.cpp
105     plugins/PluginPackageNone.cpp
106     plugins/PluginViewNone.cpp
107   )
108 ENDIF ()
109
110 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
111     ${WEBCORE_DIR}/css/mediaControlsEfl.css
112 )
113
114 IF (WTF_USE_CAIRO)
115   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
116     "${WEBCORE_DIR}/platform/cairo"
117     "${WEBCORE_DIR}/platform/graphics/cairo"
118   )
119   LIST(APPEND WebCore_SOURCES
120     platform/cairo/WidgetBackingStoreCairo.cpp
121     platform/graphics/cairo/CairoUtilities.cpp
122     platform/graphics/cairo/FontCairo.cpp
123     platform/graphics/cairo/GradientCairo.cpp
124     platform/graphics/cairo/GraphicsContextCairo.cpp
125     platform/graphics/cairo/ImageBufferCairo.cpp
126     platform/graphics/cairo/ImageCairo.cpp
127     platform/graphics/cairo/OwnPtrCairo.cpp
128     platform/graphics/cairo/PathCairo.cpp
129     platform/graphics/cairo/PatternCairo.cpp
130     platform/graphics/cairo/PlatformContextCairo.cpp
131     platform/graphics/cairo/PlatformPathCairo.cpp
132     platform/graphics/cairo/RefPtrCairo.cpp
133     platform/graphics/cairo/TransformationMatrixCairo.cpp
134
135     platform/image-decoders/cairo/ImageDecoderCairo.cpp
136   )
137
138   IF (WTF_USE_FREETYPE)
139     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
140       "${WEBCORE_DIR}/platform/graphics/freetype"
141     )
142     LIST(APPEND WebCore_SOURCES
143       platform/graphics/WOFFFileFormat.cpp
144       platform/graphics/efl/FontEfl.cpp
145       platform/graphics/freetype/FontCacheFreeType.cpp
146       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
147       platform/graphics/freetype/FontPlatformDataFreeType.cpp
148       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
149       platform/graphics/freetype/SimpleFontDataFreeType.cpp
150     )
151   ENDIF ()
152
153   IF (WTF_USE_PANGO)
154     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
155       "${WEBCORE_DIR}/platform/graphics/pango"
156       ${Pango_INCLUDE_DIRS}
157     )
158     LIST(APPEND WebCore_SOURCES
159       platform/graphics/pango/FontPango.cpp
160       platform/graphics/pango/FontCachePango.cpp
161       platform/graphics/pango/FontCustomPlatformDataPango.cpp
162       platform/graphics/pango/FontPlatformDataPango.cpp
163       platform/graphics/pango/GlyphPageTreeNodePango.cpp
164       platform/graphics/pango/SimpleFontDataPango.cpp
165       platform/graphics/pango/PangoUtilities.cpp
166     )
167     LIST(APPEND WebCore_LIBRARIES
168       ${Pango_LIBRARY}
169       ${Pango_Cairo_LIBRARY}
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 (ENABLE_VIDEO)
184   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
185     "${WEBCORE_DIR}/platform/graphics/gstreamer"
186   )
187   LIST(APPEND WebCore_SOURCES
188     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
189     platform/graphics/gstreamer/GStreamerGWorld.cpp
190     platform/graphics/gstreamer/GStreamerVersioning.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   ${JPEG_LIBRARY}
207   ${LIBXML2_LIBRARIES}
208   ${LIBXSLT_LIBRARIES}
209   ${PNG_LIBRARY}
210   ${SQLITE_LIBRARIES}
211   ${Glib_LIBRARIES}
212   ${LIBSOUP24_LIBRARIES}
213   ${ZLIB_LIBRARIES}
214 )
215
216 IF (ENABLE_VIDEO)
217   LIST(APPEND WebCore_LIBRARIES
218     ${GStreamer-App_LIBRARIES}
219     ${GStreamer-Interfaces_LIBRARIES}
220     ${GStreamer-Pbutils_LIBRARIES}
221     ${GStreamer-Video_LIBRARIES}
222   )
223 ENDIF ()
224
225 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
226   ${Cairo_INCLUDE_DIRS}
227   ${ECORE_X_INCLUDE_DIRS}
228   ${EFLDEPS_INCLUDE_DIRS}
229   ${EVAS_INCLUDE_DIRS}
230   ${FREETYPE_INCLUDE_DIRS}
231   ${ICU_INCLUDE_DIRS}
232   ${LIBXML2_INCLUDE_DIR}
233   ${LIBXSLT_INCLUDE_DIR}
234   ${SQLITE_INCLUDE_DIR}
235   ${Glib_INCLUDE_DIRS}
236   ${LIBSOUP24_INCLUDE_DIRS}
237   ${ZLIB_INCLUDE_DIRS}
238 )
239
240 IF (ENABLE_VIDEO)
241   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
242     ${GStreamer-App_INCLUDE_DIRS}
243     ${GStreamer-Interfaces_INCLUDE_DIRS}
244     ${GStreamer-Pbutils_INCLUDE_DIRS}
245     ${GStreamer-Video_INCLUDE_DIRS}
246   )
247 ENDIF ()
248
249 IF (ENABLE_WEBGL)
250   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
251     ${OPENGL_INCLUDE_DIR}
252     "${WEBCORE_DIR}/platform/graphics/cairo"
253     "${WEBCORE_DIR}/platform/graphics/glx"
254     "${WEBCORE_DIR}/platform/graphics/opengl"
255   )
256   LIST(APPEND WebCore_LIBRARIES
257     ${OPENGL_gl_LIBRARY}
258   )
259   LIST(APPEND WebCore_SOURCES
260     platform/graphics/cairo/DrawingBufferCairo.cpp
261     platform/graphics/cairo/GraphicsContext3DCairo.cpp
262     platform/graphics/glx/GraphicsContext3DPrivate.cpp
263     platform/graphics/OpenGLShims.cpp
264     platform/graphics/opengl/Extensions3DOpenGL.cpp
265     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
266     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
267   )
268 ENDIF ()
269
270 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1
271                 -DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")