[CMAKE] Refactoring CMakeLists${PORT}.txt to Platform${PORT}.cmake
[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}/platform/efl"
9   "${WEBCORE_DIR}/platform/text/efl"
10   "${WEBCORE_DIR}/platform/graphics/efl"
11   "${WEBCORE_DIR}/page/efl"
12   "${WEBCORE_DIR}/accessibility/efl"
13   "${WEBKIT_DIR}/efl/WebCoreSupport"
14   "${WEBKIT_DIR}/efl/ewk"
15   "${DERIVED_SOURCES_DIR}"
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/ContextMenuEfl.cpp
26   platform/efl/ContextMenuItemEfl.cpp
27   platform/efl/CursorEfl.cpp
28   platform/efl/DragDataEfl.cpp
29   platform/efl/DragImageEfl.cpp
30   platform/efl/EventLoopEfl.cpp
31   platform/efl/FileSystemEfl.cpp
32   platform/efl/KURLEfl.cpp
33   platform/efl/LanguageEfl.cpp
34   platform/efl/LocalizedStringsEfl.cpp
35   platform/efl/LoggingEfl.cpp
36   platform/efl/MIMETypeRegistryEfl.cpp
37   platform/efl/PasteboardEfl.cpp
38   platform/efl/PlatformKeyboardEventEfl.cpp
39   platform/efl/PlatformMouseEventEfl.cpp
40   platform/efl/PlatformScreenEfl.cpp
41   platform/efl/PlatformTouchEventEfl.cpp
42   platform/efl/PlatformTouchPointEfl.cpp
43   platform/efl/PlatformWheelEventEfl.cpp
44   platform/efl/PopupMenuEfl.cpp
45   platform/efl/RenderThemeEfl.cpp
46   platform/efl/ScrollViewEfl.cpp
47   platform/efl/ScrollbarEfl.cpp
48   platform/efl/ScrollbarThemeEfl.cpp
49   platform/efl/SearchPopupMenuEfl.cpp
50   platform/efl/SharedBufferEfl.cpp
51   platform/efl/SharedTimerEfl.cpp
52   platform/efl/SoundEfl.cpp
53   platform/efl/SystemTimeEfl.cpp
54   platform/efl/TemporaryLinkStubs.cpp
55   platform/efl/WidgetEfl.cpp
56   platform/graphics/ImageSource.cpp
57   platform/graphics/efl/GraphicsLayerEfl.cpp
58   platform/graphics/efl/IconEfl.cpp
59   platform/graphics/efl/ImageEfl.cpp
60   platform/graphics/efl/IntPointEfl.cpp
61   platform/graphics/efl/IntRectEfl.cpp
62   platform/image-decoders/ImageDecoder.cpp
63   platform/image-decoders/bmp/BMPImageDecoder.cpp
64   platform/image-decoders/bmp/BMPImageReader.cpp
65   platform/image-decoders/gif/GIFImageDecoder.cpp
66   platform/image-decoders/gif/GIFImageReader.cpp
67   platform/image-decoders/ico/ICOImageDecoder.cpp
68   platform/image-decoders/jpeg/JPEGImageDecoder.cpp
69   platform/image-decoders/png/PNGImageDecoder.cpp
70   platform/image-decoders/webp/WEBPImageDecoder.cpp
71   platform/posix/FileSystemPOSIX.cpp
72   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
73   plugins/PluginDataNone.cpp
74   plugins/PluginPackageNone.cpp
75   plugins/PluginViewNone.cpp
76 )
77
78 LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
79     ${WEBCORE_DIR}/css/mediaControlsEfl.css
80 )
81
82 IF (WTF_USE_CAIRO)
83   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
84     "${WEBCORE_DIR}/platform/cairo"
85     "${WEBCORE_DIR}/platform/graphics/cairo"
86   )
87   LIST(APPEND WebCore_SOURCES
88     platform/cairo/WidgetBackingStoreCairo.cpp
89     platform/graphics/cairo/CairoUtilities.cpp
90     platform/graphics/cairo/FontCairo.cpp
91     platform/graphics/cairo/GradientCairo.cpp
92     platform/graphics/cairo/GraphicsContextCairo.cpp
93     platform/graphics/cairo/ImageBufferCairo.cpp
94     platform/graphics/cairo/ImageCairo.cpp
95     platform/graphics/cairo/OwnPtrCairo.cpp
96     platform/graphics/cairo/PathCairo.cpp
97     platform/graphics/cairo/PatternCairo.cpp
98     platform/graphics/cairo/PlatformContextCairo.cpp
99     platform/graphics/cairo/PlatformPathCairo.cpp
100     platform/graphics/cairo/RefPtrCairo.cpp
101     platform/graphics/cairo/TransformationMatrixCairo.cpp
102
103     platform/image-decoders/cairo/ImageDecoderCairo.cpp
104   )
105
106   IF (WTF_USE_FREETYPE)
107     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
108       "${WEBCORE_DIR}/platform/graphics/freetype"
109     )
110     LIST(APPEND WebCore_SOURCES
111       platform/graphics/WOFFFileFormat.cpp
112       platform/graphics/efl/FontEfl.cpp
113       platform/graphics/freetype/FontCacheFreeType.cpp
114       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
115       platform/graphics/freetype/FontPlatformDataFreeType.cpp
116       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
117       platform/graphics/freetype/SimpleFontDataFreeType.cpp
118     )
119   ENDIF ()
120
121   IF (WTF_USE_PANGO)
122     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
123       "${WEBCORE_DIR}/platform/graphics/pango"
124       ${Pango_INCLUDE_DIRS}
125     )
126     LIST(APPEND WebCore_SOURCES
127       platform/graphics/pango/FontPango.cpp
128       platform/graphics/pango/FontCachePango.cpp
129       platform/graphics/pango/FontCustomPlatformDataPango.cpp
130       platform/graphics/pango/FontPlatformDataPango.cpp
131       platform/graphics/pango/GlyphPageTreeNodePango.cpp
132       platform/graphics/pango/SimpleFontDataPango.cpp
133       platform/graphics/pango/PangoUtilities.cpp
134     )
135     LIST(APPEND WebCore_LIBRARIES
136       ${Pango_LIBRARY}
137       ${Pango_Cairo_LIBRARY}
138     )
139   ENDIF ()
140 ENDIF ()
141
142 IF (WTF_USE_SOUP)
143   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
144     "${WEBCORE_DIR}/platform/network/soup"
145     "${WEBCORE_DIR}/platform/network/soup/cache"
146     "${WEBCORE_DIR}/platform/network/soup/cache/webkit"
147   )
148   LIST(APPEND WebCore_SOURCES
149     platform/network/soup/CookieJarSoup.cpp
150     platform/network/soup/CredentialStorageSoup.cpp
151     platform/network/soup/GOwnPtrSoup.cpp
152     platform/network/soup/ProxyServerSoup.cpp
153     platform/network/soup/ResourceHandleSoup.cpp
154     platform/network/soup/ResourceRequestSoup.cpp
155     platform/network/soup/ResourceResponseSoup.cpp
156     platform/network/soup/SocketStreamHandleSoup.cpp
157     platform/network/soup/SoupURIUtils.cpp
158   )
159 ENDIF ()
160
161 IF (WTF_USE_CURL)
162   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
163     "${WEBCORE_DIR}/platform/network/curl"
164   )
165   LIST(APPEND WebCore_SOURCES
166     platform/network/curl/CookieJarCurl.cpp
167     platform/network/curl/CredentialStorageCurl.cpp
168     platform/network/curl/DNSCurl.cpp
169     platform/network/curl/FormDataStreamCurl.cpp
170     platform/network/curl/ResourceHandleCurl.cpp
171     platform/network/curl/ResourceHandleManager.cpp
172     platform/network/curl/SocketStreamHandleCurl.cpp
173   )
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 IF (ENABLE_GEOLOCATION)
186   LIST(APPEND WebCore_SOURCES
187     platform/efl/GeolocationServiceEfl.cpp
188   )
189 ENDIF()
190
191 IF (ENABLE_VIDEO)
192   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
193     "${WEBCORE_DIR}/platform/graphics/gstreamer"
194   )
195   LIST(APPEND WebCore_SOURCES
196     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
197     platform/graphics/gstreamer/GStreamerGWorld.cpp
198     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
199     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
200     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
201     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
202     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
203   )
204 ENDIF ()
205
206 LIST(APPEND WebCore_LIBRARIES
207   ${Cairo_LIBRARIES}
208   ${ECORE_X_LIBRARIES}
209   ${EFLDEPS_LIBRARIES}
210   ${EVAS_LIBRARIES}
211   ${FREETYPE_LIBRARIES}
212   ${ICU_LIBRARIES}
213   ${LIBXML2_LIBRARIES}
214   ${LIBXSLT_LIBRARIES}
215   ${SQLITE_LIBRARIES}
216 )
217
218 IF (WTF_USE_SOUP)
219   LIST(APPEND WebCore_LIBRARIES
220     ${LIBSOUP24_LIBRARIES}
221   )
222 ENDIF ()
223
224 IF (WTF_USE_CURL)
225   LIST(APPEND WebCore_LIBRARIES
226     ${CURL_LIBRARIES}
227   )
228 ENDIF ()
229
230 IF (ENABLE_VIDEO)
231   LIST(APPEND WebCore_LIBRARIES
232     ${GStreamer-App_LIBRARIES}
233     ${GStreamer-Interfaces_LIBRARIES}
234     ${GStreamer-Pbutils_LIBRARIES}
235     ${GStreamer-Video_LIBRARIES}
236   )
237 ENDIF ()
238
239 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
240   ${Cairo_INCLUDE_DIRS}
241   ${ECORE_X_INCLUDE_DIRS}
242   ${EFLDEPS_INCLUDE_DIRS}
243   ${EVAS_INCLUDE_DIRS}
244   ${FREETYPE_INCLUDE_DIRS}
245   ${ICU_INCLUDE_DIRS}
246   ${LIBXML2_INCLUDE_DIR}
247   ${LIBXSLT_INCLUDE_DIR}
248   ${SQLITE_INCLUDE_DIR}
249 )
250
251 IF (ENABLE_VIDEO)
252   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
253     ${GStreamer-App_INCLUDE_DIRS}
254     ${GStreamer-Interfaces_INCLUDE_DIRS}
255     ${GStreamer-Pbutils_INCLUDE_DIRS}
256     ${GStreamer-Video_INCLUDE_DIRS}
257   )
258 ENDIF ()
259
260
261 IF (ENABLE_GLIB_SUPPORT)
262   LIST(APPEND WebCore_LIBRARIES
263     ${Glib_LIBRARIES}
264   )
265   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
266     ${Glib_INCLUDE_DIRS}
267   )
268 ENDIF ()
269
270 IF (WTF_USE_SOUP)
271   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
272     ${LIBSOUP24_INCLUDE_DIRS}
273   )
274 ENDIF ()
275
276 IF (WTF_USE_CURL)
277   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
278     ${CURL_INCLUDE_DIRS}
279   )
280 ENDIF ()
281
282 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1)