Make remaining CSSValue constructors return PassRef.
[WebKit-https.git] / Source / WebCore / PlatformBlackBerry.cmake
1 list(INSERT WebCore_INCLUDE_DIRECTORIES 0
2     "${BLACKBERRY_THIRD_PARTY_DIR}" # For <unicode.h>, which is included from <sys/keycodes.h>.
3 )
4
5 list(REMOVE_ITEM WebCore_SOURCES
6     html/shadow/MediaControlsApple.cpp
7 )
8
9 list(APPEND WebCore_INCLUDE_DIRECTORIES
10     "${WEBCORE_DIR}/platform/blackberry/CookieDatabaseBackingStore"
11     "${WEBCORE_DIR}/platform/graphics/harfbuzz"
12     "${WEBCORE_DIR}/platform/graphics/opentype/"
13     "${WEBCORE_DIR}/platform/network/blackberry"
14     "${WEBCORE_DIR}/platform/network/blackberry/rss"
15 )
16
17 # Other sources
18 list(APPEND WebCore_SOURCES
19     platform/blackberry/AuthenticationChallengeManager.cpp
20     platform/blackberry/CookieManager.cpp
21     platform/blackberry/CookieMap.cpp
22     platform/blackberry/CookieParser.cpp
23     platform/blackberry/FileSystemBlackBerry.cpp
24     platform/blackberry/ParsedCookie.cpp
25
26     platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp
27
28     platform/graphics/WOFFFileFormat.cpp
29
30     platform/graphics/opentype/OpenTypeSanitizer.cpp
31
32     platform/image-encoders/JPEGImageEncoder.cpp
33
34     platform/posix/FileSystemPOSIX.cpp
35     platform/posix/SharedBufferPOSIX.cpp
36
37     platform/text/LocaleNone.cpp
38
39     platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp
40 )
41
42 # Networking sources
43 list(APPEND WebCore_SOURCES
44     platform/network/MIMESniffing.cpp
45     platform/network/NetworkStorageSessionStub.cpp
46     platform/network/ProxyServer.cpp
47
48     platform/network/blackberry/AutofillBackingStore.cpp
49     platform/network/blackberry/BlobStream.cpp
50     platform/network/blackberry/CookieJarBlackBerry.cpp
51     platform/network/blackberry/DNSBlackBerry.cpp
52     platform/network/blackberry/DeferredData.cpp
53     platform/network/blackberry/NetworkJob.cpp
54     platform/network/blackberry/NetworkManager.cpp
55     platform/network/blackberry/NetworkStateNotifierBlackBerry.cpp
56     platform/network/blackberry/ProxyServerBlackBerry.cpp
57     platform/network/blackberry/ResourceErrorBlackBerry.cpp
58     platform/network/blackberry/ResourceHandleBlackBerry.cpp
59     platform/network/blackberry/ResourceRequestBlackBerry.cpp
60     platform/network/blackberry/ResourceResponseBlackBerry.cpp
61     platform/network/blackberry/SocketStreamHandleBlackBerry.cpp
62
63     platform/network/blackberry/rss/RSS10Parser.cpp
64     platform/network/blackberry/rss/RSS20Parser.cpp
65     platform/network/blackberry/rss/RSSAtomParser.cpp
66     platform/network/blackberry/rss/RSSFilterStream.cpp
67     platform/network/blackberry/rss/RSSGenerator.cpp
68     platform/network/blackberry/rss/RSSParserBase.cpp
69 )
70
71 list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
72     ${WEBCORE_DIR}/css/mediaControlsBlackBerry.css
73     ${WEBCORE_DIR}/css/mediaControlsBlackBerryFullscreen.css
74     ${WEBCORE_DIR}/css/themeBlackBerry.css
75 )
76
77 list(APPEND WebCore_INCLUDE_DIRECTORIES
78     "${WEBCORE_DIR}/bridge/blackberry"
79     "${WEBCORE_DIR}/history/blackberry"
80     "${WEBCORE_DIR}/page/blackberry"
81     "${WEBCORE_DIR}/page/scrolling/blackberry"
82     "${WEBCORE_DIR}/platform/blackberry"
83     "${WEBCORE_DIR}/platform/graphics/blackberry"
84     "${WEBCORE_DIR}/platform/image-decoders/bmp"
85     "${WEBCORE_DIR}/platform/image-decoders/gif"
86     "${WEBCORE_DIR}/platform/image-decoders/ico"
87     "${WEBCORE_DIR}/platform/image-decoders/jpeg"
88     "${WEBCORE_DIR}/platform/image-decoders/png"
89     "${WEBCORE_DIR}/platform/image-encoders"
90     "${WEBCORE_DIR}/platform/network/blackberry"
91     "${WEBCORE_DIR}/platform/text/blackberry"
92     "${WEBKIT_DIR}/blackberry/Api"
93     "${WEBKIT_DIR}/blackberry/WebCoreSupport"
94     "${WEBKIT_DIR}/blackberry/WebKitSupport"
95 )
96
97 # BlackBerry sources
98 list(APPEND WebCore_SOURCES
99     editing/blackberry/SmartReplaceBlackBerry.cpp
100
101     html/shadow/MediaControlsBlackBerry.cpp
102
103     page/blackberry/AccessibilityObjectBlackBerry.cpp
104     page/blackberry/DragControllerBlackBerry.cpp
105     page/blackberry/EventHandlerBlackBerry.cpp
106     page/blackberry/SettingsBlackBerry.cpp
107
108     platform/blackberry/CursorBlackBerry.cpp
109     platform/blackberry/DragDataBlackBerry.cpp
110     platform/blackberry/DragImageBlackBerry.cpp
111     platform/blackberry/EventLoopBlackBerry.cpp
112     platform/blackberry/LocalizedStringsBlackBerry.cpp
113     platform/blackberry/LoggingBlackBerry.cpp
114     platform/blackberry/MIMETypeRegistryBlackBerry.cpp
115     platform/blackberry/PasteboardBlackBerry.cpp
116     platform/blackberry/PlatformKeyboardEventBlackBerry.cpp
117     platform/blackberry/PlatformMouseEventBlackBerry.cpp
118     platform/blackberry/PlatformScreenBlackBerry.cpp
119     platform/blackberry/PlatformTouchEventBlackBerry.cpp
120     platform/blackberry/PlatformTouchPointBlackBerry.cpp
121     platform/blackberry/PopupMenuBlackBerry.cpp
122     platform/blackberry/RenderThemeBlackBerry.cpp
123     platform/blackberry/SSLKeyGeneratorBlackBerry.cpp
124     platform/blackberry/ScrollbarThemeBlackBerry.cpp
125     platform/blackberry/SearchPopupMenuBlackBerry.cpp
126     platform/blackberry/SharedTimerBlackBerry.cpp
127     platform/blackberry/SoundBlackBerry.cpp
128     platform/blackberry/TemporaryLinkStubs.cpp
129     platform/blackberry/WidgetBlackBerry.cpp
130
131     platform/graphics/blackberry/FloatPointBlackBerry.cpp
132     platform/graphics/blackberry/FloatRectBlackBerry.cpp
133     platform/graphics/blackberry/FloatSizeBlackBerry.cpp
134     platform/graphics/blackberry/IconBlackBerry.cpp
135     platform/graphics/blackberry/ImageBlackBerry.cpp
136     platform/graphics/blackberry/IntPointBlackBerry.cpp
137     platform/graphics/blackberry/IntRectBlackBerry.cpp
138     platform/graphics/blackberry/IntSizeBlackBerry.cpp
139     platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp
140
141     platform/text/blackberry/StringBlackBerry.cpp
142 )
143
144 # Credential Persistence sources
145 list(APPEND WebCore_SOURCES
146     platform/network/blackberry/CredentialBackingStore.cpp
147     platform/network/blackberry/CredentialStorageBlackBerry.cpp
148 )
149
150 if (ENABLE_SMOOTH_SCROLLING)
151     list(APPEND WebCore_SOURCES
152         platform/blackberry/ScrollAnimatorBlackBerry.cpp
153     )
154 endif ()
155
156 if (ENABLE_REQUEST_ANIMATION_FRAME)
157     list(APPEND WebCore_SOURCES
158         platform/graphics/DisplayRefreshMonitor.cpp
159
160         platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp
161     )
162 endif ()
163
164 if (ENABLE_WEBGL)
165     add_definitions(-DWTF_USE_OPENGL_ES_2=1)
166     list(APPEND WebCore_INCLUDE_DIRECTORIES
167         "${WEBCORE_DIR}/platform/graphics/gpu"
168         "${WEBCORE_DIR}/platform/graphics/opengl"
169     )
170     list(APPEND WebCore_SOURCES
171         platform/graphics/blackberry/DrawingBufferBlackBerry.cpp
172         platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp
173
174         platform/graphics/gpu/SharedGraphicsContext3D.cpp
175
176         platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
177         platform/graphics/opengl/Extensions3DOpenGLES.cpp
178         platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
179         platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
180     )
181 endif ()
182
183 if (ENABLE_MEDIA_STREAM)
184     list(APPEND WebCore_SOURCES
185         platform/mediastream/blackberry/MediaStreamCenterBlackBerry.cpp
186     )
187 endif ()
188
189 if (ENABLE_NETSCAPE_PLUGIN_API)
190     list(APPEND WebCore_SOURCES
191         plugins/blackberry/NPCallbacksBlackBerry.cpp
192         plugins/blackberry/PluginPackageBlackBerry.cpp
193         plugins/blackberry/PluginViewBlackBerry.cpp
194         plugins/blackberry/PluginViewPrivateBlackBerry.cpp
195     )
196 else ()
197     list(APPEND WebCore_SOURCES
198         plugins/PluginDataNone.cpp
199     )
200 endif ()
201
202 if (ENABLE_TEXT_AUTOSIZING)
203     list(APPEND WebCore_SOURCES
204         rendering/TextAutosizer.cpp
205     )
206 endif ()
207
208 # To speed up linking when working on accel comp, you can move this whole chunk
209 # to Source/WebKit/blackberry/CMakeListsBlackBerry.txt.
210 # Append to WebKit_SOURCES instead of WebCore_SOURCES.
211 if (WTF_USE_ACCELERATED_COMPOSITING)
212     list(APPEND WebCore_SOURCES
213         platform/graphics/GraphicsLayer.cpp
214         platform/graphics/GraphicsLayerUpdater.cpp
215
216         platform/graphics/blackberry/CanvasLayerWebKitThread.cpp
217         platform/graphics/blackberry/EGLImageLayerCompositingThreadClient.cpp
218         platform/graphics/blackberry/EGLImageLayerWebKitThread.cpp
219         platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp
220         platform/graphics/blackberry/LayerAnimation.cpp
221         platform/graphics/blackberry/LayerCompositingThread.cpp
222         platform/graphics/blackberry/LayerFilterRenderer.cpp
223         platform/graphics/blackberry/LayerRenderer.cpp
224         platform/graphics/blackberry/LayerRendererSurface.cpp
225         platform/graphics/blackberry/LayerTexture.cpp
226         platform/graphics/blackberry/LayerTile.cpp
227         platform/graphics/blackberry/LayerTiler.cpp
228         platform/graphics/blackberry/LayerWebKitThread.cpp
229         platform/graphics/blackberry/PluginLayerWebKitThread.cpp
230         platform/graphics/blackberry/TextureCacheCompositingThread.cpp
231         platform/graphics/blackberry/WebGLLayerWebKitThread.cpp
232
233         rendering/RenderLayerBacking.cpp
234         rendering/RenderLayerCompositor.cpp
235     )
236 endif ()
237
238 set(ENV{WEBKITDIR} ${CMAKE_SOURCE_DIR}/Source)
239 set(ENV{PLATFORMNAME} ${CMAKE_SYSTEM_NAME})
240 execute_process(
241     COMMAND hostname
242     OUTPUT_VARIABLE host
243 )
244 string(REPLACE "\n" "" host1 "${host}")
245 set(ENV{COMPUTERNAME} ${host1})
246
247 if ($ENV{PUBLIC_BUILD})
248     add_definitions(-DPUBLIC_BUILD=$ENV{PUBLIC_BUILD})
249 endif ()
250
251 # Generate contents for PopupPicker.cpp
252 set(WebCore_POPUP_CSS_AND_JS
253     ${WEBCORE_DIR}/Resources/blackberry/popupControlBlackBerry.css
254     ${WEBCORE_DIR}/Resources/blackberry/selectControlBlackBerry.css
255     ${WEBCORE_DIR}/Resources/blackberry/selectControlBlackBerry.js
256 )
257
258 add_custom_command(
259     OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.h ${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.cpp
260     MAIN_DEPENDENCY ${WEBCORE_DIR}/make-file-arrays.py
261     DEPENDS ${WebCore_POPUP_CSS_AND_JS}
262     COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/make-file-arrays.py --out-h=${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.h --out-cpp=${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.cpp ${WebCore_POPUP_CSS_AND_JS}
263 )
264 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.cpp)
265
266 set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> <LINK_FLAGS> cruT <TARGET> <OBJECTS>")
267 set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> <LINK_FLAGS> ruT <TARGET> <OBJECTS>")
268 set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> <LINK_FLAGS> cruT <TARGET> <OBJECTS>")
269 set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> <LINK_FLAGS> ruT <TARGET> <OBJECTS>")