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