[EFL] Fontconfig can't be linked properly
[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/network/soup"
12   "${WEBCORE_DIR}/platform/text/efl"
13   "${WEBCORE_DIR}/plugins/efl"
14   "${WEBKIT_DIR}/efl/WebCoreSupport"
15   "${WEBKIT_DIR}/efl/ewk"
16 )
17
18 LIST(APPEND WebCore_SOURCES
19   accessibility/efl/AccessibilityObjectEfl.cpp
20   bindings/js/ScriptControllerEfl.cpp
21   page/efl/DragControllerEfl.cpp
22   page/efl/EventHandlerEfl.cpp
23   platform/Cursor.cpp
24   platform/efl/ClipboardEfl.cpp
25   platform/efl/ColorChooserEfl.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/PlatformStrategies.cpp
87   platform/posix/FileSystemPOSIX.cpp
88   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
89 )
90
91 IF (ENABLE_NETSCAPE_PLUGIN_API)
92   LIST(APPEND WebCore_SOURCES
93     plugins/PluginDatabase.cpp
94     plugins/PluginDebug.cpp
95     plugins/PluginPackage.cpp
96     plugins/PluginStream.cpp
97     plugins/PluginView.cpp
98
99     plugins/efl/PluginPackageEfl.cpp
100     plugins/efl/PluginViewEfl.cpp
101   )
102 ELSE ()
103   LIST(APPEND WebCore_SOURCES
104     plugins/PluginPackageNone.cpp
105     plugins/PluginViewNone.cpp
106   )
107 ENDIF ()
108
109 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
110     ${WEBCORE_DIR}/css/mediaControlsEfl.css
111     ${WEBCORE_DIR}/css/mediaControlsEflFullscreen.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/BitmapImageCairo.cpp
122     platform/graphics/cairo/CairoUtilities.cpp
123     platform/graphics/cairo/FontCairo.cpp
124     platform/graphics/cairo/GradientCairo.cpp
125     platform/graphics/cairo/GraphicsContextCairo.cpp
126     platform/graphics/cairo/ImageBufferCairo.cpp
127     platform/graphics/cairo/ImageCairo.cpp
128     platform/graphics/cairo/NativeImageCairo.cpp
129     platform/graphics/cairo/OwnPtrCairo.cpp
130     platform/graphics/cairo/PathCairo.cpp
131     platform/graphics/cairo/PatternCairo.cpp
132     platform/graphics/cairo/PlatformContextCairo.cpp
133     platform/graphics/cairo/PlatformPathCairo.cpp
134     platform/graphics/cairo/RefPtrCairo.cpp
135     platform/graphics/cairo/TransformationMatrixCairo.cpp
136
137     platform/image-decoders/cairo/ImageDecoderCairo.cpp
138   )
139
140   IF (WTF_USE_FREETYPE)
141     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
142       "${WEBCORE_DIR}/platform/graphics/freetype"
143     )
144     LIST(APPEND WebCore_SOURCES
145       platform/graphics/WOFFFileFormat.cpp
146       platform/graphics/efl/FontEfl.cpp
147       platform/graphics/freetype/FontCacheFreeType.cpp
148       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
149       platform/graphics/freetype/FontPlatformDataFreeType.cpp
150       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
151       platform/graphics/freetype/SimpleFontDataFreeType.cpp
152     )
153   ENDIF ()
154
155   IF (WTF_USE_PANGO)
156     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
157       "${WEBCORE_DIR}/platform/graphics/pango"
158       ${Pango_INCLUDE_DIRS}
159     )
160     LIST(APPEND WebCore_SOURCES
161       platform/graphics/pango/FontPango.cpp
162       platform/graphics/pango/FontCachePango.cpp
163       platform/graphics/pango/FontCustomPlatformDataPango.cpp
164       platform/graphics/pango/FontPlatformDataPango.cpp
165       platform/graphics/pango/GlyphPageTreeNodePango.cpp
166       platform/graphics/pango/SimpleFontDataPango.cpp
167       platform/graphics/pango/PangoUtilities.cpp
168     )
169     LIST(APPEND WebCore_LIBRARIES
170       ${Pango_LIBRARY}
171       ${Pango_Cairo_LIBRARY}
172     )
173   ENDIF ()
174 ENDIF ()
175
176 IF (WTF_USE_ICU_UNICODE)
177   LIST(APPEND WebCore_SOURCES
178     editing/SmartReplaceICU.cpp
179     platform/text/TextEncodingDetectorICU.cpp
180     platform/text/TextBreakIteratorICU.cpp
181     platform/text/TextCodecICU.cpp
182   )
183 ENDIF ()
184
185 LIST(APPEND WebCore_LIBRARIES
186   ${CAIRO_LIBRARIES}
187   ${ECORE_X_LIBRARIES}
188   ${EFLDEPS_LIBRARIES}
189   ${EVAS_LIBRARIES}
190   ${FONTCONFIG_LIBRARIES}
191   ${FREETYPE_LIBRARIES}
192   ${ICU_LIBRARIES}
193   ${JPEG_LIBRARY}
194   ${LIBXML2_LIBRARIES}
195   ${LIBXSLT_LIBRARIES}
196   ${PNG_LIBRARY}
197   ${SQLITE_LIBRARIES}
198   ${Glib_LIBRARIES}
199   ${LIBSOUP24_LIBRARIES}
200   ${ZLIB_LIBRARIES}
201 )
202
203 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
204   ${CAIRO_INCLUDE_DIRS}
205   ${ECORE_X_INCLUDE_DIRS}
206   ${EFLDEPS_INCLUDE_DIRS}
207   ${EVAS_INCLUDE_DIRS}
208   ${FREETYPE_INCLUDE_DIRS}
209   ${ICU_INCLUDE_DIRS}
210   ${LIBXML2_INCLUDE_DIR}
211   ${LIBXSLT_INCLUDE_DIR}
212   ${SQLITE_INCLUDE_DIR}
213   ${Glib_INCLUDE_DIRS}
214   ${LIBSOUP24_INCLUDE_DIRS}
215   ${ZLIB_INCLUDE_DIRS}
216 )
217
218 IF (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
219   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
220     "${WEBCORE_DIR}/platform/graphics/gstreamer"
221
222     ${GSTREAMER_INCLUDE_DIRS}
223     ${GSTREAMER_BASE_INCLUDE_DIRS}
224     ${GSTREAMER_APP_INCLUDE_DIRS}
225     ${GSTREAMER_INTERFACES_INCLUDE_DIRS}
226     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
227   )
228   LIST(APPEND WebCore_SOURCES
229     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
230     platform/graphics/gstreamer/GStreamerUtilities.cpp
231     platform/graphics/gstreamer/GStreamerVersioning.cpp
232   )
233   LIST(APPEND WebCore_LIBRARIES
234     ${GSTREAMER_LIBRARIES}
235     ${GSTREAMER_BASE_LIBRARIES}
236     ${GSTREAMER_APP_LIBRARIES}
237     ${GSTREAMER_INTERFACES_LIBRARIES}
238     ${GSTREAMER_PBUTILS_LIBRARIES}
239   )
240 ENDIF ()
241
242 IF (ENABLE_VIDEO)
243   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
244     ${GSTREAMER_VIDEO_INCLUDE_DIRS}
245   )
246   LIST(APPEND WebCore_SOURCES
247     platform/graphics/gstreamer/GStreamerGWorld.cpp
248     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
249     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
250     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
251     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
252     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
253   )
254   LIST(APPEND WebCore_LIBRARIES
255     ${GSTREAMER_VIDEO_LIBRARIES}
256   )
257 ENDIF ()
258
259 IF (ENABLE_WEBGL)
260   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
261     ${OPENGL_INCLUDE_DIR}
262     "${WEBCORE_DIR}/platform/graphics/cairo"
263     "${WEBCORE_DIR}/platform/graphics/glx"
264     "${WEBCORE_DIR}/platform/graphics/opengl"
265   )
266   LIST(APPEND WebCore_LIBRARIES
267     ${OPENGL_gl_LIBRARY}
268   )
269   LIST(APPEND WebCore_SOURCES
270     platform/graphics/cairo/DrawingBufferCairo.cpp
271     platform/graphics/cairo/GraphicsContext3DCairo.cpp
272     platform/graphics/glx/GraphicsContext3DPrivate.cpp
273     platform/graphics/OpenGLShims.cpp
274     platform/graphics/opengl/Extensions3DOpenGL.cpp
275     platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
276     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
277   )
278 ENDIF ()
279
280 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1
281                 -DDATA_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}")
282
283 IF (ENABLE_WEB_AUDIO)
284   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
285     "${WEBCORE_DIR}/platform/audio/gstreamer"
286
287     ${GSTREAMER_AUDIO_INCLUDE_DIRS}
288     ${GSTREAMER_FFT_INCLUDE_DIRS}
289   )
290   LIST(APPEND WebCore_SOURCES
291     platform/audio/efl/AudioBusEfl.cpp
292     platform/audio/gstreamer/AudioDestinationGStreamer.cpp
293     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
294     platform/audio/gstreamer/FFTFrameGStreamer.cpp
295     platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
296   )
297   LIST(APPEND WebCore_LIBRARIES
298     ${GSTREAMER_AUDIO_LIBRARIES}
299     ${GSTREAMER_FFT_LIBRARIES}
300   )
301   SET(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
302   FILE(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
303   INSTALL(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
304   ADD_DEFINITIONS(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
305 ENDIF ()
306