@@ -2,16 +2,10 @@ include(platform/Adwaita.cmake)
22include (platform/GCrypt.cmake)
33include (platform/GStreamer.cmake)
44include (platform/ImageDecoders.cmake)
5+ include (platform/Skia.cmake)
56include (platform/Soup.cmake)
67include (platform/TextureMapper.cmake)
78
8- if (USE_CAIRO)
9- include (platform/Cairo.cmake)
10- include (platform/FreeType.cmake)
11- elseif (USE_SKIA)
12- include (platform/Skia.cmake)
13- endif ()
14-
159list (APPEND WebCore_UNIFIED_SOURCE_LIST_FILES
1610 "SourcesGTK.txt"
1711
@@ -62,8 +56,6 @@ list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
6256
6357 platform/graphics/x11/XErrorTrapper.h
6458
65- platform/gtk/ScrollbarThemeGtk.h
66-
6759 platform/text/enchant/TextCheckerEnchant.h
6860)
6961
@@ -82,13 +74,6 @@ list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
8274 ${UPOWERGLIB_INCLUDE_DIRS}
8375)
8476
85- if (USE_CAIRO)
86- # GTK is only used by WebCore when building with cairo enabled.
87- list (APPEND WebCore_LIBRARIES
88- GTK::GTK
89- )
90- endif ()
91-
9277if (ENABLE_WAYLAND_TARGET)
9378 list (APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
9479 ${WAYLAND_INCLUDE_DIRS}
@@ -111,25 +96,18 @@ if (ENABLE_BUBBLEWRAP_SANDBOX)
11196 list (APPEND WebCore_LIBRARIES Libseccomp::Libseccomp)
11297endif ()
11398
114- if (USE_CAIRO)
115- list (APPEND WebCore_SOURCES
116- platform/cairo/DragImageCairo.cpp
117- )
118- elseif (USE_SKIA)
119- # When building with Skia we don't build Cairo sources, but since
120- # Cairo is still needed in the UI process API we need to include
121- # here the Cairo sources required.
122- list (APPEND WebCore_SOURCES
123- platform/graphics/cairo/IntRectCairo.cpp
124- platform/graphics/cairo/RefPtrCairo.cpp
99+ # We don't build most Cairo sources, but since Cairo is still needed in the
100+ # UI process API we need to include here the Cairo sources required.
101+ list (APPEND WebCore_SOURCES
102+ platform/graphics/cairo/IntRectCairo.cpp
103+ platform/graphics/cairo/RefPtrCairo.cpp
125104
126- platform/skia/DragImageSkia.cpp
127- )
105+ platform/skia/DragImageSkia.cpp
106+ )
128107
129- list (APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
130- platform/graphics/cairo/RefPtrCairo.h
131- )
132- endif ()
108+ list (APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
109+ platform/graphics/cairo/RefPtrCairo.h
110+ )
133111
134112include_directories (SYSTEM
135113 ${WebCore_SYSTEM_INCLUDE_DIRECTORIES}
0 commit comments