Move WebCore into Source
[WebKit-https.git] / Source / WebCore / CMakeListsEfl.txt
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   "${JAVASCRIPTCORE_DIR}/wtf/text"
9   "${WEBCORE_DIR}/platform/efl"
10   "${WEBCORE_DIR}/platform/text/efl"
11   "${WEBCORE_DIR}/platform/graphics/efl"
12   "${WEBCORE_DIR}/page/efl"
13   "${WEBCORE_DIR}/accessibility/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   page/efl/FrameEfl.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/FileChooserEfl.cpp
32   platform/efl/FileSystemEfl.cpp
33   platform/efl/KURLEfl.cpp
34   platform/efl/LanguageEfl.cpp
35   platform/efl/LocalizedStringsEfl.cpp
36   platform/efl/LoggingEfl.cpp
37   platform/efl/MIMETypeRegistryEfl.cpp
38   platform/efl/PasteboardEfl.cpp
39   platform/efl/PlatformKeyboardEventEfl.cpp
40   platform/efl/PlatformMouseEventEfl.cpp
41   platform/efl/PlatformScreenEfl.cpp
42   platform/efl/PlatformTouchEventEfl.cpp
43   platform/efl/PlatformTouchPointEfl.cpp
44   platform/efl/PlatformWheelEventEfl.cpp
45   platform/efl/PopupMenuEfl.cpp
46   platform/efl/RenderThemeEfl.cpp
47   platform/efl/ScrollViewEfl.cpp
48   platform/efl/ScrollbarEfl.cpp
49   platform/efl/ScrollbarThemeEfl.cpp
50   platform/efl/SearchPopupMenuEfl.cpp
51   platform/efl/SharedBufferEfl.cpp
52   platform/efl/SharedTimerEfl.cpp
53   platform/efl/SoundEfl.cpp
54   platform/efl/SystemTimeEfl.cpp
55   platform/efl/TemporaryLinkStubs.cpp
56   platform/efl/WidgetEfl.cpp
57   platform/graphics/efl/FontEfl.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/posix/FileSystemPOSIX.cpp
63   platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
64   plugins/PluginDataNone.cpp
65 )
66
67 IF (WTF_PLATFORM_CAIRO)
68   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
69     "${WEBCORE_DIR}/platform/graphics/cairo"
70   )
71   LIST(APPEND WebCore_SOURCES
72     platform/graphics/cairo/CairoUtilities.cpp
73     platform/graphics/cairo/ContextShadowCairo.cpp
74     platform/graphics/cairo/FontCairo.cpp
75     platform/graphics/cairo/GradientCairo.cpp
76     platform/graphics/cairo/GraphicsContextCairo.cpp
77     platform/graphics/cairo/ImageBufferCairo.cpp
78     platform/graphics/cairo/ImageCairo.cpp
79     platform/graphics/cairo/OwnPtrCairo.cpp
80     platform/graphics/cairo/PathCairo.cpp
81     platform/graphics/cairo/PatternCairo.cpp
82     platform/graphics/cairo/RefPtrCairo.cpp
83     platform/graphics/cairo/TransformationMatrixCairo.cpp
84
85     platform/image-decoders/cairo/ImageDecoderCairo.cpp
86   )
87
88   IF (WTF_USE_FREETYPE)
89     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
90       "${WEBCORE_DIR}/platform/graphics/freetype"
91     )
92     LIST(APPEND WebCore_SOURCES
93       platform/graphics/WOFFFileFormat.cpp
94       platform/graphics/freetype/FontCacheFreeType.cpp
95       platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
96       platform/graphics/freetype/FontPlatformDataFreeType.cpp
97       platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
98       platform/graphics/freetype/SimpleFontDataFreeType.cpp
99     )
100   ENDIF ()
101
102   IF (WTF_USE_PANGO)
103     LIST(APPEND WebCore_INCLUDE_DIRECTORIES
104       "${WEBCORE_DIR}/platform/graphics/pango"
105       ${Pango_INCLUDE_DIRS}
106     )
107     LIST(APPEND WebCore_SOURCES
108       platform/graphics/pango/FontCachePango.cpp
109       platform/graphics/pango/FontCustomPlatformDataPango.cpp
110       platform/graphics/pango/FontPlatformDataPango.cpp
111       platform/graphics/pango/GlyphPageTreeNodePango.cpp
112       platform/graphics/pango/SimpleFontDataPango.cpp
113     )
114     LIST(APPEND WebCore_LIBRARIES
115       ${Pango_LIBRARIES}
116     )
117   ENDIF ()
118 ENDIF ()
119
120 IF (WTF_USE_SOUP)
121   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
122     "${WEBCORE_DIR}/platform/network/soup"
123     "${WEBCORE_DIR}/platform/network/soup/cache"
124     "${WEBCORE_DIR}/platform/network/soup/cache/webkit"
125   )
126   LIST(APPEND WebCore_SOURCES
127     platform/network/soup/CookieJarSoup.cpp
128     platform/network/soup/GOwnPtrSoup.cpp
129     platform/network/soup/ResourceHandleSoup.cpp
130     platform/network/soup/ResourceRequestSoup.cpp
131     platform/network/soup/ResourceResponseSoup.cpp
132     platform/network/soup/SocketStreamHandleSoup.cpp
133     platform/network/soup/SoupURIUtils.cpp
134
135     platform/network/soup/cache/soup-directory-input-stream.c
136     platform/network/soup/cache/soup-http-input-stream.c
137     platform/network/soup/cache/soup-request-data.c
138     platform/network/soup/cache/soup-request-file.c
139     platform/network/soup/cache/soup-request-http.c
140     platform/network/soup/cache/soup-request.c
141     platform/network/soup/cache/soup-requester.c
142
143     platform/network/soup/cache/webkit/soup-cache.c
144   )
145 ENDIF ()
146
147 IF (WTF_USE_CURL)
148   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
149     "${WEBCORE_DIR}/platform/network/curl"
150   )
151   LIST(APPEND WebCore_SOURCES
152     platform/network/curl/CookieJarCurl.cpp
153     platform/network/curl/DNSCurl.cpp
154     platform/network/curl/FormDataStreamCurl.cpp
155     platform/network/curl/ResourceHandleCurl.cpp
156     platform/network/curl/ResourceHandleManager.cpp
157     platform/network/curl/SocketStreamHandleCurl.cpp
158   )
159 ENDIF ()
160
161 IF (WTF_USE_ICU_UNICODE)
162   LIST(APPEND WebCore_SOURCES
163     editing/SmartReplaceICU.cpp
164     platform/text/TextEncodingDetectorICU.cpp
165     platform/text/TextBreakIteratorICU.cpp
166     platform/text/TextCodecICU.cpp
167   )
168 ENDIF ()
169
170 IF (ENABLE_VIDEO)
171   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
172     "${WEBCORE_DIR}/platform/graphics/gstreamer"
173   )
174   LIST(APPEND WebCore_SOURCES
175     platform/graphics/gstreamer/GOwnPtrGStreamer.cpp
176     platform/graphics/gstreamer/GStreamerGWorld.cpp
177     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
178     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
179     platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
180     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
181     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
182   )
183 ENDIF ()
184
185 LIST(APPEND WebCore_LIBRARIES
186   ${Cairo_LIBRARIES}
187   ${ECORE_X_LIBRARIES}
188   ${EFLDEPS_LIBRARIES}
189   ${EVAS_LIBRARIES}
190   ${Freetype_LIBRARIES}
191   ${ICU_LIBRARIES}
192   ${LIBXML2_LIBRARIES}
193   ${LIBXSLT_LIBRARIES}
194   ${SQLITE_LIBRARIES}
195 )
196
197 IF (WTF_USE_SOUP)
198   LIST(APPEND WebCore_LIBRARIES
199     ${LIBSOUP24_LIBRARIES}
200   )
201 ENDIF ()
202
203 IF (WTF_USE_CURL)
204   LIST(APPEND WebCore_LIBRARIES
205     ${CURL_LIBRARIES}
206   )
207 ENDIF ()
208
209 IF (ENABLE_VIDEO)
210   LIST(APPEND WebCore_LIBRARIES
211     ${GStreamer-App_LIBRARIES}
212     ${GStreamer-Interfaces_LIBRARIES}
213     ${GStreamer-Pbutils_LIBRARIES}
214     ${GStreamer-Video_LIBRARIES}
215   )
216 ENDIF ()
217
218 LIST(APPEND WebCore_INCLUDE_DIRECTORIES
219   ${Cairo_INCLUDE_DIRS}
220   ${ECORE_X_INCLUDE_DIRS}
221   ${EFLDEPS_INCLUDE_DIRS}
222   ${EVAS_INCLUDE_DIRS}
223   ${Freetype_INCLUDE_DIRS}
224   ${ICU_INCLUDE_DIRS}
225   ${LIBXML2_INCLUDE_DIR}
226   ${LIBXSLT_INCLUDE_DIRS}
227   ${SQLITE_INCLUDE_DIRS}
228 )
229
230 IF (ENABLE_VIDEO)
231   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
232     ${GStreamer-App_INCLUDE_DIRS}
233     ${GStreamer-Interfaces_INCLUDE_DIRS}
234     ${GStreamer-Pbutils_INCLUDE_DIRS}
235     ${GStreamer-Video_INCLUDE_DIRS}
236   )
237 ENDIF ()
238
239
240 IF (ENABLE_GLIB_SUPPORT)
241   LIST(APPEND WebCore_LIBRARIES
242     ${GDK_LIBRARIES}
243     ${Glib_LIBRARIES}
244   )
245   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
246     ${GDK_INCLUDE_DIRS}
247     ${Glib_INCLUDE_DIRS}
248   )
249 ENDIF ()
250
251 IF (WTF_USE_SOUP)
252   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
253     ${LIBSOUP24_INCLUDE_DIRS}
254   )
255 ENDIF ()
256
257 IF (WTF_USE_CURL)
258   LIST(APPEND WebCore_INCLUDE_DIRECTORIES
259     ${CURL_INCLUDE_DIRS}
260   )
261 ENDIF ()
262
263 ADD_DEFINITIONS(-DWTF_USE_CROSS_PLATFORM_CONTEXT_MENUS=1)