b66244ec493c979384796771cf8608301c0f3bba
[WebKit-https.git] / Source / WebCore / PlatformWPE.cmake
1 include(platform/Cairo.cmake)
2 include(platform/FreeType.cmake)
3 include(platform/GCrypt.cmake)
4 include(platform/GStreamer.cmake)
5 include(platform/ImageDecoders.cmake)
6 include(platform/TextureMapper.cmake)
7
8 # Allow building ANGLE on platforms that don't provide X11 headers.
9 list(APPEND ANGLE_PLATFORM_DEFINITIONS "USE_WPE")
10
11 list(APPEND WebCore_INCLUDE_DIRECTORIES
12     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}"
13     "${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector"
14     ${JAVASCRIPTCORE_DIR}
15     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
16     "${JAVASCRIPTCORE_DIR}/API"
17     "${JAVASCRIPTCORE_DIR}/assembler"
18     "${JAVASCRIPTCORE_DIR}/bytecode"
19     "${JAVASCRIPTCORE_DIR}/bytecompiler"
20     "${JAVASCRIPTCORE_DIR}/dfg"
21     "${JAVASCRIPTCORE_DIR}/disassembler"
22     "${JAVASCRIPTCORE_DIR}/domjit"
23     "${JAVASCRIPTCORE_DIR}/heap"
24     "${JAVASCRIPTCORE_DIR}/debugger"
25     "${JAVASCRIPTCORE_DIR}/interpreter"
26     "${JAVASCRIPTCORE_DIR}/jit"
27     "${JAVASCRIPTCORE_DIR}/llint"
28     "${JAVASCRIPTCORE_DIR}/parser"
29     "${JAVASCRIPTCORE_DIR}/profiler"
30     "${JAVASCRIPTCORE_DIR}/runtime"
31     "${JAVASCRIPTCORE_DIR}/yarr"
32     "${THIRDPARTY_DIR}/ANGLE/"
33     "${THIRDPARTY_DIR}/ANGLE/include/KHR"
34     "${WEBCORE_DIR}/platform/graphics/egl"
35     "${WEBCORE_DIR}/platform/graphics/epoxy"
36     "${WEBCORE_DIR}/platform/graphics/glx"
37     "${WEBCORE_DIR}/platform/graphics/gstreamer"
38     "${WEBCORE_DIR}/platform/graphics/opengl"
39     "${WEBCORE_DIR}/platform/graphics/opentype"
40     "${WEBCORE_DIR}/platform/graphics/wpe"
41     "${WEBCORE_DIR}/platform/graphics/wayland"
42     "${WEBCORE_DIR}/platform/mock/mediasource"
43     "${WEBCORE_DIR}/platform/network/soup"
44     "${WEBCORE_DIR}/platform/text/icu"
45     ${WTF_DIR}
46 )
47
48 list(APPEND WebCore_SOURCES
49     accessibility/wpe/AXObjectCacheWPE.cpp
50     accessibility/wpe/AccessibilityObjectWPE.cpp
51
52     loader/soup/CachedRawResourceSoup.cpp
53     loader/soup/SubresourceLoaderSoup.cpp
54
55     page/linux/ResourceUsageOverlayLinux.cpp
56     page/linux/ResourceUsageThreadLinux.cpp
57
58     page/scrolling/ScrollingStateStickyNode.cpp
59     page/scrolling/ScrollingThread.cpp
60     page/scrolling/ScrollingTreeNode.cpp
61     page/scrolling/ScrollingTreeScrollingNode.cpp
62
63     page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp
64     page/scrolling/coordinatedgraphics/ScrollingStateNodeCoordinatedGraphics.cpp
65
66     platform/Cursor.cpp
67     platform/PlatformStrategies.cpp
68     platform/Theme.cpp
69     platform/UserAgentQuirks.cpp
70
71     platform/audio/glib/AudioBusGLib.cpp
72
73     platform/glib/EventLoopGlib.cpp
74     platform/glib/FileSystemGlib.cpp
75     platform/glib/KeyedDecoderGlib.cpp
76     platform/glib/KeyedEncoderGlib.cpp
77     platform/glib/LowPowerModeNotifierGLib.cpp
78     platform/glib/MainThreadSharedTimerGLib.cpp
79     platform/glib/SSLKeyGeneratorGLib.cpp
80     platform/glib/SharedBufferGlib.cpp
81     platform/glib/UserAgentGLib.cpp
82
83     platform/graphics/GLContext.cpp
84     platform/graphics/GraphicsContext3DPrivate.cpp
85     platform/graphics/ImageSource.cpp
86     platform/graphics/PlatformDisplay.cpp
87     platform/graphics/WOFFFileFormat.cpp
88
89     platform/graphics/egl/GLContextEGL.cpp
90
91     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
92     platform/graphics/opengl/Extensions3DOpenGLES.cpp
93     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
94     platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
95     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
96
97     platform/graphics/opentype/OpenTypeVerticalData.cpp
98
99     platform/graphics/wpe/PlatformDisplayWPE.cpp
100
101     platform/network/glib/NetworkStateNotifierGLib.cpp
102
103     platform/network/soup/AuthenticationChallengeSoup.cpp
104     platform/network/soup/CertificateInfo.cpp
105     platform/network/soup/CookieJarSoup.cpp
106     platform/network/soup/CookieStorageSoup.cpp
107     platform/network/soup/CredentialStorageSoup.cpp
108     platform/network/soup/DNSSoup.cpp
109     platform/network/soup/GRefPtrSoup.cpp
110     platform/network/soup/NetworkStorageSessionSoup.cpp
111     platform/network/soup/ProxyServerSoup.cpp
112     platform/network/soup/ResourceErrorSoup.cpp
113     platform/network/soup/ResourceHandleSoup.cpp
114     platform/network/soup/ResourceRequestSoup.cpp
115     platform/network/soup/ResourceResponseSoup.cpp
116     platform/network/soup/SocketStreamHandleImplSoup.cpp
117     platform/network/soup/SoupNetworkSession.cpp
118     platform/network/soup/SynchronousLoaderClientSoup.cpp
119     platform/network/soup/WebKitSoupRequestGeneric.cpp
120
121     platform/soup/PublicSuffixSoup.cpp
122     platform/soup/SharedBufferSoup.cpp
123     platform/soup/URLSoup.cpp
124
125     platform/text/Hyphenation.cpp
126     platform/text/LocaleICU.cpp
127     platform/text/TextCodecICU.cpp
128     platform/text/TextEncodingDetectorICU.cpp
129
130     platform/unix/LoggingUnix.cpp
131
132     platform/xdg/MIMETypeRegistryXdg.cpp
133 )
134
135 list(APPEND WebCorePlatformWPE_SOURCES
136     editing/wpe/EditorWPE.cpp
137
138     platform/glib/EventHandlerGLib.cpp
139
140     platform/graphics/egl/GLContextEGLWPE.cpp
141
142     platform/graphics/wpe/IconWPE.cpp
143     platform/graphics/wpe/ImageWPE.cpp
144
145     platform/wpe/CursorWPE.cpp
146     platform/wpe/LocalizedStringsWPE.cpp
147     platform/wpe/PasteboardWPE.cpp
148     platform/wpe/PlatformKeyboardEventWPE.cpp
149     platform/wpe/PlatformPasteboardWPE.cpp
150     platform/wpe/PlatformScreenWPE.cpp
151     platform/wpe/RenderThemeWPE.cpp
152     platform/wpe/ScrollbarThemeWPE.cpp
153     platform/wpe/ThemeWPE.cpp
154     platform/wpe/WidgetWPE.cpp
155 )
156
157 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
158     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.css
159 )
160
161 set(WebCore_USER_AGENT_SCRIPTS
162     ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
163     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
164 )
165
166 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/wpe/RenderThemeWPE.cpp)
167
168 list(APPEND WebCore_LIBRARIES
169     ${CAIRO_LIBRARIES}
170     ${GLIB_GIO_LIBRARIES}
171     ${GLIB_GMODULE_LIBRARIES}
172     ${GLIB_GOBJECT_LIBRARIES}
173     ${GLIB_LIBRARIES}
174     ${ICU_LIBRARIES}
175     ${LIBSOUP_LIBRARIES}
176     ${LIBTASN1_LIBRARIES}
177     ${UPOWERGLIB_LIBRARIES}
178     ${WPE_LIBRARIES}
179 )
180
181 list(APPEND WebCore_INCLUDE_DIRECTORIES
182     ${CAIRO_INCLUDE_DIRS}
183     ${GIO_UNIX_INCLUDE_DIRS}
184     ${GLIB_INCLUDE_DIRS}
185     ${ICU_INCLUDE_DIRS}
186     ${LIBSOUP_INCLUDE_DIRS}
187     ${LIBTASN1_INCLUDE_DIRS}
188     ${UPOWERGLIB_INCLUDE_DIRS}
189     ${WPE_INCLUDE_DIRS}
190 )
191
192 add_library(WebCorePlatformWPE ${WebCore_LIBRARY_TYPE} ${WebCorePlatformWPE_SOURCES})
193 add_dependencies(WebCorePlatformWPE WebCore)
194 target_include_directories(WebCorePlatformWPE PRIVATE
195     ${WebCore_INCLUDE_DIRECTORIES}
196 )
197 target_include_directories(WebCorePlatformWPE SYSTEM PRIVATE
198     ${WebCore_SYSTEM_INCLUDE_DIRECTORIES}
199 )
200 target_link_libraries(WebCorePlatformWPE
201     ${WebCore_LIBRARIES}
202 )