-
Notifications
You must be signed in to change notification settings - Fork 3
/
PlatformBlackBerry.cmake
377 lines (345 loc) · 15.1 KB
/
PlatformBlackBerry.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
LIST(INSERT WebCore_INCLUDE_DIRECTORIES 0
"${BLACKBERRY_THIRD_PARTY_DIR}" # For <unicode.h>, which is included from <sys/keycodes.h>.
"${BLACKBERRY_THIRD_PARTY_DIR}/icu"
)
LIST(APPEND WebCore_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/bindings/cpp"
"${WEBCORE_DIR}/platform/blackberry/CookieDatabaseBackingStore"
"${WEBCORE_DIR}/platform/graphics/blackberry/skia"
"${WEBCORE_DIR}/platform/graphics/harfbuzz"
"${WEBCORE_DIR}/platform/graphics/opentype/"
"${WEBCORE_DIR}/platform/graphics/skia"
"${WEBCORE_DIR}/platform/image-decoders/skia"
"${WEBCORE_DIR}/platform/image-encoders/skia"
"${WEBCORE_DIR}/platform/network/blackberry"
"${WEBCORE_DIR}/platform/network/blackberry/rss"
)
# Skia sources
LIST(APPEND WebCore_SOURCES
platform/graphics/skia/FloatPointSkia.cpp
platform/graphics/skia/FloatRectSkia.cpp
platform/graphics/skia/FontCustomPlatformData.cpp
platform/graphics/skia/GradientSkia.cpp
platform/graphics/skia/GraphicsContext3DSkia.cpp
platform/graphics/skia/GraphicsContextSkia.cpp
platform/graphics/skia/HarfbuzzSkia.cpp
platform/graphics/skia/ImageBufferSkia.cpp
platform/graphics/skia/ImageSkia.cpp
platform/graphics/skia/IntPointSkia.cpp
platform/graphics/skia/IntRectSkia.cpp
platform/graphics/skia/NativeImageSkia.cpp
platform/graphics/skia/PathSkia.cpp
platform/graphics/skia/PatternSkia.cpp
platform/graphics/skia/PlatformContextSkia.cpp
platform/graphics/skia/SkiaUtils.cpp
platform/graphics/skia/TransformationMatrixSkia.cpp
platform/graphics/chromium/VDMXParser.cpp
platform/image-decoders/skia/ImageDecoderSkia.cpp
platform/image-encoders/skia/PNGImageEncoder.cpp
)
# Skia font backend sources
LIST(APPEND WebCore_SOURCES
platform/graphics/blackberry/FontCacheBlackberry.cpp
platform/graphics/blackberry/skia/PlatformBridge.cpp
platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp
platform/graphics/harfbuzz/FontHarfBuzz.cpp
platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp
platform/graphics/harfbuzz/HarfBuzzShaper.cpp
platform/graphics/harfbuzz/HarfBuzzSkia.cpp
platform/graphics/skia/FontCacheSkia.cpp
platform/graphics/skia/GlyphPageTreeNodeSkia.cpp
platform/graphics/skia/SimpleFontDataSkia.cpp
)
# Other sources
LIST(APPEND WebCore_SOURCES
bindings/cpp/WebDOMCString.cpp
bindings/cpp/WebDOMEventTarget.cpp
bindings/cpp/WebDOMString.cpp
bindings/cpp/WebExceptionHandler.cpp
platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp
platform/blackberry/AuthenticationChallengeManager.cpp
platform/blackberry/CookieManager.cpp
platform/blackberry/CookieMap.cpp
platform/blackberry/CookieParser.cpp
platform/blackberry/FileSystemBlackBerry.cpp
platform/blackberry/ParsedCookie.cpp
platform/graphics/ImageSource.cpp
platform/graphics/WOFFFileFormat.cpp
platform/graphics/opentype/OpenTypeSanitizer.cpp
platform/image-decoders/ImageDecoder.cpp
platform/image-decoders/bmp/BMPImageDecoder.cpp
platform/image-decoders/bmp/BMPImageReader.cpp
platform/image-decoders/gif/GIFImageDecoder.cpp
platform/image-decoders/gif/GIFImageReader.cpp
platform/image-decoders/ico/ICOImageDecoder.cpp
platform/image-decoders/jpeg/JPEGImageDecoder.cpp
platform/image-decoders/png/PNGImageDecoder.cpp
platform/image-decoders/webp/WEBPImageDecoder.cpp
platform/image-encoders/JPEGImageEncoder.cpp
platform/image-encoders/skia/JPEGImageEncoder.cpp
platform/posix/FileSystemPOSIX.cpp
platform/posix/SharedBufferPOSIX.cpp
platform/text/TextBreakIteratorICU.cpp
platform/text/TextCodecICU.cpp
platform/text/TextEncodingDetectorICU.cpp
platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp
)
# Networking sources
LIST(APPEND WebCore_SOURCES
platform/network/MIMESniffing.cpp
platform/network/ProxyServer.cpp
platform/network/blackberry/AutofillBackingStore.cpp
platform/network/blackberry/DNSBlackBerry.cpp
platform/network/blackberry/DeferredData.cpp
platform/network/blackberry/NetworkJob.cpp
platform/network/blackberry/NetworkManager.cpp
platform/network/blackberry/NetworkStateNotifierBlackBerry.cpp
platform/network/blackberry/ProxyServerBlackBerry.cpp
platform/network/blackberry/ResourceErrorBlackBerry.cpp
platform/network/blackberry/ResourceHandleBlackBerry.cpp
platform/network/blackberry/ResourceRequestBlackBerry.cpp
platform/network/blackberry/ResourceResponseBlackBerry.cpp
platform/network/blackberry/SocketStreamHandleBlackBerry.cpp
platform/network/blackberry/rss/RSSAtomParser.cpp
platform/network/blackberry/rss/RSS10Parser.cpp
platform/network/blackberry/rss/RSS20Parser.cpp
platform/network/blackberry/rss/RSSFilterStream.cpp
platform/network/blackberry/rss/RSSGenerator.cpp
platform/network/blackberry/rss/RSSParserBase.cpp
)
LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
${WEBCORE_DIR}/css/mediaControlsBlackBerry.css
${WEBCORE_DIR}/css/themeBlackBerry.css
)
LIST(APPEND WebCore_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/bridge/blackberry"
"${WEBCORE_DIR}/history/blackberry"
"${WEBCORE_DIR}/page/blackberry"
"${WEBCORE_DIR}/platform/blackberry"
"${WEBCORE_DIR}/platform/graphics/blackberry"
"${WEBCORE_DIR}/platform/image-decoders/bmp"
"${WEBCORE_DIR}/platform/image-decoders/gif"
"${WEBCORE_DIR}/platform/image-decoders/ico"
"${WEBCORE_DIR}/platform/image-decoders/jpeg"
"${WEBCORE_DIR}/platform/image-decoders/png"
"${WEBCORE_DIR}/platform/image-encoders"
"${WEBCORE_DIR}/platform/network/blackberry"
"${WEBCORE_DIR}/platform/text/blackberry"
"${WEBKIT_DIR}/blackberry/Api"
"${WEBKIT_DIR}/blackberry/WebCoreSupport"
"${WEBKIT_DIR}/blackberry/WebKitSupport"
)
# BlackBerry sources
LIST(APPEND WebCore_SOURCES
editing/blackberry/EditorBlackBerry.cpp
editing/blackberry/SmartReplaceBlackBerry.cpp
page/blackberry/AccessibilityObjectBlackBerry.cpp
page/blackberry/DragControllerBlackBerry.cpp
page/blackberry/EventHandlerBlackBerry.cpp
page/blackberry/SettingsBlackBerry.cpp
platform/blackberry/ClipboardBlackBerry.cpp
platform/blackberry/ContextMenuBlackBerry.cpp
platform/blackberry/ContextMenuItemBlackBerry.cpp
platform/blackberry/CookieJarBlackBerry.cpp
platform/blackberry/CursorBlackBerry.cpp
platform/blackberry/DragDataBlackBerry.cpp
platform/blackberry/DragImageBlackBerry.cpp
platform/blackberry/EventLoopBlackBerry.cpp
platform/blackberry/KURLBlackBerry.cpp
platform/blackberry/LocalizedStringsBlackBerry.cpp
platform/blackberry/LoggingBlackBerry.cpp
platform/blackberry/MIMETypeRegistryBlackBerry.cpp
platform/blackberry/PasteboardBlackBerry.cpp
platform/blackberry/PlatformKeyboardEventBlackBerry.cpp
platform/blackberry/PlatformMouseEventBlackBerry.cpp
platform/blackberry/PlatformScreenBlackBerry.cpp
platform/blackberry/PlatformTouchEventBlackBerry.cpp
platform/blackberry/PlatformTouchPointBlackBerry.cpp
platform/blackberry/PopupMenuBlackBerry.cpp
platform/blackberry/RenderThemeBlackBerry.cpp
platform/blackberry/RunLoopBlackBerry.cpp
platform/blackberry/SSLKeyGeneratorBlackBerry.cpp
platform/blackberry/ScrollbarThemeBlackBerry.cpp
platform/blackberry/SearchPopupMenuBlackBerry.cpp
platform/blackberry/SharedTimerBlackBerry.cpp
platform/blackberry/SoundBlackBerry.cpp
platform/blackberry/SystemTimeBlackBerry.cpp
platform/blackberry/TemporaryLinkStubs.cpp
platform/blackberry/WidgetBlackBerry.cpp
platform/graphics/blackberry/FloatPointBlackBerry.cpp
platform/graphics/blackberry/FloatRectBlackBerry.cpp
platform/graphics/blackberry/FloatSizeBlackBerry.cpp
platform/graphics/blackberry/IconBlackBerry.cpp
platform/graphics/blackberry/ImageBlackBerry.cpp
platform/graphics/blackberry/IntPointBlackBerry.cpp
platform/graphics/blackberry/IntRectBlackBerry.cpp
platform/graphics/blackberry/IntSizeBlackBerry.cpp
platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp
platform/text/blackberry/StringBlackBerry.cpp
)
# Credential Persistence sources
LIST(APPEND WebCore_SOURCES
platform/network/blackberry/CredentialBackingStore.cpp
platform/network/blackberry/CredentialStorageBlackBerry.cpp
)
# File System support
IF (ENABLE_FILE_SYSTEM)
LIST(APPEND WebCore_SOURCES
platform/blackberry/AsyncFileSystemBlackBerry.cpp
)
ENDIF ()
# Touch sources
LIST(APPEND WebCore_SOURCES
dom/Touch.cpp
dom/TouchEvent.cpp
dom/TouchList.cpp
)
IF (ENABLE_SMOOTH_SCROLLING)
LIST(APPEND WebCore_SOURCES
platform/blackberry/ScrollAnimatorBlackBerry.cpp
)
ENDIF ()
LIST(APPEND WEBDOM_IDL_HEADERS
bindings/cpp/WebDOMCString.h
bindings/cpp/WebDOMEventTarget.h
bindings/cpp/WebDOMObject.h
bindings/cpp/WebDOMString.h
)
if (ENABLE_REQUEST_ANIMATION_FRAME)
LIST(APPEND WebCore_SOURCES
platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp
platform/graphics/DisplayRefreshMonitor.cpp
)
ENDIF ()
if (ENABLE_WEBGL)
ADD_DEFINITIONS (-DWTF_USE_OPENGL_ES_2=1)
LIST(APPEND WebCore_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/platform/graphics/gpu"
"${WEBCORE_DIR}/platform/graphics/opengl"
)
LIST(APPEND WebCore_SOURCES
platform/graphics/blackberry/DrawingBufferBlackBerry.cpp
platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp
platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
platform/graphics/opengl/Extensions3DOpenGLES.cpp
platform/graphics/gpu/SharedGraphicsContext3D.cpp
)
ENDIF ()
if (ENABLE_MEDIA_STREAM)
LIST(APPEND WebCore_SOURCES
platform/mediastream/blackberry/MediaStreamCenterBlackBerry.cpp
)
ENDIF ()
IF (ENABLE_NETSCAPE_PLUGIN_API)
LIST(APPEND WebCore_SOURCES
plugins/PluginDatabase.cpp
plugins/PluginPackage.cpp
plugins/PluginView.cpp
plugins/blackberry/NPCallbacksBlackBerry.cpp
plugins/blackberry/PluginDataBlackBerry.cpp
plugins/blackberry/PluginPackageBlackBerry.cpp
plugins/blackberry/PluginViewBlackBerry.cpp
plugins/blackberry/PluginViewPrivateBlackBerry.cpp
)
ELSE ()
LIST(APPEND WebCore_SOURCES
plugins/PluginDataNone.cpp
plugins/PluginDatabase.cpp
plugins/PluginPackage.cpp
plugins/PluginPackageNone.cpp
plugins/PluginView.cpp
plugins/PluginViewNone.cpp
)
ENDIF ()
# To speed up linking when working on accel comp, you can move this whole chunk
# to Source/WebKit/blackberry/CMakeListsBlackBerry.txt.
# Append to WebKit_SOURCES instead of WebCore_SOURCES.
IF (WTF_USE_ACCELERATED_COMPOSITING)
LIST(APPEND WebCore_SOURCES
${WEBCORE_DIR}/platform/graphics/GraphicsLayer.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/CanvasLayerWebKitThread.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/EGLImageLayerWebKitThread.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/EGLImageLayerCompositingThreadClient.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerAnimation.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerCompositingThread.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerFilterRenderer.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerRenderer.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerRendererSurface.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerTile.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerTiler.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/LayerWebKitThread.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/PluginLayerWebKitThread.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/Texture.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/TextureCacheCompositingThread.cpp
${WEBCORE_DIR}/platform/graphics/blackberry/WebGLLayerWebKitThread.cpp
${WEBCORE_DIR}/rendering/RenderLayerBacking.cpp
${WEBCORE_DIR}/rendering/RenderLayerCompositor.cpp
)
ENDIF ()
SET(ENV{WEBKITDIR} ${CMAKE_SOURCE_DIR}/Source)
SET(ENV{PLATFORMNAME} ${CMAKE_SYSTEM_NAME})
EXECUTE_PROCESS(
COMMAND hostname
OUTPUT_VARIABLE host
)
STRING(REPLACE "\n" "" host1 "${host}")
SET(ENV{COMPUTERNAME} ${host1})
IF ($ENV{PUBLIC_BUILD})
ADD_DEFINITIONS(-DPUBLIC_BUILD=$ENV{PUBLIC_BUILD})
ENDIF ()
INSTALL(FILES ${WEBDOM_IDL_HEADERS} DESTINATION usr/include/browser/webkit/dom)
# Create DOM C++ code given an IDL input
# We define a new list of feature defines that is prefixed with LANGUAGE_CPP=1 so as to avoid the
# warning "missing whitespace after the macro name" when inlining "LANGUAGE_CPP=1 ${FEATURE_DEFINES}".
SET(FEATURE_DEFINES_WEBCORE "LANGUAGE_CPP=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
# FIXME: We need to add the IDLs for SQL storage and Web Workers. See PR #123484.
SET(WebCore_NO_CPP_IDL_FILES
${WebCore_SVG_IDL_FILES}
dom/CustomEvent.idl
dom/PopStateEvent.idl
inspector/ScriptProfile.idl
inspector/ScriptProfileNode.idl
)
LIST(APPEND WebCore_IDL_FILES
css/MediaQueryListListener.idl
)
SET(WebCore_CPP_IDL_FILES ${WebCore_IDL_FILES})
FOREACH (_file ${WebCore_NO_CPP_IDL_FILES})
STRING(REPLACE "${_file}" "" WebCore_CPP_IDL_FILES "${WebCore_CPP_IDL_FILES}")
ENDFOREACH ()
SET(WebCore_CPP_IDL_FILES
dom/EventListener.idl
"${WebCore_CPP_IDL_FILES}"
)
FOREACH (_idl ${WebCore_CPP_IDL_FILES})
SET(IDL_FILES_LIST "${IDL_FILES_LIST}${WEBCORE_DIR}/${_idl}\n")
ENDFOREACH ()
FILE(WRITE ${IDL_FILES_TMP} ${IDL_FILES_LIST})
ADD_CUSTOM_COMMAND(
OUTPUT ${SUPPLEMENTAL_DEPENDENCY_FILE}
DEPENDS ${WEBCORE_DIR}/bindings/scripts/preprocess-idls.pl ${SCRIPTS_RESOLVE_SUPPLEMENTAL} ${WebCore_CPP_IDL_FILES} ${IDL_ATTRIBUTES_FILE}
COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${WEBCORE_DIR}/bindings/scripts/preprocess-idls.pl --defines "${FEATURE_DEFINES_JAVASCRIPT}" --idlFilesList ${IDL_FILES_TMP} --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --supplementalDependencyFile ${SUPPLEMENTAL_DEPENDENCY_FILE} --idlAttributesFile ${IDL_ATTRIBUTES_FILE}
VERBATIM)
GENERATE_BINDINGS(WebCore_SOURCES
"${WebCore_CPP_IDL_FILES}"
"${WEBCORE_DIR}"
"${IDL_INCLUDES}"
"${FEATURE_DEFINES_WEBCORE}"
${DERIVED_SOURCES_WEBCORE_DIR} WebDOM CPP
${SUPPLEMENTAL_DEPENDENCY_FILE})
# Generate contents for PopupPicker.cpp
SET(WebCore_POPUP_CSS_AND_JS
${WEBCORE_DIR}/Resources/blackberry/popupControlBlackBerry.css
${WEBCORE_DIR}/Resources/blackberry/selectControlBlackBerry.css
${WEBCORE_DIR}/Resources/blackberry/selectControlBlackBerry.js
)
ADD_CUSTOM_COMMAND(
OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.h ${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.cpp
MAIN_DEPENDENCY ${WEBCORE_DIR}/make-file-arrays.py
DEPENDS ${WebCore_POPUP_CSS_AND_JS}
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}
)
LIST(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/PopupPicker.cpp)