[TexMap] Seperate BitmapTexture related classes implementations from TextureMapper
[WebKit-https.git] / Source / WebCore / PlatformGTK.cmake
1 list(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${WEBCORE_DIR}/accessibility/atk"
3     "${WEBCORE_DIR}/editing/atk"
4     "${WEBCORE_DIR}/page/gtk"
5     "${WEBCORE_DIR}/platform/cairo"
6     "${WEBCORE_DIR}/platform/geoclue"
7     "${WEBCORE_DIR}/platform/gtk"
8     "${WEBCORE_DIR}/platform/graphics/cairo"
9     "${WEBCORE_DIR}/platform/graphics/egl"
10     "${WEBCORE_DIR}/platform/graphics/glx"
11     "${WEBCORE_DIR}/platform/graphics/gtk"
12     "${WEBCORE_DIR}/platform/graphics/freetype"
13     "${WEBCORE_DIR}/platform/graphics/harfbuzz/"
14     "${WEBCORE_DIR}/platform/graphics/harfbuzz/ng"
15     "${WEBCORE_DIR}/platform/graphics/opengl"
16     "${WEBCORE_DIR}/platform/graphics/opentype"
17     "${WEBCORE_DIR}/platform/graphics/wayland"
18     "${WEBCORE_DIR}/platform/linux"
19     "${WEBCORE_DIR}/platform/mediastream/openwebrtc"
20     "${WEBCORE_DIR}/platform/mock/mediasource"
21     "${WEBCORE_DIR}/platform/network/gtk"
22     "${WEBCORE_DIR}/platform/network/soup"
23     "${WEBCORE_DIR}/platform/text/gtk"
24     "${WEBCORE_DIR}/platform/text/icu"
25 )
26
27 list(APPEND WebCore_SOURCES
28     accessibility/atk/AXObjectCacheAtk.cpp
29     accessibility/atk/AccessibilityObjectAtk.cpp
30     accessibility/atk/WebKitAccessibleHyperlink.cpp
31     accessibility/atk/WebKitAccessibleInterfaceAction.cpp
32     accessibility/atk/WebKitAccessibleInterfaceComponent.cpp
33     accessibility/atk/WebKitAccessibleInterfaceDocument.cpp
34     accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp
35     accessibility/atk/WebKitAccessibleInterfaceHyperlinkImpl.cpp
36     accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp
37     accessibility/atk/WebKitAccessibleInterfaceImage.cpp
38     accessibility/atk/WebKitAccessibleInterfaceSelection.cpp
39     accessibility/atk/WebKitAccessibleInterfaceTable.cpp
40     accessibility/atk/WebKitAccessibleInterfaceTableCell.cpp
41     accessibility/atk/WebKitAccessibleInterfaceText.cpp
42     accessibility/atk/WebKitAccessibleInterfaceValue.cpp
43     accessibility/atk/WebKitAccessibleUtil.cpp
44     accessibility/atk/WebKitAccessibleWrapperAtk.cpp
45
46     editing/atk/FrameSelectionAtk.cpp
47     editing/SmartReplace.cpp
48
49     loader/soup/CachedRawResourceSoup.cpp
50     loader/soup/SubresourceLoaderSoup.cpp
51
52     platform/PlatformStrategies.cpp
53
54     platform/audio/gtk/AudioBusGtk.cpp
55
56     platform/audio/gstreamer/AudioDestinationGStreamer.cpp
57     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp
58     platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp
59     platform/audio/gstreamer/FFTFrameGStreamer.cpp
60     platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp
61
62     platform/geoclue/GeolocationProviderGeoclue1.cpp
63     platform/geoclue/GeolocationProviderGeoclue2.cpp
64
65     platform/graphics/GraphicsContext3DPrivate.cpp
66     platform/graphics/ImageSource.cpp
67     platform/graphics/WOFFFileFormat.cpp
68
69     platform/graphics/cairo/BackingStoreBackendCairoImpl.cpp
70     platform/graphics/cairo/BackingStoreBackendCairoX11.cpp
71     platform/graphics/cairo/BitmapImageCairo.cpp
72     platform/graphics/cairo/CairoUtilities.cpp
73     platform/graphics/cairo/FloatRectCairo.cpp
74     platform/graphics/cairo/FontCairo.cpp
75     platform/graphics/cairo/FontCairoHarfbuzzNG.cpp
76     platform/graphics/cairo/GradientCairo.cpp
77     platform/graphics/cairo/GraphicsContext3DCairo.cpp
78     platform/graphics/cairo/GraphicsContextCairo.cpp
79     platform/graphics/cairo/ImageBufferCairo.cpp
80     platform/graphics/cairo/ImageCairo.cpp
81     platform/graphics/cairo/IntRectCairo.cpp
82     platform/graphics/cairo/OwnPtrCairo.cpp
83     platform/graphics/cairo/PathCairo.cpp
84     platform/graphics/cairo/PatternCairo.cpp
85     platform/graphics/cairo/PlatformContextCairo.cpp
86     platform/graphics/cairo/PlatformPathCairo.cpp
87     platform/graphics/cairo/RefPtrCairo.cpp
88     platform/graphics/cairo/TransformationMatrixCairo.cpp
89
90     platform/graphics/freetype/FontCacheFreeType.cpp
91     platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
92     platform/graphics/freetype/GlyphPageTreeNodeFreeType.cpp
93     platform/graphics/freetype/SimpleFontDataFreeType.cpp
94
95     platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp
96     platform/graphics/gstreamer/GRefPtrGStreamer.cpp
97     platform/graphics/gstreamer/GStreamerUtilities.cpp
98     platform/graphics/gstreamer/ImageGStreamerCairo.cpp
99     platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.cpp
100     platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
101     platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
102     platform/graphics/gstreamer/MediaSourceGStreamer.cpp
103     platform/graphics/gstreamer/SourceBufferPrivateGStreamer.cpp
104     platform/graphics/gstreamer/TextCombinerGStreamer.cpp
105     platform/graphics/gstreamer/TextSinkGStreamer.cpp
106     platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp
107     platform/graphics/gstreamer/VideoSinkGStreamer.cpp
108     platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp
109     platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp
110     platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
111
112     platform/graphics/harfbuzz/HarfBuzzFace.cpp
113     platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp
114     platform/graphics/harfbuzz/HarfBuzzShaper.cpp
115
116     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
117     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
118     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
119
120     platform/graphics/opentype/OpenTypeVerticalData.cpp
121
122     platform/gtk/ErrorsGtk.cpp
123     platform/gtk/EventLoopGtk.cpp
124     platform/gtk/FileSystemGtk.cpp
125     platform/gtk/GamepadsGtk.cpp
126     platform/gtk/LanguageGtk.cpp
127     platform/gtk/LoggingGtk.cpp
128     platform/gtk/MIMETypeRegistryGtk.cpp
129     platform/gtk/SharedBufferGtk.cpp
130     platform/gtk/SharedTimerGtk.cpp
131     platform/gtk/TemporaryLinkStubs.cpp
132     platform/gtk/UserAgentGtk.cpp
133
134     platform/image-decoders/ImageDecoder.cpp
135
136     platform/image-decoders/cairo/ImageDecoderCairo.cpp
137
138     platform/image-decoders/gif/GIFImageDecoder.cpp
139     platform/image-decoders/gif/GIFImageReader.cpp
140
141     platform/image-decoders/ico/ICOImageDecoder.cpp
142
143     platform/image-decoders/jpeg/JPEGImageDecoder.cpp
144
145     platform/image-decoders/bmp/BMPImageDecoder.cpp
146     platform/image-decoders/bmp/BMPImageReader.cpp
147
148     platform/image-decoders/png/PNGImageDecoder.cpp
149
150     platform/image-decoders/webp/WEBPImageDecoder.cpp
151
152     platform/linux/GamepadDeviceLinux.cpp
153     platform/linux/MemoryPressureHandlerLinux.cpp
154
155     platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp
156     platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp
157
158     platform/network/soup/AuthenticationChallengeSoup.cpp
159     platform/network/soup/CertificateInfo.cpp
160     platform/network/soup/CookieJarSoup.cpp
161     platform/network/soup/CookieStorageSoup.cpp
162     platform/network/soup/CredentialStorageSoup.cpp
163     platform/network/soup/DNSSoup.cpp
164     platform/network/soup/NetworkStorageSessionSoup.cpp
165     platform/network/soup/ProxyServerSoup.cpp
166     platform/network/soup/ResourceErrorSoup.cpp
167     platform/network/soup/ResourceHandleSoup.cpp
168     platform/network/soup/ResourceRequestSoup.cpp
169     platform/network/soup/ResourceResponseSoup.cpp
170     platform/network/soup/SocketStreamHandleSoup.cpp
171     platform/network/soup/SoupNetworkSession.cpp
172     platform/network/soup/SynchronousLoaderClientSoup.cpp
173
174     platform/soup/SharedBufferSoup.cpp
175     platform/soup/URLSoup.cpp
176
177     platform/text/icu/UTextProvider.cpp
178     platform/text/icu/UTextProviderLatin1.cpp
179     platform/text/icu/UTextProviderUTF16.cpp
180     platform/text/LocaleICU.cpp
181     platform/text/TextCodecICU.cpp
182     platform/text/TextEncodingDetectorICU.cpp
183
184     platform/text/enchant/TextCheckerEnchant.cpp
185
186     platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp
187
188     platform/network/gtk/CredentialBackingStore.cpp
189 )
190
191 list(APPEND WebCorePlatformGTK_SOURCES
192     editing/gtk/EditorGtk.cpp
193
194     page/gtk/DragControllerGtk.cpp
195     page/gtk/EventHandlerGtk.cpp
196
197     platform/graphics/GLContext.cpp
198
199     platform/graphics/egl/GLContextEGL.cpp
200
201     platform/graphics/freetype/FontPlatformDataFreeType.cpp
202
203     platform/graphics/glx/GLContextGLX.cpp
204
205     platform/graphics/gtk/ColorGtk.cpp
206     platform/graphics/gtk/GdkCairoUtilities.cpp
207     platform/graphics/gtk/IconGtk.cpp
208     platform/graphics/gtk/ImageBufferGtk.cpp
209     platform/graphics/gtk/ImageGtk.cpp
210
211     platform/gtk/ContextMenuGtk.cpp
212     platform/gtk/ContextMenuItemGtk.cpp
213     platform/gtk/CursorGtk.cpp
214     platform/gtk/DataObjectGtk.cpp
215     platform/gtk/DragDataGtk.cpp
216     platform/gtk/DragIcon.cpp
217     platform/gtk/DragImageGtk.cpp
218     platform/gtk/GRefPtrGtk.cpp
219     platform/gtk/GtkUtilities.cpp
220     platform/gtk/GtkVersioning.c
221     platform/gtk/KeyBindingTranslator.cpp
222     platform/gtk/LocalizedStringsGtk.cpp
223     platform/gtk/PasteboardGtk.cpp
224     platform/gtk/PasteboardHelper.cpp
225     platform/gtk/PlatformKeyboardEventGtk.cpp
226     platform/gtk/PlatformMouseEventGtk.cpp
227     platform/gtk/PlatformScreenGtk.cpp
228     platform/gtk/PlatformWheelEventGtk.cpp
229     platform/gtk/ScrollbarThemeGtk.cpp
230     platform/gtk/SoundGtk.cpp
231     platform/gtk/WidgetGtk.cpp
232
233     rendering/RenderThemeGtk.cpp
234 )
235
236 if (WTF_USE_GEOCLUE2)
237     list(APPEND WebCore_SOURCES
238         ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c
239     )
240     execute_process(COMMAND pkg-config --variable dbus_interface geoclue-2.0 OUTPUT_VARIABLE GEOCLUE_DBUS_INTERFACE)
241     add_custom_command(
242          OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.c ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface.h
243          COMMAND gdbus-codegen --interface-prefix org.freedesktop.GeoClue2. --c-namespace Geoclue --generate-c-code ${DERIVED_SOURCES_WEBCORE_DIR}/Geoclue2Interface ${GEOCLUE_DBUS_INTERFACE}
244     )
245 endif ()
246
247 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
248     ${WEBCORE_DIR}/css/mediaControlsGtk.css
249 )
250
251 set(WebCore_USER_AGENT_SCRIPTS
252     ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
253     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
254     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsGtk.js
255 )
256
257 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/gtk/RenderThemeGtk.cpp)
258
259 list(APPEND WebCore_LIBRARIES
260     ${ATK_LIBRARIES}
261     ${CAIRO_LIBRARIES}
262     ${ENCHANT_LIBRARIES}
263     ${FONTCONFIG_LIBRARIES}
264     ${FREETYPE2_LIBRARIES}
265     ${GEOCLUE_LIBRARIES}
266     ${GLIB_GIO_LIBRARIES}
267     ${GLIB_GMODULE_LIBRARIES}
268     ${GLIB_GOBJECT_LIBRARIES}
269     ${GLIB_LIBRARIES}
270     ${GUDEV_LIBRARIES}
271     ${HARFBUZZ_LIBRARIES}
272     ${ICU_LIBRARIES}
273     ${JPEG_LIBRARIES}
274     ${LIBSECRET_LIBRARIES}
275     ${LIBSOUP_LIBRARIES}
276     ${LIBXML2_LIBRARIES}
277     ${LIBXSLT_LIBRARIES}
278     ${PNG_LIBRARIES}
279     ${SQLITE_LIBRARIES}
280     ${WEBP_LIBRARIES}
281     ${X11_X11_LIB}
282     ${X11_Xcomposite_LIB}
283     ${X11_Xdamage_LIB}
284     ${X11_Xrender_LIB}
285     ${X11_Xt_LIB}
286     ${ZLIB_LIBRARIES}
287 )
288
289 list(APPEND WebCore_INCLUDE_DIRECTORIES
290     ${ATK_INCLUDE_DIRS}
291     ${CAIRO_INCLUDE_DIRS}
292     ${ENCHANT_INCLUDE_DIRS}
293     ${FREETYPE2_INCLUDE_DIRS}
294     ${GEOCLUE_INCLUDE_DIRS}
295     ${GIO_UNIX_INCLUDE_DIRS}
296     ${GLIB_INCLUDE_DIRS}
297     ${GUDEV_INCLUDE_DIRS}
298     ${HARFBUZZ_INCLUDE_DIRS}
299     ${ICU_INCLUDE_DIRS}
300     ${LIBSECRET_INCLUDE_DIRS}
301     ${LIBSOUP_INCLUDE_DIRS}
302     ${LIBXML2_INCLUDE_DIR}
303     ${LIBXSLT_INCLUDE_DIR}
304     ${SQLITE_INCLUDE_DIR}
305     ${WEBP_INCLUDE_DIRS}
306     ${ZLIB_INCLUDE_DIRS}
307 )
308
309 if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
310     list(APPEND WebCore_INCLUDE_DIRECTORIES
311         ${WEBCORE_DIR}/platform/graphics/gstreamer
312         ${GSTREAMER_INCLUDE_DIRS}
313         ${GSTREAMER_BASE_INCLUDE_DIRS}
314         ${GSTREAMER_APP_INCLUDE_DIRS}
315         ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
316     )
317
318     list(APPEND WebCore_LIBRARIES
319         ${GSTREAMER_APP_LIBRARIES}
320         ${GSTREAMER_BASE_LIBRARIES}
321         ${GSTREAMER_LIBRARIES}
322         ${GSTREAMER_PBUTILS_LIBRARIES}
323         ${GSTREAMER_AUDIO_LIBRARIES}
324     )
325     # Avoiding a GLib deprecation warning due to GStreamer API using deprecated classes.
326     set_source_files_properties(platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp PROPERTIES COMPILE_DEFINITIONS "GLIB_DISABLE_DEPRECATION_WARNINGS=1")
327 endif ()
328
329 if (ENABLE_VIDEO)
330     list(APPEND WebCore_INCLUDE_DIRECTORIES
331         ${GSTREAMER_TAG_INCLUDE_DIRS}
332         ${GSTREAMER_VIDEO_INCLUDE_DIRS}
333     )
334     list(APPEND WebCore_LIBRARIES
335         ${GSTREAMER_TAG_LIBRARIES}
336         ${GSTREAMER_VIDEO_LIBRARIES}
337     )
338
339     if (USE_GSTREAMER_MPEGTS)
340         list(APPEND WebCore_INCLUDE_DIRECTORIES
341             ${GSTREAMER_MPEGTS_INCLUDE_DIRS}
342         )
343
344         list(APPEND WebCore_LIBRARIES
345             ${GSTREAMER_MPEGTS_LIBRARIES}
346         )
347     endif ()
348
349     if (USE_GSTREAMER_GL)
350         list(APPEND WebCore_INCLUDE_DIRECTORIES
351             ${GSTREAMER_GL_INCLUDE_DIRS}
352         )
353
354         list(APPEND WebCore_LIBRARIES
355             ${GSTREAMER_GL_LIBRARIES}
356         )
357     endif ()
358 endif ()
359
360 if (ENABLE_WEB_AUDIO)
361     list(APPEND WebCore_INCLUDE_DIRECTORIES
362         ${WEBCORE_DIR}/platform/audio/gstreamer
363         ${GSTREAMER_AUDIO_INCLUDE_DIRS}
364         ${GSTREAMER_FFT_INCLUDE_DIRS}
365     )
366     list(APPEND WebCore_LIBRARIES
367         ${GSTREAMER_FFT_LIBRARIES}
368     )
369 endif ()
370
371 if (ENABLE_MEDIA_STREAM)
372     list(APPEND WebCore_INCLUDE_DIRECTORIES
373         ${OPENWEBRTC_INCLUDE_DIRS}
374     )
375     list(APPEND WebCore_LIBRARIES
376         ${OPENWEBRTC_LIBRARIES}
377     )
378 endif ()
379
380 if (ENABLE_TEXTURE_MAPPER)
381     list(APPEND WebCore_INCLUDE_DIRECTORIES
382         "${WEBCORE_DIR}/platform/graphics/texmap"
383     )
384     list(APPEND WebCore_SOURCES
385         platform/graphics/texmap/BitmapTexture.cpp
386         platform/graphics/texmap/BitmapTextureGL.cpp
387         platform/graphics/texmap/BitmapTextureImageBuffer.cpp
388         platform/graphics/texmap/BitmapTexturePool.cpp
389         platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
390         platform/graphics/texmap/TextureMapperGL.cpp
391         platform/graphics/texmap/TextureMapperImageBuffer.cpp
392         platform/graphics/texmap/TextureMapperShaderProgram.cpp
393     )
394 endif ()
395
396 if (ENABLE_THREADED_COMPOSITOR)
397     list(APPEND WebCore_INCLUDE_DIRECTORIES
398         "${WEBCORE_DIR}/page/scrolling/coordinatedgraphics"
399         "${WEBCORE_DIR}/platform/graphics/texmap/coordinated"
400         "${WEBCORE_DIR}/platform/graphics/texmap/threadedcompositor"
401     )
402     list(APPEND WebCore_SOURCES
403         page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp
404         page/scrolling/coordinatedgraphics/ScrollingStateNodeCoordinatedGraphics.cpp
405         page/scrolling/coordinatedgraphics/ScrollingStateScrollingNodeCoordinatedGraphics.cpp
406         page/scrolling/ScrollingStateStickyNode.cpp
407         page/scrolling/ScrollingThread.cpp
408         page/scrolling/ScrollingTreeNode.cpp
409         page/scrolling/ScrollingTreeScrollingNode.cpp
410         platform/graphics/TiledBackingStore.cpp
411         platform/graphics/texmap/coordinated/AreaAllocator.cpp
412         platform/graphics/texmap/coordinated/CompositingCoordinator.cpp
413         platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
414         platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp
415         platform/graphics/texmap/coordinated/CoordinatedSurface.cpp
416         platform/graphics/texmap/coordinated/CoordinatedTile.cpp
417         platform/graphics/texmap/coordinated/UpdateAtlas.cpp
418     )
419 endif ()
420
421 if (WTF_USE_EGL)
422     list(APPEND WebCore_LIBRARIES
423         ${EGL_LIBRARY}
424     )
425 endif ()
426
427 if (WTF_USE_OPENGL_ES_2)
428     list(APPEND WebCore_SOURCES
429         platform/graphics/opengl/Extensions3DOpenGLES.cpp
430         platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
431     )
432 endif ()
433
434 if (WTF_USE_OPENGL)
435     list(APPEND WebCore_SOURCES
436         platform/graphics/OpenGLShims.cpp
437
438         platform/graphics/opengl/Extensions3DOpenGL.cpp
439         platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
440     )
441 endif ()
442
443 if (ENABLE_PLUGIN_PROCESS_GTK2)
444     # WebKitPluginProcess2 needs a version of WebCore compiled against GTK+2, so we've isolated all the GTK+
445     # dependent files into a separate library which can be used to construct a GTK+2 WebCore
446     # for the plugin process.
447     add_library(WebCorePlatformGTK2 ${WebCore_LIBRARY_TYPE} ${WebCorePlatformGTK_SOURCES})
448     add_dependencies(WebCorePlatformGTK2 WebCore)
449     WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCorePlatformGTK2)
450     set_property(TARGET WebCorePlatformGTK2
451         APPEND
452         PROPERTY COMPILE_DEFINITIONS GTK_API_VERSION_2=1
453     )
454     set_property(
455         TARGET WebCorePlatformGTK2
456         APPEND
457         PROPERTY INCLUDE_DIRECTORIES
458             ${WebCore_INCLUDE_DIRECTORIES}
459             ${GTK2_INCLUDE_DIRS}
460             ${GDK2_INCLUDE_DIRS}
461     )
462     target_link_libraries(WebCorePlatformGTK2
463          ${WebCore_LIBRARIES}
464          ${GTK2_LIBRARIES}
465          ${GDK2_LIBRARIES}
466     )
467 endif ()
468
469 # Wayland protocol extension.
470 add_custom_command(
471     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/WebKitGtkWaylandClientProtocol.c
472     DEPENDS ${WEBCORE_DIR}/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml
473     COMMAND wayland-scanner server-header < ${WEBCORE_DIR}/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml > ${DERIVED_SOURCES_WEBCORE_DIR}/WebKitGtkWaylandServerProtocol.h
474     COMMAND wayland-scanner client-header < ${WEBCORE_DIR}/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml > ${DERIVED_SOURCES_WEBCORE_DIR}/WebKitGtkWaylandClientProtocol.h
475     COMMAND wayland-scanner code < ${WEBCORE_DIR}/platform/graphics/wayland/WebKitGtkWaylandClientProtocol.xml > ${DERIVED_SOURCES_WEBCORE_DIR}/WebKitGtkWaylandClientProtocol.c
476 )
477
478 if (ENABLE_WAYLAND_TARGET)
479     list(APPEND WebCorePlatformGTK_SOURCES
480         platform/graphics/wayland/WaylandDisplay.cpp
481         platform/graphics/wayland/WaylandEventSource.cpp
482         platform/graphics/wayland/WaylandSurface.cpp
483
484         ${DERIVED_SOURCES_WEBCORE_DIR}/WebKitGtkWaylandClientProtocol.c
485     )
486
487     list(APPEND WebCore_INCLUDE_DIRECTORIES
488         ${WAYLAND_INCLUDE_DIRECTORIES}
489     )
490     list(APPEND WebCore_LIBRARIES
491         ${WAYLAND_LIBRARIES}
492     )
493 endif ()
494
495 add_library(WebCorePlatformGTK ${WebCore_LIBRARY_TYPE} ${WebCorePlatformGTK_SOURCES})
496 add_dependencies(WebCorePlatformGTK WebCore)
497 WEBKIT_SET_EXTRA_COMPILER_FLAGS(WebCorePlatformGTK)
498 set_property(
499     TARGET WebCorePlatformGTK
500     APPEND
501     PROPERTY INCLUDE_DIRECTORIES
502         ${WebCore_INCLUDE_DIRECTORIES}
503         ${GTK_INCLUDE_DIRS}
504         ${GDK_INCLUDE_DIRS}
505 )
506 target_link_libraries(WebCorePlatformGTK
507     ${WebCore_LIBRARIES}
508     ${GTK_LIBRARIES}
509     ${GDK_LIBRARIES}
510 )
511
512 include_directories(
513     ${WebCore_INCLUDE_DIRECTORIES}
514     "${WEBCORE_DIR}/bindings/gobject/"
515     "${DERIVED_SOURCES_DIR}"
516     "${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}"
517 )
518
519 list(APPEND GObjectDOMBindings_SOURCES
520     bindings/gobject/ConvertToUTF8String.cpp
521     bindings/gobject/DOMObjectCache.cpp
522     bindings/gobject/GObjectEventListener.cpp
523     bindings/gobject/GObjectNodeFilterCondition.cpp
524     bindings/gobject/GObjectXPathNSResolver.cpp
525     bindings/gobject/WebKitDOMCustom.cpp
526     bindings/gobject/WebKitDOMDeprecated.cpp
527     bindings/gobject/WebKitDOMEventTarget.cpp
528     bindings/gobject/WebKitDOMHTMLPrivate.cpp
529     bindings/gobject/WebKitDOMNodeFilter.cpp
530     bindings/gobject/WebKitDOMObject.cpp
531     bindings/gobject/WebKitDOMPrivate.cpp
532     bindings/gobject/WebKitDOMXPathNSResolver.cpp
533     ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines.h
534     ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines-unstable.h
535     ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdom.h
536 )
537
538 list(APPEND GObjectDOMBindingsStable_IDL_FILES
539     css/CSSRule.idl
540     css/CSSRuleList.idl
541     css/CSSStyleDeclaration.idl
542     css/CSSStyleSheet.idl
543     css/CSSValue.idl
544     css/MediaList.idl
545     css/StyleSheet.idl
546     css/StyleSheetList.idl
547
548     dom/Attr.idl
549     dom/CDATASection.idl
550     dom/CharacterData.idl
551     dom/Comment.idl
552     dom/DOMImplementation.idl
553     dom/Document.idl
554     dom/DocumentFragment.idl
555     dom/DocumentType.idl
556     dom/Element.idl
557     dom/EntityReference.idl
558     dom/Event.idl
559     dom/KeyboardEvent.idl
560     dom/MouseEvent.idl
561     dom/NamedNodeMap.idl
562     dom/Node.idl
563     dom/NodeIterator.idl
564     dom/NodeList.idl
565     dom/ProcessingInstruction.idl
566     dom/Range.idl
567     dom/Text.idl
568     dom/TreeWalker.idl
569     dom/UIEvent.idl
570     dom/WheelEvent.idl
571
572     fileapi/Blob.idl
573     fileapi/File.idl
574     fileapi/FileList.idl
575
576     html/HTMLAnchorElement.idl
577     html/HTMLAppletElement.idl
578     html/HTMLAreaElement.idl
579     html/HTMLBRElement.idl
580     html/HTMLBaseElement.idl
581     html/HTMLBaseFontElement.idl
582     html/HTMLBodyElement.idl
583     html/HTMLButtonElement.idl
584     html/HTMLCanvasElement.idl
585     html/HTMLCollection.idl
586     html/HTMLDListElement.idl
587     html/HTMLDirectoryElement.idl
588     html/HTMLDivElement.idl
589     html/HTMLDocument.idl
590     html/HTMLElement.idl
591     html/HTMLEmbedElement.idl
592     html/HTMLFieldSetElement.idl
593     html/HTMLFontElement.idl
594     html/HTMLFormElement.idl
595     html/HTMLFrameElement.idl
596     html/HTMLFrameSetElement.idl
597     html/HTMLHRElement.idl
598     html/HTMLHeadElement.idl
599     html/HTMLHeadingElement.idl
600     html/HTMLHtmlElement.idl
601     html/HTMLIFrameElement.idl
602     html/HTMLImageElement.idl
603     html/HTMLInputElement.idl
604     html/HTMLLIElement.idl
605     html/HTMLLabelElement.idl
606     html/HTMLLegendElement.idl
607     html/HTMLLinkElement.idl
608     html/HTMLMapElement.idl
609     html/HTMLMarqueeElement.idl
610     html/HTMLMenuElement.idl
611     html/HTMLMetaElement.idl
612     html/HTMLModElement.idl
613     html/HTMLOListElement.idl
614     html/HTMLObjectElement.idl
615     html/HTMLOptGroupElement.idl
616     html/HTMLOptionElement.idl
617     html/HTMLOptionsCollection.idl
618     html/HTMLParagraphElement.idl
619     html/HTMLParamElement.idl
620     html/HTMLPreElement.idl
621     html/HTMLQuoteElement.idl
622     html/HTMLScriptElement.idl
623     html/HTMLSelectElement.idl
624     html/HTMLStyleElement.idl
625     html/HTMLTableCaptionElement.idl
626     html/HTMLTableCellElement.idl
627     html/HTMLTableColElement.idl
628     html/HTMLTableElement.idl
629     html/HTMLTableRowElement.idl
630     html/HTMLTableSectionElement.idl
631     html/HTMLTextAreaElement.idl
632     html/HTMLTitleElement.idl
633     html/HTMLUListElement.idl
634
635     page/DOMWindow.idl
636
637     xml/XPathExpression.idl
638     xml/XPathResult.idl
639 )
640
641 list(APPEND GObjectDOMBindingsUnstable_IDL_FILES
642     Modules/battery/BatteryManager.idl
643
644     Modules/gamepad/deprecated/Gamepad.idl
645     Modules/gamepad/deprecated/GamepadList.idl
646
647     Modules/geolocation/Geolocation.idl
648
649     Modules/mediasource/VideoPlaybackQuality.idl
650
651     Modules/quota/StorageInfo.idl
652     Modules/quota/StorageQuota.idl
653
654     Modules/speech/DOMWindowSpeechSynthesis.idl
655     Modules/speech/SpeechSynthesis.idl
656     Modules/speech/SpeechSynthesisEvent.idl
657     Modules/speech/SpeechSynthesisUtterance.idl
658     Modules/speech/SpeechSynthesisVoice.idl
659
660     Modules/webdatabase/Database.idl
661
662     css/DOMWindowCSS.idl
663     css/MediaQueryList.idl
664     css/StyleMedia.idl
665
666     dom/DOMNamedFlowCollection.idl
667     dom/DOMStringList.idl
668     dom/DOMStringMap.idl
669     dom/MessagePort.idl
670     dom/Touch.idl
671     dom/WebKitNamedFlow.idl
672
673     html/DOMSettableTokenList.idl
674     html/DOMTokenList.idl
675     html/HTMLDetailsElement.idl
676     html/HTMLKeygenElement.idl
677     html/HTMLMediaElement.idl
678     html/MediaController.idl
679     html/MediaError.idl
680     html/TimeRanges.idl
681     html/ValidityState.idl
682
683     loader/appcache/DOMApplicationCache.idl
684
685     page/BarProp.idl
686     page/DOMSecurityPolicy.idl
687     page/DOMSelection.idl
688     page/History.idl
689     page/Location.idl
690     page/Navigator.idl
691     page/Performance.idl
692     page/PerformanceEntry.idl
693     page/PerformanceEntryList.idl
694     page/PerformanceNavigation.idl
695     page/PerformanceTiming.idl
696     page/Screen.idl
697     page/UserMessageHandler.idl
698     page/UserMessageHandlersNamespace.idl
699     page/WebKitPoint.idl
700     page/WebKitNamespace.idl
701
702     plugins/DOMMimeType.idl
703     plugins/DOMMimeTypeArray.idl
704     plugins/DOMPlugin.idl
705     plugins/DOMPluginArray.idl
706
707     storage/Storage.idl
708 )
709
710 if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
711     list(APPEND GObjectDOMBindingsUnstable_IDL_FILES
712         html/HTMLAudioElement.idl
713         html/HTMLVideoElement.idl
714
715         html/track/AudioTrack.idl
716         html/track/AudioTrackList.idl
717         html/track/DataCue.idl
718         html/track/TextTrack.idl
719         html/track/TextTrackCue.idl
720         html/track/TextTrackCueList.idl
721         html/track/TextTrackList.idl
722         html/track/TrackEvent.idl
723         html/track/VTTCue.idl
724         html/track/VideoTrack.idl
725         html/track/VideoTrackList.idl
726     )
727 endif ()
728
729 if (ENABLE_QUOTA)
730     list(APPEND GObjectDOMBindingsUnstable_IDL_FILES
731         Modules/quota/DOMWindowQuota.idl
732         Modules/quota/NavigatorStorageQuota.idl
733         Modules/quota/StorageErrorCallback.idl
734         Modules/quota/StorageInfo.idl
735         Modules/quota/StorageQuota.idl
736         Modules/quota/StorageQuotaCallback.idl
737         Modules/quota/StorageUsageCallback.idl
738         Modules/quota/WorkerNavigatorStorageQuota.idl
739     )
740 endif ()
741
742 set(GObjectDOMBindings_STATIC_CLASS_LIST Custom Deprecated EventTarget NodeFilter Object XPathNSResolver)
743
744 set(GObjectDOMBindingsStable_CLASS_LIST ${GObjectDOMBindings_STATIC_CLASS_LIST})
745 set(GObjectDOMBindingsStable_INSTALLED_HEADERS
746      ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines.h
747      ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdom.h
748      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMCustom.h
749      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMDeprecated.h
750      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMEventTarget.h
751      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMNodeFilter.h
752      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMObject.h
753      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMXPathNSResolver.h
754 )
755
756 set(GObjectDOMBindingsUnstable_INSTALLED_HEADERS
757      ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines-unstable.h
758      ${WEBCORE_DIR}/bindings/gobject/WebKitDOMCustomUnstable.h
759 )
760
761 foreach (file ${GObjectDOMBindingsStable_IDL_FILES})
762     get_filename_component(classname ${file} NAME_WE)
763     list(APPEND GObjectDOMBindingsStable_CLASS_LIST ${classname})
764     list(APPEND GObjectDOMBindingsStable_INSTALLED_HEADERS ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/WebKitDOM${classname}.h)
765     list(APPEND GObjectDOMBindingsUnstable_INSTALLED_HEADERS ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/WebKitDOM${classname}Unstable.h)
766 endforeach ()
767
768 foreach (file ${GObjectDOMBindingsUnstable_IDL_FILES})
769     get_filename_component(classname ${file} NAME_WE)
770     list(APPEND GObjectDOMBindingsUnstable_CLASS_LIST ${classname})
771     list(APPEND GObjectDOMBindingsUnstable_INSTALLED_HEADERS ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/WebKitDOM${classname}.h)
772 endforeach ()
773
774 set(GOBJECT_DOM_BINDINGS_FEATURES_DEFINES "LANGUAGE_GOBJECT=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
775 string(REPLACE "ENABLE_INDEXED_DATABASE=1" "" GOBJECT_DOM_BINDINGS_FEATURES_DEFINES ${GOBJECT_DOM_BINDINGS_FEATURES_DEFINES})
776 string(REPLACE REGEX "ENABLE_SVG[A-Z_]+=1" "" GOBJECT_DOM_BINDINGS_FEATURES_DEFINES ${GOBJECT_DOM_BINDINGS_FEATURES_DEFINES})
777
778 file(MAKE_DIRECTORY ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR})
779
780 add_custom_command(
781     OUTPUT ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines.h
782     DEPENDS ${WEBCORE_DIR}/bindings/scripts/gobject-generate-headers.pl
783     COMMAND echo ${GObjectDOMBindingsStable_CLASS_LIST} | ${PERL_EXECUTABLE} ${WEBCORE_DIR}/bindings/scripts/gobject-generate-headers.pl defines > ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines.h
784 )
785
786 add_custom_command(
787     OUTPUT ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines-unstable.h
788     DEPENDS ${WEBCORE_DIR}/bindings/scripts/gobject-generate-headers.pl
789     COMMAND echo ${GObjectDOMBindingsUnstable_CLASS_LIST} | ${PERL_EXECUTABLE} ${WEBCORE_DIR}/bindings/scripts/gobject-generate-headers.pl defines-unstable > ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdomdefines-unstable.h
790 )
791
792 add_custom_command(
793     OUTPUT ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdom.h
794     DEPENDS ${WEBCORE_DIR}/bindings/scripts/gobject-generate-headers.pl
795     COMMAND echo ${GObjectDOMBindingsStable_CLASS_LIST} | ${PERL_EXECUTABLE} ${WEBCORE_DIR}/bindings/scripts/gobject-generate-headers.pl gdom > ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/webkitdom.h
796 )
797
798 # Some of the static headers are included by generated public headers with include <webkitdom/WebKitDOMFoo.h>.
799 # We need those headers in the derived sources to be in webkitdom directory.
800 set(GObjectDOMBindings_STATIC_HEADER_NAMES ${GObjectDOMBindings_STATIC_CLASS_LIST} CustomUnstable)
801 foreach (classname ${GObjectDOMBindings_STATIC_HEADER_NAMES})
802     add_custom_command(
803         OUTPUT ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/WebKitDOM${classname}.h
804         DEPENDS ${WEBCORE_DIR}/bindings/gobject/WebKitDOM${classname}.h
805         COMMAND ln -n -s -f ${WEBCORE_DIR}/bindings/gobject/WebKitDOM${classname}.h ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}
806     )
807     list(APPEND GObjectDOMBindings_STATIC_GENERATED_SOURCES ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/WebKitDOM${classname}.h)
808 endforeach ()
809
810 add_custom_target(fake-generated-webkitdom-headers
811     DEPENDS ${GObjectDOMBindings_STATIC_GENERATED_SOURCES}
812 )
813
814 set(GObjectDOMBindings_IDL_FILES ${GObjectDOMBindingsStable_IDL_FILES} ${GObjectDOMBindingsUnstable_IDL_FILES})
815 set(ADDITIONAL_BINDINGS_DEPENDENCIES
816     ${WEBCORE_DIR}/bindings/gobject/webkitdom.symbols
817     ${WINDOW_CONSTRUCTORS_FILE}
818     ${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
819     ${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
820 )
821 GENERATE_BINDINGS(GObjectDOMBindings_SOURCES
822     "${GObjectDOMBindings_IDL_FILES}"
823     "${WEBCORE_DIR}"
824     "${IDL_INCLUDES}"
825     "${GOBJECT_DOM_BINDINGS_FEATURES_DEFINES}"
826     ${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}
827     WebKitDOM GObject cpp
828     ${IDL_ATTRIBUTES_FILE}
829     ${SUPPLEMENTAL_DEPENDENCY_FILE}
830     ${ADDITIONAL_BINDINGS_DEPENDENCIES})
831
832 add_definitions(-DBUILDING_WEBKIT)
833 add_definitions(-DWEBKIT_DOM_USE_UNSTABLE_API)
834
835 add_library(GObjectDOMBindings STATIC ${GObjectDOMBindings_SOURCES})
836
837 WEBKIT_SET_EXTRA_COMPILER_FLAGS(GObjectDOMBindings)
838
839 add_dependencies(GObjectDOMBindings
840     WebCore
841     fake-generated-webkitdom-headers
842 )
843
844 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkitdom.cfg
845     "[webkitdomgtk-${WEBKITGTK_API_VERSION}]\n"
846     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
847     "namespace=webkit_dom\n"
848     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
849     "       -I${WEBCORE_DIR}/bindings\n"
850     "       -I${WEBCORE_DIR}/bindings/gobject\n"
851     "       -I${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}\n"
852     "doc_dir=${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}/docs\n"
853     "source_dirs=${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}\n"
854     "            ${WEBCORE_DIR}/bindings/gobject\n"
855     "headers=${GObjectDOMBindingsStable_INSTALLED_HEADERS}\n"
856     "main_sgml_file=webkitdomgtk-docs.sgml\n"
857 )
858
859 install(FILES ${GObjectDOMBindingsStable_INSTALLED_HEADERS}
860         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkitdom"
861 )
862
863 # Make unstable header optional if they don't exist
864 install(FILES ${GObjectDOMBindingsUnstable_INSTALLED_HEADERS}
865         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkitdom"
866         OPTIONAL
867 )
868
869 # Some installed headers are not on the list of headers used for gir generation.
870 set(GObjectDOMBindings_GIR_HEADERS ${GObjectDOMBindingsStable_INSTALLED_HEADERS})
871 list(REMOVE_ITEM GObjectDOMBindings_GIR_HEADERS
872      bindings/gobject/WebKitDOMEventTarget.h
873      bindings/gobject/WebKitDOMNodeFilter.h
874      bindings/gobject/WebKitDOMObject.h
875      bindings/gobject/WebKitDOMXPathNSResolver.h
876 )
877
878 # Propagate this variable to the parent scope, so that it can be used in other parts of the build.
879 set(GObjectDOMBindings_GIR_HEADERS ${GObjectDOMBindings_GIR_HEADERS} PARENT_SCOPE)
880
881 if (ENABLE_SUBTLE_CRYPTO)
882     list(APPEND WebCore_SOURCES
883         crypto/CryptoAlgorithm.cpp
884         crypto/CryptoAlgorithmDescriptionBuilder.cpp
885         crypto/CryptoAlgorithmRegistry.cpp
886         crypto/CryptoKey.cpp
887         crypto/CryptoKeyPair.cpp
888         crypto/SubtleCrypto.cpp
889         crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
890         crypto/algorithms/CryptoAlgorithmAES_KW.cpp
891         crypto/algorithms/CryptoAlgorithmHMAC.cpp
892         crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
893         crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
894         crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
895         crypto/algorithms/CryptoAlgorithmSHA1.cpp
896         crypto/algorithms/CryptoAlgorithmSHA224.cpp
897         crypto/algorithms/CryptoAlgorithmSHA256.cpp
898         crypto/algorithms/CryptoAlgorithmSHA384.cpp
899         crypto/algorithms/CryptoAlgorithmSHA512.cpp
900
901         crypto/gnutls/CryptoAlgorithmRegistryGnuTLS.cpp
902         crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp
903         crypto/gnutls/CryptoAlgorithmAES_KWGnuTLS.cpp
904         crypto/gnutls/CryptoAlgorithmHMACGnuTLS.cpp
905         crypto/gnutls/CryptoAlgorithmRSAES_PKCS1_v1_5GnuTLS.cpp
906         crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp
907         crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp
908         crypto/gnutls/CryptoDigestGnuTLS.cpp
909         crypto/gnutls/CryptoKeyRSAGnuTLS.cpp
910         crypto/gnutls/SerializedCryptoKeyWrapGnuTLS.cpp
911
912         crypto/keys/CryptoKeyAES.cpp
913         crypto/keys/CryptoKeyDataOctetSequence.cpp
914         crypto/keys/CryptoKeyDataRSAComponents.cpp
915         crypto/keys/CryptoKeyHMAC.cpp
916         crypto/keys/CryptoKeySerializationRaw.cpp
917     )
918
919     list(APPEND WebCore_INCLUDE_DIRECTORIES
920         ${GNUTLS_INCLUDE_DIRS}
921     )
922     list(APPEND WebCore_LIBRARIES
923         ${GNUTLS_LIBRARIES}
924     )
925 endif ()