1 LIST(INSERT WebKit_INCLUDE_DIRECTORIES 0
2 "${BLACKBERRY_THIRD_PARTY_DIR}" # For <unicode.h>, which is included from <sys/keycodes.h>.
3 "${BLACKBERRY_THIRD_PARTY_DIR}/icu"
6 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
7 "${JAVASCRIPTCORE_DIR}/wtf/text"
8 "${WEBCORE_DIR}/bindings/cpp"
9 "${WEBCORE_DIR}/history/blackberry"
10 "${WEBCORE_DIR}/html/canvas"
11 "${WEBCORE_DIR}/html/parser" # For HTMLParserIdioms.h
12 "${WEBCORE_DIR}/loader/appcache"
13 "${WEBCORE_DIR}/notifications"
14 "${WEBCORE_DIR}/platform/blackberry"
15 "${WEBCORE_DIR}/platform/graphics/blackberry"
16 "${WEBCORE_DIR}/platform/graphics/blackberry/skia"
17 "${WEBCORE_DIR}/platform/graphics/skia"
18 "${WEBCORE_DIR}/platform/network/blackberry"
19 "${WEBCORE_DIR}/Modules/websockets"
20 "${WEBCORE_DIR}/Modules/geolocation"
21 "${WEBCORE_DIR}/Modules/vibration"
22 "${WEBKIT_DIR}/blackberry/Api"
23 "${WEBKIT_DIR}/blackberry/WebCoreSupport"
24 "${WEBKIT_DIR}/blackberry/WebKitSupport"
25 "${CMAKE_SOURCE_DIR}/Source" # For JavaScriptCore API headers
28 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
29 # needed for DRT for now
30 "${JAVASCRIPTCORE_DIR}/wtf"
31 "${WEBCORE_DIR}/platform/mock"
32 "${WEBCORE_DIR}/svg/animation"
33 "${WEBCORE_DIR}/workers"
35 "${TOOLS_DIR}/DumpRenderTree"
36 "${TOOLS_DIR}/DumpRenderTree/blackberry"
40 IF (ENABLE_BATTERY_STATUS)
41 LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${WEBCORE_DIR}/Modules/battery)
42 LIST(APPEND WebKit_SOURCES blackberry/WebCoreSupport/BatteryClientBlackBerry.cpp)
45 IF (ENABLE_MEDIA_STREAM)
46 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
47 "${WEBCORE_DIR}/Modules/mediastream"
48 "${WEBCORE_DIR}/platform/mediastream"
50 LIST(APPEND WebKit_SOURCES
51 blackberry/WebCoreSupport/UserMediaClientImpl.cpp
55 ADD_DEFINITIONS(-DUSER_PROCESSES)
57 LIST(APPEND WebKit_SOURCES
58 blackberry/Api/BackingStore.cpp
59 blackberry/Api/BlackBerryGlobal.cpp
60 blackberry/Api/WebAnimation.cpp
61 blackberry/Api/WebKitMIMETypeConverter.cpp
62 blackberry/Api/WebKitTextCodec.cpp
63 blackberry/Api/WebOverlay.cpp
64 blackberry/Api/WebOverlayOverride.cpp
65 blackberry/Api/WebPage.cpp
66 blackberry/Api/WebPageCompositor.cpp
67 blackberry/Api/WebPageGroupLoadDeferrer.cpp
68 blackberry/Api/WebSettings.cpp
69 blackberry/Api/WebString.cpp
70 blackberry/Api/WebViewportArguments.cpp
71 blackberry/WebCoreSupport/AutofillManager.cpp
72 blackberry/WebCoreSupport/CacheClientBlackBerry.cpp
73 blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp
74 blackberry/WebCoreSupport/ClientExtension.cpp
75 blackberry/WebCoreSupport/ContextMenuClientBlackBerry.cpp
76 blackberry/WebCoreSupport/CredentialManager.cpp
77 blackberry/WebCoreSupport/CredentialTransformData.cpp
78 blackberry/WebCoreSupport/DeviceMotionClientBlackBerry.cpp
79 blackberry/WebCoreSupport/DeviceOrientationClientBlackBerry.cpp
80 blackberry/WebCoreSupport/DragClientBlackBerry.cpp
81 blackberry/WebCoreSupport/EditorClientBlackBerry.cpp
82 blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp
83 blackberry/WebCoreSupport/FrameNetworkingContextBlackBerry.cpp
84 blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp
85 blackberry/WebCoreSupport/IconDatabaseClientBlackBerry.cpp
86 blackberry/WebCoreSupport/InspectorClientBlackBerry.cpp
87 blackberry/WebCoreSupport/InspectorOverlay.cpp
88 blackberry/WebCoreSupport/JavaScriptDebuggerBlackBerry.cpp
89 blackberry/WebCoreSupport/NotificationPresenterImpl.cpp
90 blackberry/WebCoreSupport/VibrationClientBlackBerry.cpp
91 blackberry/WebCoreSupport/PagePopupBlackBerry.cpp
92 blackberry/WebCoreSupport/SelectPopupClient.cpp
93 blackberry/WebCoreSupport/DatePickerClient.cpp
94 blackberry/WebKitSupport/AboutData.cpp
95 blackberry/WebKitSupport/BackingStoreCompositingSurface.cpp
96 blackberry/WebKitSupport/BackingStoreTile.cpp
97 blackberry/WebKitSupport/BackingStoreClient.cpp
98 blackberry/WebKitSupport/DefaultTapHighlight.cpp
99 blackberry/WebKitSupport/DOMSupport.cpp
100 blackberry/WebKitSupport/FrameLayers.cpp
101 blackberry/WebKitSupport/InPageSearchManager.cpp
102 blackberry/WebKitSupport/InputHandler.cpp
103 blackberry/WebKitSupport/RenderQueue.cpp
104 blackberry/WebKitSupport/SelectionHandler.cpp
105 blackberry/WebKitSupport/SelectionOverlay.cpp
106 blackberry/WebKitSupport/SurfacePool.cpp
107 blackberry/WebKitSupport/TouchEventHandler.cpp
108 blackberry/WebKitSupport/FatFingers.cpp
112 ADD_DEFINITIONS (-DWTF_USE_OPENGL_ES_2=1)
113 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
114 ${OPENGL_INCLUDE_DIR}
115 ${THIRDPARTY_DIR}/ANGLE/src
116 ${THIRDPARTY_DIR}/ANGLE/include/GLSLANG
118 LIST(APPEND WebKit_LIBRARIES
123 IF (NOT PUBLIC_BUILD)
124 # DumpRenderTree sources
125 LIST(APPEND WebKit_SOURCES
126 blackberry/WebKitSupport/DumpRenderTreeSupport.cpp
127 ${TOOLS_DIR}/DumpRenderTree/blackberry/AccessibilityControllerBlackBerry.cpp
128 ${TOOLS_DIR}/DumpRenderTree/blackberry/AccessibilityUIElementBlackBerry.cpp
129 ${TOOLS_DIR}/DumpRenderTree/blackberry/DumpRenderTree.cpp
130 ${TOOLS_DIR}/DumpRenderTree/blackberry/EventSender.cpp
131 ${TOOLS_DIR}/DumpRenderTree/blackberry/GCControllerBlackBerry.cpp
132 ${TOOLS_DIR}/DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp
133 ${TOOLS_DIR}/DumpRenderTree/blackberry/PixelDumpSupportBlackBerry.cpp
134 ${TOOLS_DIR}/DumpRenderTree/blackberry/PNGImageEncoder.cpp
135 ${TOOLS_DIR}/DumpRenderTree/blackberry/WorkQueueItemBlackBerry.cpp
136 ${TOOLS_DIR}/DumpRenderTree/AccessibilityController.cpp
137 ${TOOLS_DIR}/DumpRenderTree/AccessibilityUIElement.cpp
138 ${TOOLS_DIR}/DumpRenderTree/AccessibilityTextMarker.cpp
139 ${TOOLS_DIR}/DumpRenderTree/LayoutTestController.cpp
140 ${TOOLS_DIR}/DumpRenderTree/CyclicRedundancyCheck.cpp
141 ${TOOLS_DIR}/DumpRenderTree/PixelDumpSupport.cpp
142 ${TOOLS_DIR}/DumpRenderTree/WorkQueue.cpp
143 ${TOOLS_DIR}/DumpRenderTree/GCController.cpp
147 SET(WebKit_LINK_FLAGS ${BLACKBERRY_LINK_FLAGS})
149 LIST(APPEND WebKit_LIBRARIES
154 ${FONTCONFIG_LIBRARY}
163 ${JavaScriptCore_LIBRARY_NAME}
179 ${WebKitPlatform_LIBRARY}
186 LIST(APPEND WebKit_LIBRARIES
191 IF (WTF_USE_ACCELERATED_COMPOSITING)
192 LIST(APPEND WebKit_SOURCES
193 blackberry/WebKitSupport/GLES2Context.cpp
195 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
196 "${WEBCORE_DIR}/platform/graphics/gles2"
198 LIST(APPEND WebKit_LIBRARIES
204 FILE(GLOB BBWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/blackberry/Api/*.h")
206 INSTALL(FILES ${BBWebKit_HEADERS} DESTINATION usr/include/browser/webkit)
208 IF (NOT PUBLIC_BUILD)
209 INSTALL(FILES ${TOOLS_DIR}/DumpRenderTree/blackberry/DumpRenderTreeBlackBerry.h
210 DESTINATION usr/include/browser/webkit)
213 SET(WebKit_INSTALL_DIR "${CMAKE_SYSTEM_PROCESSOR}/usr/lib/torch-webkit")
215 # Get the JavaScript file names from inspector.html, in order to keep the JavaScript files
216 # generated in the correct order, and to keep the file names in-sync with the changes of inspector.html
217 FILE (STRINGS ${WEBCORE_DIR}/inspector/front-end/inspector.html SCRIPT_TAGS REGEX "<script.* src=\".*js\".*></script>")
218 FOREACH (_line IN LISTS SCRIPT_TAGS)
219 STRING (STRIP ${_line} _stripped_line)
220 STRING (REGEX REPLACE "<script.* src=\"(.*\\.js)\".*></script>" "\\1" _js_file ${_stripped_line})
221 STRING (COMPARE EQUAL ${_js_file} "InspectorBackendCommands.js" _comp_result)
222 IF ( ${_comp_result} )
223 # InspectorBackendCommands.js was generated with the build, should get it from DERIVED_SOURCES_WEBCORE_DIR.
224 SET (_js_file "${DERIVED_SOURCES_WEBCORE_DIR}/${_js_file}")
226 SET (_js_file "${WEBCORE_DIR}/inspector/front-end/${_js_file}")
228 SET (JS_FILES ${JS_FILES} ${_js_file})
230 SET (JS_FILES ${JS_FILES} ${WEBKIT_DIR}/blackberry/WebCoreSupport/inspectorBB.js)
234 COMMAND cat ${JS_FILES} > ${DERIVED_SOURCES_WEBCORE_DIR}/javascript.js
235 DEPENDS ${WebCore_LIBRARY_NAME}
236 COMMENT "Web Inspector resources building..."
239 # Generate contents for AboutData.cpp
241 OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataHaveFeatures.cpp
242 MAIN_DEPENDENCY ${WEBKIT_DIR}/blackberry/WebCoreSupport/AboutDataHaveFeatures.in ${WEBKIT_DIR}/blackberry/WebCoreSupport/generateAboutDataFeatures.pl
243 COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/blackberry/WebCoreSupport/generateAboutDataFeatures.pl HAVE ${WEBKIT_DIR}/blackberry/WebCoreSupport/AboutDataHaveFeatures.in ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataHaveFeatures.cpp
247 OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataEnableFeatures.cpp
248 MAIN_DEPENDENCY ${WEBKIT_DIR}/blackberry/WebCoreSupport/AboutDataEnableFeatures.in ${WEBKIT_DIR}/blackberry/WebCoreSupport/generateAboutDataFeatures.pl
249 COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/blackberry/WebCoreSupport/generateAboutDataFeatures.pl ENABLE ${WEBKIT_DIR}/blackberry/WebCoreSupport/AboutDataEnableFeatures.in ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataEnableFeatures.cpp
253 OUTPUT ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataUseFeatures.cpp
254 MAIN_DEPENDENCY ${WEBKIT_DIR}/blackberry/WebCoreSupport/AboutDataUseFeatures.in ${WEBKIT_DIR}/blackberry/WebCoreSupport/generateAboutDataFeatures.pl
255 COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/blackberry/WebCoreSupport/generateAboutDataFeatures.pl USE ${WEBKIT_DIR}/blackberry/WebCoreSupport/AboutDataUseFeatures.in ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataUseFeatures.cpp
260 DEPENDS ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataHaveFeatures.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataEnableFeatures.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/AboutDataUseFeatures.cpp