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