1 list(APPEND WebCore_INCLUDE_DIRECTORIES
2 "${WEBCORE_DIR}/editing/atk"
3 "${WEBCORE_DIR}/page/efl"
4 "${WEBCORE_DIR}/page/scrolling/coordinatedgraphics"
5 "${WEBCORE_DIR}/platform/cairo"
6 "${WEBCORE_DIR}/platform/efl"
7 "${WEBCORE_DIR}/platform/geoclue"
8 "${WEBCORE_DIR}/platform/graphics/cairo"
9 "${WEBCORE_DIR}/platform/graphics/efl"
10 "${WEBCORE_DIR}/platform/graphics/freetype"
11 "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
12 "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
13 "${WEBCORE_DIR}/platform/graphics/opengl"
14 "${WEBCORE_DIR}/platform/graphics/opentype"
15 "${WEBCORE_DIR}/platform/graphics/surfaces"
16 "${WEBCORE_DIR}/platform/graphics/surfaces/efl"
17 "${WEBCORE_DIR}/platform/graphics/surfaces/glx"
18 "${WEBCORE_DIR}/platform/graphics/texmap"
19 "${WEBCORE_DIR}/platform/graphics/texmap/coordinated"
20 "${WEBCORE_DIR}/platform/linux"
21 "${WEBCORE_DIR}/platform/mediastream/gstreamer"
22 "${WEBCORE_DIR}/platform/mock/mediasource"
23 "${WEBCORE_DIR}/platform/network/soup"
24 "${WEBCORE_DIR}/platform/text/efl"
25 "${WEBCORE_DIR}/plugins/efl"
28 list(APPEND WebCore_SOURCES
29 accessibility/atk/AXObjectCacheAtk.cpp
30 accessibility/atk/AccessibilityObjectAtk.cpp
31 accessibility/atk/WebKitAccessibleHyperlink.cpp
32 accessibility/atk/WebKitAccessibleInterfaceAction.cpp
33 accessibility/atk/WebKitAccessibleInterfaceComponent.cpp
34 accessibility/atk/WebKitAccessibleInterfaceDocument.cpp
35 accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp
36 accessibility/atk/WebKitAccessibleInterfaceHyperlinkImpl.cpp
37 accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp
38 accessibility/atk/WebKitAccessibleInterfaceImage.cpp
39 accessibility/atk/WebKitAccessibleInterfaceSelection.cpp
40 accessibility/atk/WebKitAccessibleInterfaceTable.cpp
41 accessibility/atk/WebKitAccessibleInterfaceTableCell.cpp
42 accessibility/atk/WebKitAccessibleInterfaceText.cpp
43 accessibility/atk/WebKitAccessibleInterfaceValue.cpp
44 accessibility/atk/WebKitAccessibleUtil.cpp
45 accessibility/atk/WebKitAccessibleWrapperAtk.cpp
47 editing/SmartReplace.cpp
49 editing/atk/FrameSelectionAtk.cpp
51 editing/efl/EditorEfl.cpp
53 html/shadow/MediaControlsApple.cpp
55 loader/soup/CachedRawResourceSoup.cpp
56 loader/soup/SubresourceLoaderSoup.cpp
58 page/efl/DragControllerEfl.cpp
59 page/efl/EventHandlerEfl.cpp
61 page/scrolling/AxisScrollSnapOffsets.cpp
63 page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp
64 page/scrolling/coordinatedgraphics/ScrollingStateNodeCoordinatedGraphics.cpp
65 page/scrolling/coordinatedgraphics/ScrollingStateScrollingNodeCoordinatedGraphics.cpp
67 platform/ContextMenuItemNone.cpp
68 platform/ContextMenuNone.cpp
71 platform/audio/efl/AudioBusEfl.cpp
73 platform/audio/gstreamer/AudioDestinationGStreamer.cpp
74 platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
75 platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp
76 platform/audio/gstreamer/FFTFrameGStreamer.cpp
77 platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
79 platform/efl/BatteryProviderEfl.cpp
80 platform/efl/CursorEfl.cpp
81 platform/efl/DragDataEfl.cpp
82 platform/efl/DragImageEfl.cpp
83 platform/efl/EflInspectorUtilities.cpp
84 platform/efl/EflKeyboardUtilities.cpp
85 platform/efl/EflScreenUtilities.cpp
86 platform/efl/ErrorsEfl.cpp
87 platform/efl/EventLoopEfl.cpp
88 platform/efl/FileSystemEfl.cpp
89 platform/efl/GamepadsEfl.cpp
90 platform/efl/LanguageEfl.cpp
91 platform/efl/LocalizedStringsEfl.cpp
92 platform/efl/LoggingEfl.cpp
93 platform/efl/MIMETypeRegistryEfl.cpp
94 platform/efl/PasteboardEfl.cpp
95 platform/efl/PlatformKeyboardEventEfl.cpp
96 platform/efl/PlatformMouseEventEfl.cpp
97 platform/efl/PlatformScreenEfl.cpp
98 platform/efl/PlatformWheelEventEfl.cpp
99 platform/efl/RenderThemeEfl.cpp
100 platform/efl/ScrollbarEfl.cpp
101 platform/efl/ScrollbarThemeEfl.cpp
102 platform/efl/SharedTimerEfl.cpp
103 platform/efl/SoundEfl.cpp
104 platform/efl/TemporaryLinkStubs.cpp
105 platform/efl/WidgetEfl.cpp
107 platform/geoclue/GeolocationProviderGeoclue1.cpp
108 platform/geoclue/GeolocationProviderGeoclue2.cpp
110 platform/graphics/ImageSource.cpp
111 platform/graphics/WOFFFileFormat.cpp
113 platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp
114 platform/graphics/cairo/BitmapImageCairo.cpp
115 platform/graphics/cairo/CairoUtilities.cpp
116 platform/graphics/cairo/FontCairo.cpp
117 platform/graphics/cairo/FontCairoHarfbuzzNG.cpp
118 platform/graphics/cairo/GradientCairo.cpp
119 platform/graphics/cairo/GraphicsContextCairo.cpp
120 platform/graphics/cairo/ImageBufferCairo.cpp
121 platform/graphics/cairo/ImageCairo.cpp
122 platform/graphics/cairo/IntRectCairo.cpp
123 platform/graphics/cairo/OwnPtrCairo.cpp
124 platform/graphics/cairo/PathCairo.cpp
125 platform/graphics/cairo/PatternCairo.cpp
126 platform/graphics/cairo/PlatformContextCairo.cpp
127 platform/graphics/cairo/PlatformPathCairo.cpp
128 platform/graphics/cairo/RefPtrCairo.cpp
129 platform/graphics/cairo/TransformationMatrixCairo.cpp
131 platform/graphics/efl/CairoUtilitiesEfl.cpp
132 platform/graphics/efl/EvasGLContext.cpp
133 platform/graphics/efl/EvasGLSurface.cpp
134 platform/graphics/efl/GraphicsContext3DEfl.cpp
135 platform/graphics/efl/GraphicsContext3DPrivate.cpp
136 platform/graphics/efl/IconEfl.cpp
137 platform/graphics/efl/ImageEfl.cpp
138 platform/graphics/efl/IntPointEfl.cpp
139 platform/graphics/efl/IntRectEfl.cpp
141 platform/graphics/freetype/FontCacheFreeType.cpp
142 platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
143 platform/graphics/freetype/FontPlatformDataFreeType.cpp
144 platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
145 platform/graphics/freetype/SimpleFontDataFreeType.cpp
147 platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp
148 platform/graphics/gstreamer/GRefPtrGStreamer.cpp
149 platform/graphics/gstreamer/GStreamerUtilities.cpp
150 platform/graphics/gstreamer/ImageGStreamerCairo.cpp
151 platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.cpp
152 platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
153 platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
154 platform/graphics/gstreamer/MediaSourceGStreamer.cpp
155 platform/graphics/gstreamer/SourceBufferPrivateGStreamer.cpp
156 platform/graphics/gstreamer/TextCombinerGStreamer.cpp
157 platform/graphics/gstreamer/TextSinkGStreamer.cpp
158 platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp
159 platform/graphics/gstreamer/VideoSinkGStreamer.cpp
160 platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp
161 platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp
162 platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
164 platform/graphics/harfbuzz/HarfBuzzFace.cpp
165 platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
166 platform/graphics/harfbuzz/HarfBuzzShaper.cpp
168 platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
169 platform/graphics/opengl/GLPlatformContext.cpp
170 platform/graphics/opengl/GLPlatformSurface.cpp
171 platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
172 platform/graphics/opengl/TemporaryOpenGLSetting.cpp
174 platform/graphics/opentype/OpenTypeVerticalData.cpp
176 platform/graphics/surfaces/GLTransportSurface.cpp
177 platform/graphics/surfaces/GraphicsSurface.cpp
179 platform/graphics/surfaces/efl/GraphicsSurfaceCommon.cpp
181 platform/graphics/surfaces/glx/X11Helper.cpp
183 platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
184 platform/graphics/texmap/TextureMapperGL.cpp
185 platform/graphics/texmap/TextureMapperShaderProgram.cpp
187 platform/graphics/texmap/coordinated/AreaAllocator.cpp
188 platform/graphics/texmap/coordinated/CompositingCoordinator.cpp
189 platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
190 platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp
191 platform/graphics/texmap/coordinated/CoordinatedSurface.cpp
192 platform/graphics/texmap/coordinated/CoordinatedTile.cpp
193 platform/graphics/texmap/coordinated/UpdateAtlas.cpp
195 platform/image-decoders/ImageDecoder.cpp
197 platform/image-decoders/bmp/BMPImageDecoder.cpp
198 platform/image-decoders/bmp/BMPImageReader.cpp
200 platform/image-decoders/cairo/ImageDecoderCairo.cpp
202 platform/image-decoders/gif/GIFImageDecoder.cpp
203 platform/image-decoders/gif/GIFImageReader.cpp
205 platform/image-decoders/ico/ICOImageDecoder.cpp
207 platform/image-decoders/jpeg/JPEGImageDecoder.cpp
209 platform/image-decoders/png/PNGImageDecoder.cpp
211 platform/image-decoders/webp/WEBPImageDecoder.cpp
213 platform/linux/GamepadDeviceLinux.cpp
214 platform/linux/MemoryPressureHandlerLinux.cpp
216 platform/mediastream/gstreamer/MediaStreamCenterGStreamer.cpp
218 platform/network/efl/NetworkStateNotifierEfl.cpp
220 platform/network/soup/AuthenticationChallengeSoup.cpp
221 platform/network/soup/CertificateInfo.cpp
222 platform/network/soup/CookieJarSoup.cpp
223 platform/network/soup/CookieStorageSoup.cpp
224 platform/network/soup/CredentialStorageSoup.cpp
225 platform/network/soup/DNSSoup.cpp
226 platform/network/soup/NetworkStorageSessionSoup.cpp
227 platform/network/soup/ProxyResolverSoup.cpp
228 platform/network/soup/ProxyServerSoup.cpp
229 platform/network/soup/ResourceErrorSoup.cpp
230 platform/network/soup/ResourceHandleSoup.cpp
231 platform/network/soup/ResourceRequestSoup.cpp
232 platform/network/soup/ResourceResponseSoup.cpp
233 platform/network/soup/SocketStreamHandleSoup.cpp
234 platform/network/soup/SoupNetworkSession.cpp
235 platform/network/soup/SynchronousLoaderClientSoup.cpp
237 platform/posix/FileSystemPOSIX.cpp
238 platform/posix/SharedBufferPOSIX.cpp
240 platform/soup/SharedBufferSoup.cpp
241 platform/soup/URLSoup.cpp
243 platform/text/LocaleICU.cpp
245 platform/text/efl/TextBreakIteratorInternalICUEfl.cpp
247 platform/text/enchant/TextCheckerEnchant.cpp
250 if (WTF_USE_GEOCLUE2)
251 list(APPEND WebCore_SOURCES
252 ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c
254 execute_process(COMMAND pkg-config --variable dbus_interface geoclue-2.0 OUTPUT_VARIABLE GEOCLUE_DBUS_INTERFACE)
256 OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.h
257 COMMAND gdbus-codegen --interface-prefix org.freedesktop.GeoClue2. --c-namespace Geoclue --generate-c-code ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface ${GEOCLUE_DBUS_INTERFACE}
261 if (ENABLE_GAMEPAD_DEPRECATED)
262 # FIXME: GAMEPAD_DEPRECATED is legacy implementation. Need to be removed.
263 list(REMOVE_ITEM WebCore_INCLUDE_DIRECTORIES
264 "${WEBCORE_DIR}/Modules/gamepad"
268 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
269 ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.css
272 set(WebCore_USER_AGENT_SCRIPTS
273 ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
274 ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
277 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/efl/RenderThemeEfl.cpp)
279 list(APPEND WebCore_LIBRARIES
281 ${ECORE_EVAS_LIBRARIES}
282 ${ECORE_FILE_LIBRARIES}
291 ${FONTCONFIG_LIBRARIES}
292 ${FREETYPE2_LIBRARIES}
294 ${GLIB_GIO_LIBRARIES}
295 ${GLIB_GOBJECT_LIBRARIES}
297 ${HARFBUZZ_LIBRARIES}
309 list(APPEND WebCore_INCLUDE_DIRECTORIES
310 ${CAIRO_INCLUDE_DIRS}
311 ${ECORE_INCLUDE_DIRS}
312 ${ECORE_EVAS_INCLUDE_DIRS}
313 ${ECORE_FILE_INCLUDE_DIRS}
314 ${ECORE_X_INCLUDE_DIRS}
319 ${ELDBUS_INCLUDE_DIRS}
321 ${FREETYPE2_INCLUDE_DIRS}
322 ${GEOCLUE_INCLUDE_DIRS}
323 ${GIO_UNIX_INCLUDE_DIRS}
324 ${LIBXML2_INCLUDE_DIR}
325 ${LIBXSLT_INCLUDE_DIR}
326 ${SQLITE_INCLUDE_DIR}
329 ${LIBSOUP_INCLUDE_DIRS}
331 ${HARFBUZZ_INCLUDE_DIRS}
334 if (ENABLE_MEDIA_STREAM)
335 list(APPEND WebCore_INCLUDE_DIRECTORIES
336 ${OPENWEBRTC_INCLUDE_DIRS}
338 list(APPEND WebCore_LIBRARIES
339 ${OPENWEBRTC_LIBRARIES}
343 if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
344 list(APPEND WebCore_INCLUDE_DIRECTORIES
345 "${WEBCORE_DIR}/platform/graphics/gstreamer"
347 ${GSTREAMER_INCLUDE_DIRS}
348 ${GSTREAMER_BASE_INCLUDE_DIRS}
349 ${GSTREAMER_APP_INCLUDE_DIRS}
350 ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
353 list(APPEND WebCore_LIBRARIES
354 ${GSTREAMER_APP_LIBRARIES}
355 ${GSTREAMER_BASE_LIBRARIES}
356 ${GSTREAMER_LIBRARIES}
357 ${GSTREAMER_PBUTILS_LIBRARIES}
358 ${GSTREAMER_AUDIO_LIBRARIES}
360 # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
361 set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
365 list(APPEND WebCore_INCLUDE_DIRECTORIES
366 ${GSTREAMER_TAG_INCLUDE_DIRS}
367 ${GSTREAMER_VIDEO_INCLUDE_DIRS}
369 list(APPEND WebCore_LIBRARIES
370 ${GSTREAMER_TAG_LIBRARIES}
371 ${GSTREAMER_VIDEO_LIBRARIES}
374 if (USE_GSTREAMER_MPEGTS)
375 list(APPEND WebCore_INCLUDE_DIRECTORIES
376 ${GSTREAMER_MPEGTS_INCLUDE_DIRS}
379 list(APPEND WebCore_LIBRARIES
380 ${GSTREAMER_MPEGTS_LIBRARIES}
386 list(APPEND WebCore_INCLUDE_DIRECTORIES
388 "${WEBCORE_DIR}/platform/graphics/surfaces/egl"
393 list(APPEND WebCore_SOURCES
394 platform/graphics/surfaces/egl/EGLConfigSelector.cpp
395 platform/graphics/surfaces/egl/EGLContext.cpp
396 platform/graphics/surfaces/egl/EGLHelper.cpp
397 platform/graphics/surfaces/egl/EGLSurface.cpp
398 platform/graphics/surfaces/egl/EGLXSurface.cpp
401 list(APPEND WebCore_SOURCES
402 platform/graphics/surfaces/glx/GLXContext.cpp
403 platform/graphics/surfaces/glx/GLXSurface.cpp
407 if (WTF_USE_OPENGL_ES_2)
408 list(APPEND WebCore_SOURCES
409 platform/graphics/opengl/Extensions3DOpenGLES.cpp
410 platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
413 list(APPEND WebCore_SOURCES
414 platform/graphics/OpenGLShims.cpp
416 platform/graphics/opengl/Extensions3DOpenGL.cpp
417 platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
422 list(APPEND WebCore_LIBRARIES
425 elseif (X11_Xcomposite_FOUND AND X11_Xrender_FOUND)
426 list(APPEND WebCore_LIBRARIES
427 ${X11_Xcomposite_LIB}
432 if (ENABLE_WEB_AUDIO)
433 list(APPEND WebCore_INCLUDE_DIRECTORIES
434 "${WEBCORE_DIR}/platform/audio/gstreamer"
436 ${GSTREAMER_AUDIO_INCLUDE_DIRS}
437 ${GSTREAMER_FFT_INCLUDE_DIRS}
439 list(APPEND WebCore_LIBRARIES
440 ${GSTREAMER_FFT_LIBRARIES}
442 set(WEB_AUDIO_DIR ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webaudio/resources)
443 file(GLOB WEB_AUDIO_DATA "${WEBCORE_DIR}/platform/audio/resources/*.wav")
444 install(FILES ${WEB_AUDIO_DATA} DESTINATION ${WEB_AUDIO_DIR})
445 add_definitions(-DUNINSTALLED_AUDIO_RESOURCES_DIR="${WEBCORE_DIR}/platform/audio/resources")
448 if (ENABLE_SPELLCHECK)
449 list(APPEND WebCore_INCLUDE_DIRECTORIES
450 ${ENCHANT_INCLUDE_DIRS}
452 list(APPEND WebCore_LIBRARIES
457 if (ENABLE_ACCESSIBILITY)
458 list(APPEND WebCore_INCLUDE_DIRECTORIES
459 "${WEBCORE_DIR}/accessibility/atk"
462 list(APPEND WebCore_LIBRARIES
467 if (ENABLE_SPEECH_SYNTHESIS)
468 list(APPEND WebCore_INCLUDE_DIRECTORIES
469 ${ESPEAK_INCLUDE_DIRS}
471 list(APPEND WebCore_LIBRARIES
474 list(APPEND WebCore_SOURCES
475 platform/efl/PlatformSpeechSynthesizerEfl.cpp
476 platform/efl/PlatformSpeechSynthesisProviderEfl.cpp
480 if (ENABLE_SUBTLE_CRYPTO)
481 list(APPEND WebCore_SOURCES
482 crypto/CryptoAlgorithm.cpp
483 crypto/CryptoAlgorithmDescriptionBuilder.cpp
484 crypto/CryptoAlgorithmRegistry.cpp
486 crypto/CryptoKeyPair.cpp
487 crypto/SubtleCrypto.cpp
488 crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
489 crypto/algorithms/CryptoAlgorithmAES_KW.cpp
490 crypto/algorithms/CryptoAlgorithmHMAC.cpp
491 crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
492 crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
493 crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
494 crypto/algorithms/CryptoAlgorithmSHA1.cpp
495 crypto/algorithms/CryptoAlgorithmSHA224.cpp
496 crypto/algorithms/CryptoAlgorithmSHA256.cpp
497 crypto/algorithms/CryptoAlgorithmSHA384.cpp
498 crypto/algorithms/CryptoAlgorithmSHA512.cpp
500 crypto/gnutls/CryptoAlgorithmRegistryGnuTLS.cpp
501 crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp
502 crypto/gnutls/CryptoAlgorithmAES_KWGnuTLS.cpp
503 crypto/gnutls/CryptoAlgorithmHMACGnuTLS.cpp
504 crypto/gnutls/CryptoAlgorithmRSAES_PKCS1_v1_5GnuTLS.cpp
505 crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp
506 crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp
507 crypto/gnutls/CryptoDigestGnuTLS.cpp
508 crypto/gnutls/CryptoKeyRSAGnuTLS.cpp
509 crypto/gnutls/SerializedCryptoKeyWrapGnuTLS.cpp
511 crypto/keys/CryptoKeyAES.cpp
512 crypto/keys/CryptoKeyDataOctetSequence.cpp
513 crypto/keys/CryptoKeyDataRSAComponents.cpp
514 crypto/keys/CryptoKeyHMAC.cpp
515 crypto/keys/CryptoKeySerializationRaw.cpp
518 list(APPEND WebCore_INCLUDE_DIRECTORIES
519 ${GNUTLS_INCLUDE_DIRS}
521 list(APPEND WebCore_LIBRARIES