6fe63cd87e24448d01252ab721ae3b10390a7845
[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/FileMonitorGLib.cpp
75     platform/glib/FileSystemGlib.cpp
76     platform/glib/KeyedDecoderGlib.cpp
77     platform/glib/KeyedEncoderGlib.cpp
78     platform/glib/LowPowerModeNotifierGLib.cpp
79     platform/glib/MainThreadSharedTimerGLib.cpp
80     platform/glib/SSLKeyGeneratorGLib.cpp
81     platform/glib/SharedBufferGlib.cpp
82     platform/glib/UserAgentGLib.cpp
83
84     platform/graphics/GLContext.cpp
85     platform/graphics/GraphicsContext3DPrivate.cpp
86     platform/graphics/ImageSource.cpp
87     platform/graphics/PlatformDisplay.cpp
88     platform/graphics/WOFFFileFormat.cpp
89
90     platform/graphics/egl/GLContextEGL.cpp
91
92     platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
93     platform/graphics/opengl/Extensions3DOpenGLES.cpp
94     platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
95     platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
96     platform/graphics/opengl/TemporaryOpenGLSetting.cpp
97
98     platform/graphics/opentype/OpenTypeVerticalData.cpp
99
100     platform/graphics/wpe/PlatformDisplayWPE.cpp
101
102     platform/network/glib/NetworkStateNotifierGLib.cpp
103
104     platform/network/soup/AuthenticationChallengeSoup.cpp
105     platform/network/soup/CertificateInfo.cpp
106     platform/network/soup/CookieJarSoup.cpp
107     platform/network/soup/CookieStorageSoup.cpp
108     platform/network/soup/CredentialStorageSoup.cpp
109     platform/network/soup/DNSSoup.cpp
110     platform/network/soup/GRefPtrSoup.cpp
111     platform/network/soup/NetworkStorageSessionSoup.cpp
112     platform/network/soup/ProxyServerSoup.cpp
113     platform/network/soup/ResourceErrorSoup.cpp
114     platform/network/soup/ResourceHandleSoup.cpp
115     platform/network/soup/ResourceRequestSoup.cpp
116     platform/network/soup/ResourceResponseSoup.cpp
117     platform/network/soup/SocketStreamHandleImplSoup.cpp
118     platform/network/soup/SoupNetworkSession.cpp
119     platform/network/soup/SynchronousLoaderClientSoup.cpp
120     platform/network/soup/WebKitSoupRequestGeneric.cpp
121
122     platform/soup/PublicSuffixSoup.cpp
123     platform/soup/SharedBufferSoup.cpp
124     platform/soup/URLSoup.cpp
125
126     platform/text/Hyphenation.cpp
127     platform/text/LocaleICU.cpp
128     platform/text/TextCodecICU.cpp
129     platform/text/TextEncodingDetectorICU.cpp
130
131     platform/unix/LoggingUnix.cpp
132
133     platform/xdg/MIMETypeRegistryXdg.cpp
134 )
135
136 list(APPEND WebCorePlatformWPE_SOURCES
137     editing/wpe/EditorWPE.cpp
138
139     platform/glib/EventHandlerGLib.cpp
140
141     platform/graphics/egl/GLContextEGLWPE.cpp
142
143     platform/graphics/wpe/IconWPE.cpp
144     platform/graphics/wpe/ImageWPE.cpp
145
146     platform/wpe/CursorWPE.cpp
147     platform/wpe/LocalizedStringsWPE.cpp
148     platform/wpe/PasteboardWPE.cpp
149     platform/wpe/PlatformKeyboardEventWPE.cpp
150     platform/wpe/PlatformPasteboardWPE.cpp
151     platform/wpe/PlatformScreenWPE.cpp
152     platform/wpe/RenderThemeWPE.cpp
153     platform/wpe/ScrollbarThemeWPE.cpp
154     platform/wpe/ThemeWPE.cpp
155     platform/wpe/WidgetWPE.cpp
156 )
157
158 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
159     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.css
160 )
161
162 set(WebCore_USER_AGENT_SCRIPTS
163     ${WEBCORE_DIR}/English.lproj/mediaControlsLocalizedStrings.js
164     ${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsBase.js
165 )
166
167 set(WebCore_USER_AGENT_SCRIPTS_DEPENDENCIES ${WEBCORE_DIR}/platform/wpe/RenderThemeWPE.cpp)
168
169 list(APPEND WebCore_LIBRARIES
170     ${CAIRO_LIBRARIES}
171     ${GLIB_GIO_LIBRARIES}
172     ${GLIB_GMODULE_LIBRARIES}
173     ${GLIB_GOBJECT_LIBRARIES}
174     ${GLIB_LIBRARIES}
175     ${ICU_LIBRARIES}
176     ${LIBSOUP_LIBRARIES}
177     ${LIBTASN1_LIBRARIES}
178     ${UPOWERGLIB_LIBRARIES}
179     ${WPE_LIBRARIES}
180 )
181
182 list(APPEND WebCore_INCLUDE_DIRECTORIES
183     ${CAIRO_INCLUDE_DIRS}
184     ${GIO_UNIX_INCLUDE_DIRS}
185     ${GLIB_INCLUDE_DIRS}
186     ${ICU_INCLUDE_DIRS}
187     ${LIBSOUP_INCLUDE_DIRS}
188     ${LIBTASN1_INCLUDE_DIRS}
189     ${UPOWERGLIB_INCLUDE_DIRS}
190     ${WPE_INCLUDE_DIRS}
191 )
192
193 add_library(WebCorePlatformWPE ${WebCore_LIBRARY_TYPE} ${WebCorePlatformWPE_SOURCES})
194 add_dependencies(WebCorePlatformWPE WebCore)
195 target_include_directories(WebCorePlatformWPE PRIVATE
196     ${WebCore_INCLUDE_DIRECTORIES}
197 )
198 target_include_directories(WebCorePlatformWPE SYSTEM PRIVATE
199     ${WebCore_SYSTEM_INCLUDE_DIRECTORIES}
200 )
201 target_link_libraries(WebCorePlatformWPE
202     ${WebCore_LIBRARIES}
203 )