Use #pragma once in WebCore
[WebKit-https.git] / Source / WebCore / PlatformEfl.cmake
1 include(platform/GStreamer.cmake)
2 include(platform/ImageDecoders.cmake)
3 include(platform/Linux.cmake)
4 include(platform/TextureMapper.cmake)
5
6 list(APPEND WebCore_INCLUDE_DIRECTORIES
7     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
8     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector"
9     "${JAVASCRIPTCORE_DIR}"
10     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
11     "${JAVASCRIPTCORE_DIR}/API"
12     "${JAVASCRIPTCORE_DIR}/assembler"
13     "${JAVASCRIPTCORE_DIR}/bytecode"
14     "${JAVASCRIPTCORE_DIR}/bytecompiler"
15     "${JAVASCRIPTCORE_DIR}/dfg"
16     "${JAVASCRIPTCORE_DIR}/disassembler"
17     "${JAVASCRIPTCORE_DIR}/domjit"
18     "${JAVASCRIPTCORE_DIR}/heap"
19     "${JAVASCRIPTCORE_DIR}/debugger"
20     "${JAVASCRIPTCORE_DIR}/interpreter"
21     "${JAVASCRIPTCORE_DIR}/jit"
22     "${JAVASCRIPTCORE_DIR}/llint"
23     "${JAVASCRIPTCORE_DIR}/parser"
24     "${JAVASCRIPTCORE_DIR}/profiler"
25     "${JAVASCRIPTCORE_DIR}/runtime"
26     "${JAVASCRIPTCORE_DIR}/yarr"
27     "${THIRDPARTY_DIR}/ANGLE/"
28     "${THIRDPARTY_DIR}/ANGLE/include/KHR"
29     "${WEBCORE_DIR}/editing/atk"
30     "${WEBCORE_DIR}/page/efl"
31     "${WEBCORE_DIR}/platform/cairo"
32     "${WEBCORE_DIR}/platform/efl"
33     "${WEBCORE_DIR}/platform/gamepad"
34     "${WEBCORE_DIR}/platform/gamepad/deprecated"
35     "${WEBCORE_DIR}/platform/gamepad/efl"
36     "${WEBCORE_DIR}/platform/geoclue"
37     "${WEBCORE_DIR}/platform/graphics/cairo"
38     "${WEBCORE_DIR}/platform/graphics/efl"
39     "${WEBCORE_DIR}/platform/graphics/freetype"
40     "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
41     "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
42     "${WEBCORE_DIR}/platform/graphics/opengl"
43     "${WEBCORE_DIR}/platform/graphics/opentype"
44     "${WEBCORE_DIR}/platform/graphics/surfaces"
45     "${WEBCORE_DIR}/platform/graphics/surfaces/efl"
46     "${WEBCORE_DIR}/platform/graphics/surfaces/glx"
47     "${WEBCORE_DIR}/platform/graphics/x11"
48     "${WEBCORE_DIR}/platform/mock/mediasource"
49     "${WEBCORE_DIR}/platform/network/soup"
50     "${WEBCORE_DIR}/platform/text/efl"
51     "${WEBCORE_DIR}/plugins/efl"
52     "${WTF_DIR}"
53     "${WTF_DIR}/wtf/efl"
54 )
55
56 list(APPEND WebCore_SOURCES
57     accessibility/atk/AXObjectCacheAtk.cpp
58     accessibility/atk/AccessibilityObjectAtk.cpp
59     accessibility/atk/WebKitAccessibleHyperlink.cpp
60     accessibility/atk/WebKitAccessibleInterfaceAction.cpp
61     accessibility/atk/WebKitAccessibleInterfaceComponent.cpp
62     accessibility/atk/WebKitAccessibleInterfaceDocument.cpp
63     accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp
64     accessibility/atk/WebKitAccessibleInterfaceHyperlinkImpl.cpp
65     accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp
66     accessibility/atk/WebKitAccessibleInterfaceImage.cpp
67     accessibility/atk/WebKitAccessibleInterfaceSelection.cpp
68     accessibility/atk/WebKitAccessibleInterfaceTable.cpp
69     accessibility/atk/WebKitAccessibleInterfaceTableCell.cpp
70     accessibility/atk/WebKitAccessibleInterfaceText.cpp
71     accessibility/atk/WebKitAccessibleInterfaceValue.cpp
72     accessibility/atk/WebKitAccessibleUtil.cpp
73     accessibility/atk/WebKitAccessibleWrapperAtk.cpp
74
75     editing/atk/FrameSelectionAtk.cpp
76
77     editing/efl/EditorEfl.cpp
78
79     html/shadow/MediaControlsApple.cpp
80
81     loader/soup/CachedRawResourceSoup.cpp
82     loader/soup/SubresourceLoaderSoup.cpp
83
84     page/efl/DragControllerEfl.cpp
85     page/efl/EventHandlerEfl.cpp
86
87     page/scrolling/AxisScrollSnapOffsets.cpp
88
89     platform/KillRingNone.cpp
90     platform/StaticPasteboard.cpp
91
92     platform/audio/efl/AudioBusEfl.cpp
93
94     platform/crypto/gcrypt/CryptoDigestGCrypt.cpp
95
96     platform/efl/CursorEfl.cpp
97     platform/efl/DragDataEfl.cpp
98     platform/efl/DragImageEfl.cpp
99     platform/efl/EflInspectorUtilities.cpp
100     platform/efl/EflKeyboardUtilities.cpp
101     platform/efl/EflScreenUtilities.cpp
102     platform/efl/ErrorsEfl.cpp
103     platform/efl/EventLoopEfl.cpp
104     platform/efl/FileSystemEfl.cpp
105     platform/efl/LocalizedStringsEfl.cpp
106     platform/efl/MIMETypeRegistryEfl.cpp
107     platform/efl/MainThreadSharedTimerEfl.cpp
108     platform/efl/PasteboardEfl.cpp
109     platform/efl/PlatformKeyboardEventEfl.cpp
110     platform/efl/PlatformMouseEventEfl.cpp
111     platform/efl/PlatformScreenEfl.cpp
112     platform/efl/PlatformWheelEventEfl.cpp
113     platform/efl/ScrollbarThemeEfl.cpp
114     platform/efl/SoundEfl.cpp
115     platform/efl/TemporaryLinkStubs.cpp
116     platform/efl/UserAgentEfl.cpp
117     platform/efl/WidgetEfl.cpp
118
119     platform/gamepad/efl/GamepadsEfl.cpp
120
121     platform/geoclue/GeolocationProviderGeoclue1.cpp
122     platform/geoclue/GeolocationProviderGeoclue2.cpp
123
124     platform/glib/KeyedDecoderGlib.cpp
125     platform/glib/KeyedEncoderGlib.cpp
126
127     platform/graphics/PlatformDisplay.cpp
128
129     platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp
130     platform/graphics/cairo/CairoUtilities.cpp
131     platform/graphics/cairo/FontCairo.cpp
132     platform/graphics/cairo/FontCairoHarfbuzzNG.cpp
133     platform/graphics/cairo/GradientCairo.cpp
134     platform/graphics/cairo/GraphicsContextCairo.cpp
135     platform/graphics/cairo/ImageBufferCairo.cpp
136     platform/graphics/cairo/ImageCairo.cpp
137     platform/graphics/cairo/IntRectCairo.cpp
138     platform/graphics/cairo/NativeImageCairo.cpp
139     platform/graphics/cairo/PathCairo.cpp
140     platform/graphics/cairo/PatternCairo.cpp
141     platform/graphics/cairo/PlatformContextCairo.cpp
142     platform/graphics/cairo/PlatformPathCairo.cpp
143     platform/graphics/cairo/RefPtrCairo.cpp
144     platform/graphics/cairo/TransformationMatrixCairo.cpp
145
146     platform/graphics/efl/CairoUtilitiesEfl.cpp
147     platform/graphics/efl/EvasGLContext.cpp
148     platform/graphics/efl/EvasGLSurface.cpp
149     platform/graphics/efl/GraphicsContext3DEfl.cpp
150     platform/graphics/efl/GraphicsContext3DPrivate.cpp
151     platform/graphics/efl/IconEfl.cpp
152     platform/graphics/efl/ImageBufferEfl.cpp
153     platform/graphics/efl/ImageEfl.cpp
154     platform/graphics/efl/IntPointEfl.cpp
155     platform/graphics/efl/IntRectEfl.cpp
156
157     platform/graphics/freetype/FontCacheFreeType.cpp
158     platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
159     platform/graphics/freetype/FontPlatformDataFreeType.cpp
160     platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
161     platform/graphics/freetype/SimpleFontDataFreeType.cpp
162
163     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
164
165     platform/graphics/harfbuzz/HarfBuzzFace.cpp
166     platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
167     platform/graphics/harfbuzz/HarfBuzzShaper.cpp
168
169     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
170     platform/graphics/opengl/GLPlatformContext.cpp
171     platform/graphics/opengl/GLPlatformSurface.cpp
172     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
173     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
174
175     platform/graphics/opentype/OpenTypeVerticalData.cpp
176
177     platform/graphics/surfaces/GLTransportSurface.cpp
178     platform/graphics/surfaces/GraphicsSurface.cpp
179
180     platform/graphics/surfaces/efl/GraphicsSurfaceCommon.cpp
181
182     platform/graphics/surfaces/glx/X11Helper.cpp
183
184     platform/graphics/x11/PlatformDisplayX11.cpp
185     platform/graphics/x11/XErrorTrapper.cpp
186     platform/graphics/x11/XUniqueResource.cpp
187
188     platform/image-decoders/cairo/ImageBackingStoreCairo.cpp
189     platform/image-encoders/JPEGImageEncoder.cpp
190
191     platform/network/efl/NetworkStateNotifierEfl.cpp
192
193     platform/network/soup/AuthenticationChallengeSoup.cpp
194     platform/network/soup/CertificateInfo.cpp
195     platform/network/soup/CookieJarSoup.cpp
196     platform/network/soup/CookieStorageSoup.cpp
197     platform/network/soup/CredentialStorageSoup.cpp
198     platform/network/soup/DNSSoup.cpp
199     platform/network/soup/GRefPtrSoup.cpp
200     platform/network/soup/NetworkStorageSessionSoup.cpp
201     platform/network/soup/ProxyServerSoup.cpp
202     platform/network/soup/ResourceErrorSoup.cpp
203     platform/network/soup/ResourceHandleSoup.cpp
204     platform/network/soup/ResourceRequestSoup.cpp
205     platform/network/soup/ResourceResponseSoup.cpp
206     platform/network/soup/SocketStreamHandleImplSoup.cpp
207     platform/network/soup/SoupNetworkSession.cpp
208     platform/network/soup/SynchronousLoaderClientSoup.cpp
209     platform/network/soup/WebKitSoupRequestGeneric.cpp
210
211     platform/posix/FileSystemPOSIX.cpp
212     platform/posix/SharedBufferPOSIX.cpp
213
214     platform/soup/PublicSuffixSoup.cpp
215     platform/soup/SharedBufferSoup.cpp
216     platform/soup/URLSoup.cpp
217
218     platform/text/Hyphenation.cpp
219     platform/text/LocaleICU.cpp
220
221     platform/text/enchant/TextCheckerEnchant.cpp
222
223     platform/text/hyphen/HyphenationLibHyphen.cpp
224
225     platform/unix/LoggingUnix.cpp
226
227     rendering/RenderThemeEfl.cpp
228 )
229
230 if (USE_GEOCLUE2)
231     list(APPEND WebCore_DERIVED_SOURCES
232         ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c
233     )
234     execute_process(COMMAND pkg-config --variable dbus_interface geoclue-2.0 OUTPUT_VARIABLE GEOCLUE_DBUS_INTERFACE)
235     add_custom_command(
236          OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.h
237          COMMAND gdbus-codegen --interface-prefix org.freedesktop.GeoClue2. --c-namespace Geoclue --generate-c-code ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface ${GEOCLUE_DBUS_INTERFACE}
238     )
239     # Geoclue2Interface.c generates unused-parameter build warning, it causes build error when using geoclue2 library.
240     set_source_files_properties(${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c PROPERTIES COMPILE_FLAGS -Wno-error)
241 endif ()
242
243 if (ENABLE_GAMEPAD_DEPRECATED)
244     # FIXME: GAMEPAD_DEPRECATED is legacy implementation. Need to be removed.
245     list(REMOVE_ITEM WebCore_INCLUDE_DIRECTORIES
246         "${WEBCORE_DIR}/Modules/gamepad"
247     )
248 endif ()
249
250 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
251     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.css
252 )
253
254 set(WebCore_USER_AGENT_SCRIPTS
255     ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
256     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
257 )
258
259 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/efl/RenderThemeEfl.cpp)
260
261 list(APPEND WebCore_LIBRARIES
262     ${CAIRO_LIBRARIES}
263     ${ECORE_EVAS_LIBRARIES}
264     ${ECORE_FILE_LIBRARIES}
265     ${ECORE_LIBRARIES}
266     ${ECORE_X_LIBRARIES}
267     ${EDJE_LIBRARIES}
268     ${EEZE_LIBRARIES}
269     ${EINA_LIBRARIES}
270     ${ELDBUS_LIBRARIES}
271     ${EO_LIBRARIES}
272     ${EVAS_LIBRARIES}
273     ${FONTCONFIG_LIBRARIES}
274     ${FREETYPE2_LIBRARIES}
275     ${GEOCLUE_LIBRARIES}
276     ${GLIB_GIO_LIBRARIES}
277     ${GLIB_GOBJECT_LIBRARIES}
278     ${GLIB_LIBRARIES}
279     ${HARFBUZZ_LIBRARIES}
280     ${LIBGCRYPT_LIBRARIES}
281     ${LIBSOUP_LIBRARIES}
282     ${LIBXML2_LIBRARIES}
283     ${LIBXSLT_LIBRARIES}
284     ${HYPHEN_LIBRARIES}
285     ${SQLITE_LIBRARIES}
286     ${X11_X11_LIB}
287     ${ZLIB_LIBRARIES}
288 )
289
290 list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
291     ${CAIRO_INCLUDE_DIRS}
292     ${ECORE_INCLUDE_DIRS}
293     ${ECORE_EVAS_INCLUDE_DIRS}
294     ${ECORE_FILE_INCLUDE_DIRS}
295     ${ECORE_X_INCLUDE_DIRS}
296     ${EO_INCLUDE_DIRS}
297     ${EDJE_INCLUDE_DIRS}
298     ${EEZE_INCLUDE_DIRS}
299     ${EINA_INCLUDE_DIRS}
300     ${ELDBUS_INCLUDE_DIRS}
301     ${EVAS_INCLUDE_DIRS}
302     ${FREETYPE2_INCLUDE_DIRS}
303     ${GEOCLUE_INCLUDE_DIRS}
304     ${GIO_UNIX_INCLUDE_DIRS}
305     ${LIBGCRYPT_INCLUDE_DIRS}
306     ${LIBXML2_INCLUDE_DIR}
307     ${LIBXSLT_INCLUDE_DIR}
308     ${SQLITE_INCLUDE_DIR}
309     ${GLIB_INCLUDE_DIRS}
310     ${LIBSOUP_INCLUDE_DIRS}
311     ${ZLIB_INCLUDE_DIRS}
312     ${HARFBUZZ_INCLUDE_DIRS}
313 )
314
315 if (USE_EGL)
316     list(APPEND WebCore_INCLUDE_DIRECTORIES
317         "${WEBCORE_DIR}/platform/graphics/surfaces/egl"
318     )
319 endif ()
320
321 if (USE_EGL)
322     list(APPEND WebCore_SOURCES
323         platform/graphics/surfaces/egl/EGLConfigSelector.cpp
324         platform/graphics/surfaces/egl/EGLContext.cpp
325         platform/graphics/surfaces/egl/EGLHelper.cpp
326         platform/graphics/surfaces/egl/EGLSurface.cpp
327         platform/graphics/surfaces/egl/EGLXSurface.cpp
328     )
329 else ()
330     list(APPEND WebCore_SOURCES
331         platform/graphics/surfaces/glx/GLXContext.cpp
332         platform/graphics/surfaces/glx/GLXSurface.cpp
333     )
334 endif ()
335
336 if (USE_OPENGL_ES_2)
337     list(APPEND WebCore_SOURCES
338         platform/graphics/opengl/Extensions3DOpenGLES.cpp
339         platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
340     )
341 else ()
342     list(APPEND WebCore_SOURCES
343         platform/graphics/OpenGLShims.cpp
344
345         platform/graphics/opengl/Extensions3DOpenGL.cpp
346         platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
347     )
348 endif ()
349
350 if (NOT USE_EGL AND X11_Xcomposite_FOUND AND X11_Xrender_FOUND)
351     list(APPEND WebCore_LIBRARIES
352         ${X11_Xcomposite_LIB}
353         ${X11_Xrender_LIB}
354     )
355 endif ()
356
357 if (ENABLE_WEB_AUDIO)
358     set(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
359     file(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
360     install(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
361     add_definitions(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
362 endif ()
363
364 if (ENABLE_SPELLCHECK)
365     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
366         ${ENCHANT_INCLUDE_DIRS}
367     )
368     list(APPEND WebCore_LIBRARIES
369         ${ENCHANT_LIBRARIES}
370     )
371 endif ()
372
373 if (ENABLE_ACCESSIBILITY)
374     list(APPEND WebCore_INCLUDE_DIRECTORIES
375         "${WEBCORE_DIR}/accessibility/atk"
376     )
377     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
378         ${ATK_INCLUDE_DIRS}
379     )
380     list(APPEND WebCore_LIBRARIES
381         ${ATK_LIBRARIES}
382     )
383 endif ()
384
385 if (ENABLE_SMOOTH_SCROLLING)
386     list(APPEND WebCore_SOURCES
387         platform/ScrollAnimationSmooth.cpp
388         platform/ScrollAnimatorSmooth.cpp
389     )
390 endif ()
391
392 if (ENABLE_SPEECH_SYNTHESIS)
393     list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
394         ${ESPEAK_INCLUDE_DIRS}
395     )
396     list(APPEND WebCore_LIBRARIES
397         ${ESPEAK_LIBRARIES}
398     )
399     list(APPEND WebCore_SOURCES
400         platform/efl/PlatformSpeechSynthesisProviderEfl.cpp
401         platform/efl/PlatformSpeechSynthesizerEfl.cpp
402     )
403 endif ()
404
405 if (ENABLE_SUBTLE_CRYPTO)
406     list(APPEND WebCore_SOURCES
407         crypto/CryptoAlgorithm.cpp
408         crypto/CryptoAlgorithmRegistry.cpp
409         crypto/CryptoKey.cpp
410         crypto/CryptoKeyPair.cpp
411         crypto/SubtleCrypto.cpp
412         crypto/WebKitSubtleCrypto.cpp
413
414         crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
415         crypto/algorithms/CryptoAlgorithmAES_KW.cpp
416         crypto/algorithms/CryptoAlgorithmHMAC.cpp
417         crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
418         crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
419         crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
420         crypto/algorithms/CryptoAlgorithmSHA1.cpp
421         crypto/algorithms/CryptoAlgorithmSHA224.cpp
422         crypto/algorithms/CryptoAlgorithmSHA256.cpp
423         crypto/algorithms/CryptoAlgorithmSHA384.cpp
424         crypto/algorithms/CryptoAlgorithmSHA512.cpp
425
426         crypto/gcrypt/CryptoAlgorithmHMACGCrypt.cpp
427
428         crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp
429         crypto/gnutls/CryptoAlgorithmAES_KWGnuTLS.cpp
430         crypto/gnutls/CryptoAlgorithmRSAES_PKCS1_v1_5GnuTLS.cpp
431         crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp
432         crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp
433         crypto/gnutls/CryptoAlgorithmRegistryGnuTLS.cpp
434         crypto/gnutls/CryptoKeyRSAGnuTLS.cpp
435         crypto/gnutls/SerializedCryptoKeyWrapGnuTLS.cpp
436
437         crypto/keys/CryptoKeyAES.cpp
438         crypto/keys/CryptoKeyDataOctetSequence.cpp
439         crypto/keys/CryptoKeyDataRSAComponents.cpp
440         crypto/keys/CryptoKeyHMAC.cpp
441         crypto/keys/CryptoKeyRSA.cpp
442         crypto/keys/CryptoKeySerializationRaw.cpp
443     )
444 endif ()
445
446 if (DEVELOPER_MODE)
447     if (USE_LIBHYPHEN AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/WebKitBuild/DependenciesEFL)
448         add_definitions(-DTEST_HYPHENATAION_PATH=\"${CMAKE_SOURCE_DIR}/WebKitBuild/DependenciesEFL/Root/webkitgtk-test-dicts\")
449     endif ()
450 endif ()