blob: f0a3c068a381a5162959ad938c7aac8944151eeb [file] [log] [blame]
Torne (Richard Coles)926b0012013-03-28 15:32:48 +00001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Torne (Richard Coles)f5e4ad52013-08-05 13:57:57 +01006LOCAL_MODULE := third_party_WebKit_Source_web_webkit_gyp
Torne (Richard Coles)926b0012013-03-28 15:32:48 +00007LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
Torne (Richard Coles)5267f702013-06-11 10:57:24 +010014 $(call intermediates-dir-for,GYP,third_party_WebKit_Source_core_webcore_gyp)/webcore.stamp \
15 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_WebKit_Source_core_webcore_derived_gyp)/third_party_WebKit_Source_core_webcore_derived_gyp.a \
Ben Murdoch83750172013-07-24 10:36:59 +010016 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
17 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp)/skia_skia_library_gyp.a \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +000018 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
19 $(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp)/npapi.stamp \
20 $(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp)/v8.stamp
21
22GYP_GENERATED_OUTPUTS :=
23
24# Make sure our deps and generated files are built first.
25LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
26
27LOCAL_GENERATED_SOURCES :=
28
29GYP_COPIED_SOURCE_ORIGIN_DIRS :=
30
31LOCAL_SRC_FILES := \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010032 third_party/WebKit/Source/core/platform/chromium/support/Platform.cpp \
33 third_party/WebKit/Source/core/platform/chromium/support/WebActiveGestureAnimation.cpp \
Ben Murdoch0019e4e2013-07-18 11:57:54 +010034 third_party/WebKit/Source/core/platform/chromium/support/WebArrayBuffer.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010035 third_party/WebKit/Source/core/platform/chromium/support/WebAudioBus.cpp \
Ben Murdoch02772c62013-07-26 10:21:05 +010036 third_party/WebKit/Source/core/platform/chromium/support/WebCrypto.cpp \
Ben Murdoch591b9582013-07-10 11:41:44 +010037 third_party/WebKit/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +010038 third_party/WebKit/Source/core/platform/chromium/support/WebCryptoKey.cpp \
Torne (Richard Coles)e5249552013-05-15 11:35:13 +010039 third_party/WebKit/Source/core/platform/chromium/support/WebCursorInfo.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010040 third_party/WebKit/Source/core/platform/chromium/support/WebData.cpp \
Torne (Richard Coles)5267f702013-06-11 10:57:24 +010041 third_party/WebKit/Source/core/platform/chromium/support/WebDeviceMotionData.cpp \
Ben Murdoch83750172013-07-24 10:36:59 +010042 third_party/WebKit/Source/core/platform/chromium/support/WebDeviceOrientationData.cpp \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +010043 third_party/WebKit/Source/core/platform/chromium/support/WebFileSystemCallbacks.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010044 third_party/WebKit/Source/core/platform/chromium/support/WebFloatQuad.cpp \
45 third_party/WebKit/Source/core/platform/chromium/support/WebHTTPBody.cpp \
46 third_party/WebKit/Source/core/platform/chromium/support/WebHTTPLoadInfo.cpp \
47 third_party/WebKit/Source/core/platform/chromium/support/WebMediaConstraints.cpp \
48 third_party/WebKit/Source/core/platform/chromium/support/WebMediaStream.cpp \
49 third_party/WebKit/Source/core/platform/chromium/support/WebMediaStreamSource.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010050 third_party/WebKit/Source/core/platform/chromium/support/WebMediaStreamTrack.cpp \
51 third_party/WebKit/Source/core/platform/chromium/support/WebPrerender.cpp \
52 third_party/WebKit/Source/core/platform/chromium/support/WebPrerenderingSupport.cpp \
53 third_party/WebKit/Source/core/platform/chromium/support/WebRTCConfiguration.cpp \
54 third_party/WebKit/Source/core/platform/chromium/support/WebRTCICECandidate.cpp \
55 third_party/WebKit/Source/core/platform/chromium/support/WebRTCSessionDescription.cpp \
56 third_party/WebKit/Source/core/platform/chromium/support/WebRTCSessionDescriptionRequest.cpp \
57 third_party/WebKit/Source/core/platform/chromium/support/WebRTCStatsRequest.cpp \
58 third_party/WebKit/Source/core/platform/chromium/support/WebRTCStatsResponse.cpp \
59 third_party/WebKit/Source/core/platform/chromium/support/WebRTCVoidRequest.cpp \
60 third_party/WebKit/Source/core/platform/chromium/support/WebScrollbarImpl.cpp \
Torne (Richard Coles)e5249552013-05-15 11:35:13 +010061 third_party/WebKit/Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010062 third_party/WebKit/Source/core/platform/chromium/support/WebScrollbarThemeGeometryNative.cpp \
63 third_party/WebKit/Source/core/platform/chromium/support/WebSocketStreamError.cpp \
Torne (Richard Coles)5267f702013-06-11 10:57:24 +010064 third_party/WebKit/Source/core/platform/chromium/support/WebSourceInfo.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010065 third_party/WebKit/Source/core/platform/chromium/support/WebSpeechSynthesisUtterance.cpp \
66 third_party/WebKit/Source/core/platform/chromium/support/WebSpeechSynthesisVoice.cpp \
67 third_party/WebKit/Source/core/platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010068 third_party/WebKit/Source/core/platform/chromium/support/WebThreadSafeData.cpp \
69 third_party/WebKit/Source/core/platform/chromium/support/WebTransformKeyframe.cpp \
70 third_party/WebKit/Source/core/platform/chromium/support/WebURL.cpp \
71 third_party/WebKit/Source/core/platform/chromium/support/WebURLError.cpp \
72 third_party/WebKit/Source/core/platform/chromium/support/WebURLRequest.cpp \
73 third_party/WebKit/Source/core/platform/chromium/support/WebURLResponse.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +010074 third_party/WebKit/Source/web/ApplicationCacheHost.cpp \
75 third_party/WebKit/Source/web/AssertMatchingEnums.cpp \
76 third_party/WebKit/Source/web/AssociatedURLLoader.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +010077 third_party/WebKit/Source/web/AutofillPopupMenuClient.cpp \
78 third_party/WebKit/Source/web/BackForwardClientImpl.cpp \
79 third_party/WebKit/Source/web/ChromeClientImpl.cpp \
80 third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp \
81 third_party/WebKit/Source/web/ColorChooserUIController.cpp \
82 third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp \
83 third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp \
84 third_party/WebKit/Source/web/ContextMenuClientImpl.cpp \
85 third_party/WebKit/Source/web/DOMUtilitiesPrivate.cpp \
86 third_party/WebKit/Source/web/DatabaseObserver.cpp \
87 third_party/WebKit/Source/web/DateTimeChooserImpl.cpp \
88 third_party/WebKit/Source/web/DeviceOrientationClientProxy.cpp \
89 third_party/WebKit/Source/web/DragClientImpl.cpp \
90 third_party/WebKit/Source/web/EditorClientImpl.cpp \
91 third_party/WebKit/Source/web/EventListenerWrapper.cpp \
92 third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp \
93 third_party/WebKit/Source/web/ExternalPopupMenu.cpp \
94 third_party/WebKit/Source/web/FindInPageCoordinates.cpp \
95 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp \
Torne (Richard Coles)f5e4ad52013-08-05 13:57:57 +010096 third_party/WebKit/Source/web/FullscreenController.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +010097 third_party/WebKit/Source/web/GeolocationClientProxy.cpp \
98 third_party/WebKit/Source/web/GraphicsLayerFactoryChromium.cpp \
99 third_party/WebKit/Source/web/IDBCursorBackendProxy.cpp \
100 third_party/WebKit/Source/web/IDBDatabaseBackendProxy.cpp \
101 third_party/WebKit/Source/web/IDBFactoryBackendProxy.cpp \
102 third_party/WebKit/Source/web/InbandTextTrackPrivateImpl.cpp \
103 third_party/WebKit/Source/web/InspectorClientImpl.cpp \
104 third_party/WebKit/Source/web/InspectorFrontendClientImpl.cpp \
105 third_party/WebKit/Source/web/LinkHighlight.cpp \
Ben Murdoch83750172013-07-24 10:36:59 +0100106 third_party/WebKit/Source/web/LocalFileSystemClient.cpp \
Torne (Richard Coles)e1f1df52013-08-23 16:39:30 +0100107 third_party/WebKit/Source/web/MIDIClientProxy.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100108 third_party/WebKit/Source/web/MediaSourcePrivateImpl.cpp \
109 third_party/WebKit/Source/web/NotificationPresenterImpl.cpp \
110 third_party/WebKit/Source/web/PageOverlay.cpp \
111 third_party/WebKit/Source/web/PageOverlayList.cpp \
112 third_party/WebKit/Source/web/PageWidgetDelegate.cpp \
113 third_party/WebKit/Source/web/PinchViewports.cpp \
114 third_party/WebKit/Source/web/PopupContainer.cpp \
115 third_party/WebKit/Source/web/PopupListBox.cpp \
116 third_party/WebKit/Source/web/PopupMenuChromium.cpp \
117 third_party/WebKit/Source/web/PrerendererClientImpl.cpp \
118 third_party/WebKit/Source/web/ScrollbarGroup.cpp \
119 third_party/WebKit/Source/web/SharedWorkerRepository.cpp \
120 third_party/WebKit/Source/web/SourceBufferPrivateImpl.cpp \
121 third_party/WebKit/Source/web/SpeechInputClientImpl.cpp \
122 third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp \
123 third_party/WebKit/Source/web/StorageAreaProxy.cpp \
124 third_party/WebKit/Source/web/StorageNamespaceProxy.cpp \
125 third_party/WebKit/Source/web/StorageQuotaChromium.cpp \
126 third_party/WebKit/Source/web/UserMediaClientImpl.cpp \
127 third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp \
128 third_party/WebKit/Source/web/ViewportAnchor.cpp \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +0100129 third_party/WebKit/Source/web/WebAXObject.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100130 third_party/WebKit/Source/web/WebArrayBufferView.cpp \
131 third_party/WebKit/Source/web/WebBindings.cpp \
132 third_party/WebKit/Source/web/WebBlob.cpp \
133 third_party/WebKit/Source/web/WebBlobData.cpp \
134 third_party/WebKit/Source/web/WebCache.cpp \
135 third_party/WebKit/Source/web/WebCachedURLRequest.cpp \
136 third_party/WebKit/Source/web/WebColorName.cpp \
137 third_party/WebKit/Source/web/WebCrossOriginPreflightResultCache.cpp \
Ben Murdoch1fad5ca2013-08-07 11:05:11 +0100138 third_party/WebKit/Source/web/WebCustomElement.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100139 third_party/WebKit/Source/web/WebDOMActivityLogger.cpp \
140 third_party/WebKit/Source/web/WebDOMCustomEvent.cpp \
141 third_party/WebKit/Source/web/WebDOMEvent.cpp \
142 third_party/WebKit/Source/web/WebDOMEventListener.cpp \
143 third_party/WebKit/Source/web/WebDOMEventListenerPrivate.cpp \
144 third_party/WebKit/Source/web/WebDOMMessageEvent.cpp \
145 third_party/WebKit/Source/web/WebDOMMouseEvent.cpp \
146 third_party/WebKit/Source/web/WebDOMMutationEvent.cpp \
147 third_party/WebKit/Source/web/WebDOMProgressEvent.cpp \
148 third_party/WebKit/Source/web/WebDOMResourceProgressEvent.cpp \
149 third_party/WebKit/Source/web/WebDataSourceImpl.cpp \
150 third_party/WebKit/Source/web/WebDatabase.cpp \
151 third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp \
152 third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp \
153 third_party/WebKit/Source/web/WebDeviceOrientation.cpp \
154 third_party/WebKit/Source/web/WebDeviceOrientationClientMock.cpp \
155 third_party/WebKit/Source/web/WebDeviceOrientationController.cpp \
156 third_party/WebKit/Source/web/WebDocument.cpp \
157 third_party/WebKit/Source/web/WebDocumentType.cpp \
158 third_party/WebKit/Source/web/WebDragData.cpp \
159 third_party/WebKit/Source/web/WebElement.cpp \
160 third_party/WebKit/Source/web/WebEntities.cpp \
161 third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100162 third_party/WebKit/Source/web/WebFontCache.cpp \
163 third_party/WebKit/Source/web/WebFontDescription.cpp \
164 third_party/WebKit/Source/web/WebFontImpl.cpp \
165 third_party/WebKit/Source/web/WebFormControlElement.cpp \
166 third_party/WebKit/Source/web/WebFormElement.cpp \
167 third_party/WebKit/Source/web/WebFrameImpl.cpp \
168 third_party/WebKit/Source/web/WebGeolocationClientMock.cpp \
169 third_party/WebKit/Source/web/WebGeolocationController.cpp \
170 third_party/WebKit/Source/web/WebGeolocationError.cpp \
171 third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp \
172 third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp \
173 third_party/WebKit/Source/web/WebGeolocationPosition.cpp \
174 third_party/WebKit/Source/web/WebGlyphCache.cpp \
175 third_party/WebKit/Source/web/WebHelperPluginImpl.cpp \
176 third_party/WebKit/Source/web/WebHistoryItem.cpp \
177 third_party/WebKit/Source/web/WebHitTestResult.cpp \
178 third_party/WebKit/Source/web/WebIDBCallbacksImpl.cpp \
179 third_party/WebKit/Source/web/WebIDBDatabaseCallbacksImpl.cpp \
180 third_party/WebKit/Source/web/WebIDBDatabaseError.cpp \
181 third_party/WebKit/Source/web/WebIDBKey.cpp \
182 third_party/WebKit/Source/web/WebIDBKeyPath.cpp \
183 third_party/WebKit/Source/web/WebIDBKeyRange.cpp \
184 third_party/WebKit/Source/web/WebIDBMetadata.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100185 third_party/WebKit/Source/web/WebImageCache.cpp \
186 third_party/WebKit/Source/web/WebImageDecoder.cpp \
187 third_party/WebKit/Source/web/WebImageSkia.cpp \
188 third_party/WebKit/Source/web/WebInputElement.cpp \
189 third_party/WebKit/Source/web/WebInputEvent.cpp \
190 third_party/WebKit/Source/web/WebInputEventConversion.cpp \
191 third_party/WebKit/Source/web/WebKit.cpp \
192 third_party/WebKit/Source/web/WebLabelElement.cpp \
Torne (Richard Coles)e1f1df52013-08-23 16:39:30 +0100193 third_party/WebKit/Source/web/WebMIDIClientMock.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100194 third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp \
195 third_party/WebKit/Source/web/WebMediaPlayerClientImpl.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100196 third_party/WebKit/Source/web/WebMediaStreamRegistry.cpp \
197 third_party/WebKit/Source/web/WebNetworkStateNotifier.cpp \
198 third_party/WebKit/Source/web/WebNode.cpp \
199 third_party/WebKit/Source/web/WebNodeCollection.cpp \
200 third_party/WebKit/Source/web/WebNodeList.cpp \
201 third_party/WebKit/Source/web/WebNotification.cpp \
202 third_party/WebKit/Source/web/WebOptionElement.cpp \
203 third_party/WebKit/Source/web/WebPagePopupImpl.cpp \
204 third_party/WebKit/Source/web/WebPageSerializer.cpp \
205 third_party/WebKit/Source/web/WebPageSerializerImpl.cpp \
206 third_party/WebKit/Source/web/WebPasswordFormData.cpp \
207 third_party/WebKit/Source/web/WebPasswordFormUtils.cpp \
208 third_party/WebKit/Source/web/WebPerformance.cpp \
209 third_party/WebKit/Source/web/WebPluginContainerImpl.cpp \
210 third_party/WebKit/Source/web/WebPluginDocument.cpp \
211 third_party/WebKit/Source/web/WebPluginLoadObserver.cpp \
212 third_party/WebKit/Source/web/WebPluginScrollbarImpl.cpp \
213 third_party/WebKit/Source/web/WebPopupMenuImpl.cpp \
214 third_party/WebKit/Source/web/WebRange.cpp \
215 third_party/WebKit/Source/web/WebRuntimeFeatures.cpp \
216 third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp \
217 third_party/WebKit/Source/web/WebScopedUserGesture.cpp \
218 third_party/WebKit/Source/web/WebScriptBindings.cpp \
219 third_party/WebKit/Source/web/WebScriptController.cpp \
220 third_party/WebKit/Source/web/WebScrollbarThemePainter.cpp \
221 third_party/WebKit/Source/web/WebSearchableFormData.cpp \
222 third_party/WebKit/Source/web/WebSecurityOrigin.cpp \
223 third_party/WebKit/Source/web/WebSecurityPolicy.cpp \
224 third_party/WebKit/Source/web/WebSelectElement.cpp \
Torne (Richard Coles)c0e19a62013-08-30 15:15:11 +0100225 third_party/WebKit/Source/web/WebSelector.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100226 third_party/WebKit/Source/web/WebSerializedScriptValue.cpp \
227 third_party/WebKit/Source/web/WebSettingsImpl.cpp \
228 third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp \
229 third_party/WebKit/Source/web/WebSocket.cpp \
230 third_party/WebKit/Source/web/WebSocketImpl.cpp \
231 third_party/WebKit/Source/web/WebSpeechGrammar.cpp \
232 third_party/WebKit/Source/web/WebSpeechInputResult.cpp \
233 third_party/WebKit/Source/web/WebSpeechRecognitionHandle.cpp \
234 third_party/WebKit/Source/web/WebSpeechRecognitionResult.cpp \
235 third_party/WebKit/Source/web/WebStorageEventDispatcherImpl.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100236 third_party/WebKit/Source/web/WebSurroundingText.cpp \
237 third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp \
238 third_party/WebKit/Source/web/WebTextCheckingResult.cpp \
239 third_party/WebKit/Source/web/WebTextInputInfo.cpp \
240 third_party/WebKit/Source/web/WebTextRun.cpp \
241 third_party/WebKit/Source/web/WebURLLoadTiming.cpp \
242 third_party/WebKit/Source/web/WebUserGestureIndicator.cpp \
243 third_party/WebKit/Source/web/WebUserGestureToken.cpp \
244 third_party/WebKit/Source/web/WebUserMediaRequest.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100245 third_party/WebKit/Source/web/WebViewImpl.cpp \
246 third_party/WebKit/Source/web/WebWorkerBase.cpp \
247 third_party/WebKit/Source/web/WebWorkerClientImpl.cpp \
248 third_party/WebKit/Source/web/WebWorkerInfo.cpp \
249 third_party/WebKit/Source/web/WebWorkerRunLoop.cpp \
250 third_party/WebKit/Source/web/WorkerAllowMainThreadBridgeBase.cpp \
Ben Murdoch83750172013-07-24 10:36:59 +0100251 third_party/WebKit/Source/web/WorkerFileSystemClient.cpp \
Ben Murdoche69819b2013-07-17 14:56:49 +0100252 third_party/WebKit/Source/web/android/WebInputEventFactory.cpp \
253 third_party/WebKit/Source/web/linux/WebFontRenderStyle.cpp \
254 third_party/WebKit/Source/web/linux/WebFontRendering.cpp \
255 third_party/WebKit/Source/web/painting/ContinuousPainter.cpp \
256 third_party/WebKit/Source/web/painting/PaintAggregator.cpp
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000257
258
259# Flags passed to both C and C++ files.
Ben Murdoch591b9582013-07-10 11:41:44 +0100260MY_CFLAGS_Debug := \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000261 -fstack-protector \
262 --param=ssp-buffer-size=4 \
263 -Werror \
264 -fno-exceptions \
265 -fno-strict-aliasing \
266 -Wall \
267 -Wno-unused-parameter \
268 -Wno-missing-field-initializers \
269 -fvisibility=hidden \
270 -pipe \
271 -fPIC \
272 -fno-tree-sra \
273 -fuse-ld=gold \
274 -Wno-psabi \
275 -ffunction-sections \
276 -funwind-tables \
277 -g \
278 -fstack-protector \
279 -fno-short-enums \
280 -finline-limit=64 \
281 -Wa,--noexecstack \
282 -U_FORTIFY_SOURCE \
283 -Wno-extra \
284 -Wno-ignored-qualifiers \
285 -Wno-type-limits \
286 -Wno-address \
287 -Wno-format-security \
288 -Wno-return-type \
289 -Wno-sequence-point \
290 -Os \
291 -g \
292 -fomit-frame-pointer \
293 -fdata-sections \
294 -ffunction-sections
295
Ben Murdoch591b9582013-07-10 11:41:44 +0100296MY_DEFS_Debug := \
Torne (Richard Coles)521d96e2013-06-19 11:58:24 +0100297 '-DANGLE_DX11' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000298 '-D_FILE_OFFSET_BITS=64' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000299 '-DNO_TCMALLOC' \
Ben Murdoche69819b2013-07-17 14:56:49 +0100300 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
301 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000302 '-DDISABLE_NACL' \
303 '-DCHROMIUM_BUILD' \
304 '-DUSE_LIBJPEG_TURBO=1' \
305 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdoch83750172013-07-24 10:36:59 +0100306 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000307 '-DENABLE_GPU=1' \
308 '-DUSE_OPENSSL=1' \
309 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +0100310 '-DCLD_VERSION=1' \
Torne (Richard Coles)06f816c2013-09-26 13:25:12 +0100311 '-DBLINK_IMPLEMENTATION=1' \
Torne (Richard Coles)521d96e2013-06-19 11:58:24 +0100312 '-DINSIDE_WEBKIT' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000313 '-DENABLE_CSS3_TEXT=0' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000314 '-DENABLE_CSS_EXCLUSIONS=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000315 '-DENABLE_CSS_REGIONS=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000316 '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
Torne (Richard Coles)93ac45c2013-05-29 14:40:20 +0100317 '-DENABLE_ENCRYPTED_MEDIA_V2=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000318 '-DENABLE_SVG_FONTS=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000319 '-DENABLE_TOUCH_ICON_LOADING=1' \
Torne (Richard Coles)521d96e2013-06-19 11:58:24 +0100320 '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +0100321 '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000322 '-DENABLE_CALENDAR_PICKER=0' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000323 '-DENABLE_FAST_MOBILE_SCROLLING=1' \
324 '-DENABLE_INPUT_SPEECH=0' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000325 '-DENABLE_LEGACY_NOTIFICATIONS=0' \
326 '-DENABLE_MEDIA_CAPTURE=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000327 '-DENABLE_ORIENTATION_EVENTS=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000328 '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000329 '-DENABLE_OPENTYPE_VERTICAL=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000330 '-DU_USING_ICU_NAMESPACE=0' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000331 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdoch83750172013-07-24 10:36:59 +0100332 '-DSK_SUPPORT_GPU=1' \
333 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)06f816c2013-09-26 13:25:12 +0100334 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Torne (Richard Coles)e5249552013-05-15 11:35:13 +0100335 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdoch83750172013-07-24 10:36:59 +0100336 '-DSK_USE_POSIX_THREADS' \
Ben Murdoch3c9e4ae2013-08-12 14:20:44 +0100337 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000338 '-D__STDC_CONSTANT_MACROS' \
339 '-D__STDC_FORMAT_MACROS' \
340 '-DANDROID' \
341 '-D__GNU_SOURCE=1' \
342 '-DUSE_STLPORT=1' \
343 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
344 '-DCHROME_BUILD_ID=""' \
345 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
346 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
347 '-D_DEBUG'
348
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000349
350# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdoch591b9582013-07-10 11:41:44 +0100351LOCAL_C_INCLUDES_Debug := \
Ben Murdoch3464d022013-07-25 10:06:57 +0100352 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
353 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
354 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdoch591b9582013-07-10 11:41:44 +0100355 $(LOCAL_PATH)/third_party/WebKit/public/web \
Ben Murdoche69819b2013-07-17 14:56:49 +0100356 $(LOCAL_PATH)/third_party/WebKit/Source/web \
Torne (Richard Coles)521d96e2013-06-19 11:58:24 +0100357 $(LOCAL_PATH)/third_party/angle_dx11/include \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000358 $(LOCAL_PATH)/third_party/skia/include/utils \
Ben Murdoch591b9582013-07-10 11:41:44 +0100359 $(LOCAL_PATH)/third_party/WebKit/public/web/android \
360 $(LOCAL_PATH)/third_party/WebKit/public/web/linux \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000361 $(LOCAL_PATH)/third_party/khronos \
362 $(LOCAL_PATH)/gpu \
363 $(LOCAL_PATH) \
Torne (Richard Coles)5267f702013-06-11 10:57:24 +0100364 $(LOCAL_PATH)/third_party/WebKit \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000365 $(LOCAL_PATH)/third_party/WebKit/Source \
Torne (Richard Coles)f5e4ad52013-08-05 13:57:57 +0100366 $(gyp_shared_intermediate_dir)/blink \
367 $(gyp_shared_intermediate_dir)/blink/bindings \
Torne (Richard Coles)93ac45c2013-05-29 14:40:20 +0100368 $(PWD)/external/icu4c/common \
369 $(PWD)/external/icu4c/i18n \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000370 $(LOCAL_PATH)/third_party/qcms/src \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000371 $(LOCAL_PATH)/third_party/skia/src/core \
Ben Murdoch83750172013-07-24 10:36:59 +0100372 $(LOCAL_PATH)/skia/config \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000373 $(LOCAL_PATH)/third_party/skia/include/config \
374 $(LOCAL_PATH)/third_party/skia/include/core \
375 $(LOCAL_PATH)/third_party/skia/include/effects \
376 $(LOCAL_PATH)/third_party/skia/include/pdf \
377 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdoch591b9582013-07-10 11:41:44 +0100378 $(LOCAL_PATH)/third_party/skia/include/lazy \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +0100379 $(LOCAL_PATH)/third_party/skia/include/pathops \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000380 $(LOCAL_PATH)/third_party/skia/include/pipe \
381 $(LOCAL_PATH)/third_party/skia/include/ports \
382 $(LOCAL_PATH)/skia/ext \
383 $(LOCAL_PATH)/third_party/npapi \
384 $(LOCAL_PATH)/third_party/npapi/bindings \
385 $(LOCAL_PATH)/v8/include \
Torne (Richard Coles)93ac45c2013-05-29 14:40:20 +0100386 $(PWD)/frameworks/wilhelm/include \
387 $(PWD)/bionic \
388 $(PWD)/external/stlport/stlport
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000389
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000390
391# Flags passed to only C++ (and not C) files.
Ben Murdoch591b9582013-07-10 11:41:44 +0100392LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000393 -Wno-c++0x-compat \
394 -fno-rtti \
395 -fno-threadsafe-statics \
396 -fvisibility-inlines-hidden \
397 -Wsign-compare \
398 -Wno-abi \
399 -Wno-error=c++0x-compat \
400 -Wno-non-virtual-dtor \
401 -Wno-sign-promo \
402 -Wno-non-virtual-dtor
403
Ben Murdoch591b9582013-07-10 11:41:44 +0100404
405# Flags passed to both C and C++ files.
406MY_CFLAGS_Release := \
407 -fstack-protector \
408 --param=ssp-buffer-size=4 \
409 -Werror \
410 -fno-exceptions \
411 -fno-strict-aliasing \
412 -Wall \
413 -Wno-unused-parameter \
414 -Wno-missing-field-initializers \
415 -fvisibility=hidden \
416 -pipe \
417 -fPIC \
418 -fno-tree-sra \
419 -fuse-ld=gold \
420 -Wno-psabi \
421 -ffunction-sections \
422 -funwind-tables \
423 -g \
424 -fstack-protector \
425 -fno-short-enums \
426 -finline-limit=64 \
427 -Wa,--noexecstack \
428 -U_FORTIFY_SOURCE \
429 -Wno-extra \
430 -Wno-ignored-qualifiers \
431 -Wno-type-limits \
432 -Wno-address \
433 -Wno-format-security \
434 -Wno-return-type \
435 -Wno-sequence-point \
436 -Os \
437 -fno-ident \
438 -fdata-sections \
439 -ffunction-sections \
440 -fomit-frame-pointer
441
442MY_DEFS_Release := \
443 '-DANGLE_DX11' \
444 '-D_FILE_OFFSET_BITS=64' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100445 '-DNO_TCMALLOC' \
Ben Murdoche69819b2013-07-17 14:56:49 +0100446 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
447 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100448 '-DDISABLE_NACL' \
449 '-DCHROMIUM_BUILD' \
450 '-DUSE_LIBJPEG_TURBO=1' \
451 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdoch83750172013-07-24 10:36:59 +0100452 '-DENABLE_CONFIGURATION_POLICY' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100453 '-DENABLE_GPU=1' \
454 '-DUSE_OPENSSL=1' \
455 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +0100456 '-DCLD_VERSION=1' \
Torne (Richard Coles)06f816c2013-09-26 13:25:12 +0100457 '-DBLINK_IMPLEMENTATION=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100458 '-DINSIDE_WEBKIT' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100459 '-DENABLE_CSS3_TEXT=0' \
460 '-DENABLE_CSS_EXCLUSIONS=1' \
461 '-DENABLE_CSS_REGIONS=1' \
462 '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
463 '-DENABLE_ENCRYPTED_MEDIA_V2=1' \
464 '-DENABLE_SVG_FONTS=1' \
465 '-DENABLE_TOUCH_ICON_LOADING=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100466 '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100467 '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
468 '-DENABLE_CALENDAR_PICKER=0' \
469 '-DENABLE_FAST_MOBILE_SCROLLING=1' \
470 '-DENABLE_INPUT_SPEECH=0' \
471 '-DENABLE_LEGACY_NOTIFICATIONS=0' \
472 '-DENABLE_MEDIA_CAPTURE=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100473 '-DENABLE_ORIENTATION_EVENTS=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100474 '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100475 '-DENABLE_OPENTYPE_VERTICAL=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100476 '-DU_USING_ICU_NAMESPACE=0' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100477 '-DSK_ENABLE_INST_COUNT=0' \
Ben Murdoch83750172013-07-24 10:36:59 +0100478 '-DSK_SUPPORT_GPU=1' \
479 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
Torne (Richard Coles)06f816c2013-09-26 13:25:12 +0100480 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100481 '-DSK_BUILD_FOR_ANDROID' \
Ben Murdoch83750172013-07-24 10:36:59 +0100482 '-DSK_USE_POSIX_THREADS' \
Ben Murdoch3c9e4ae2013-08-12 14:20:44 +0100483 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
Ben Murdoch591b9582013-07-10 11:41:44 +0100484 '-D__STDC_CONSTANT_MACROS' \
485 '-D__STDC_FORMAT_MACROS' \
486 '-DANDROID' \
487 '-D__GNU_SOURCE=1' \
488 '-DUSE_STLPORT=1' \
489 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
490 '-DCHROME_BUILD_ID=""' \
491 '-DNDEBUG' \
492 '-DNVALGRIND' \
493 '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
494
495
496# Include paths placed before CFLAGS/CPPFLAGS
497LOCAL_C_INCLUDES_Release := \
Ben Murdoch3464d022013-07-25 10:06:57 +0100498 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
499 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
500 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
Ben Murdoch591b9582013-07-10 11:41:44 +0100501 $(LOCAL_PATH)/third_party/WebKit/public/web \
Ben Murdoche69819b2013-07-17 14:56:49 +0100502 $(LOCAL_PATH)/third_party/WebKit/Source/web \
Ben Murdoch591b9582013-07-10 11:41:44 +0100503 $(LOCAL_PATH)/third_party/angle_dx11/include \
504 $(LOCAL_PATH)/third_party/skia/include/utils \
505 $(LOCAL_PATH)/third_party/WebKit/public/web/android \
506 $(LOCAL_PATH)/third_party/WebKit/public/web/linux \
Ben Murdoch591b9582013-07-10 11:41:44 +0100507 $(LOCAL_PATH)/third_party/khronos \
508 $(LOCAL_PATH)/gpu \
509 $(LOCAL_PATH) \
510 $(LOCAL_PATH)/third_party/WebKit \
511 $(LOCAL_PATH)/third_party/WebKit/Source \
Torne (Richard Coles)f5e4ad52013-08-05 13:57:57 +0100512 $(gyp_shared_intermediate_dir)/blink \
513 $(gyp_shared_intermediate_dir)/blink/bindings \
Ben Murdoch591b9582013-07-10 11:41:44 +0100514 $(PWD)/external/icu4c/common \
515 $(PWD)/external/icu4c/i18n \
516 $(LOCAL_PATH)/third_party/qcms/src \
Ben Murdoch591b9582013-07-10 11:41:44 +0100517 $(LOCAL_PATH)/third_party/skia/src/core \
Ben Murdoch83750172013-07-24 10:36:59 +0100518 $(LOCAL_PATH)/skia/config \
Ben Murdoch591b9582013-07-10 11:41:44 +0100519 $(LOCAL_PATH)/third_party/skia/include/config \
520 $(LOCAL_PATH)/third_party/skia/include/core \
521 $(LOCAL_PATH)/third_party/skia/include/effects \
522 $(LOCAL_PATH)/third_party/skia/include/pdf \
523 $(LOCAL_PATH)/third_party/skia/include/gpu \
Ben Murdoch591b9582013-07-10 11:41:44 +0100524 $(LOCAL_PATH)/third_party/skia/include/lazy \
525 $(LOCAL_PATH)/third_party/skia/include/pathops \
526 $(LOCAL_PATH)/third_party/skia/include/pipe \
527 $(LOCAL_PATH)/third_party/skia/include/ports \
528 $(LOCAL_PATH)/skia/ext \
529 $(LOCAL_PATH)/third_party/npapi \
530 $(LOCAL_PATH)/third_party/npapi/bindings \
531 $(LOCAL_PATH)/v8/include \
532 $(PWD)/frameworks/wilhelm/include \
533 $(PWD)/bionic \
534 $(PWD)/external/stlport/stlport
535
536
537# Flags passed to only C++ (and not C) files.
538LOCAL_CPPFLAGS_Release := \
539 -Wno-c++0x-compat \
540 -fno-rtti \
541 -fno-threadsafe-statics \
542 -fvisibility-inlines-hidden \
543 -Wsign-compare \
544 -Wno-abi \
545 -Wno-error=c++0x-compat \
546 -Wno-non-virtual-dtor \
547 -Wno-sign-promo \
548 -Wno-non-virtual-dtor
549
550
551LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
552LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
553LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000554### Rules for final target.
555
Ben Murdoch591b9582013-07-10 11:41:44 +0100556LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000557 -Wl,-z,now \
558 -Wl,-z,relro \
559 -Wl,-z,noexecstack \
560 -fPIC \
561 -Wl,-z,relro \
562 -Wl,-z,now \
563 -fuse-ld=gold \
564 -nostdlib \
565 -Wl,--no-undefined \
566 -Wl,--exclude-libs=ALL \
567 -Wl,--icf=safe \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +0100568 -Wl,--fatal-warnings \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +0100569 -Wl,--gc-sections \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +0100570 -Wl,--warn-shared-textrel \
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000571 -Wl,-O1 \
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +0100572 -Wl,--as-needed
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000573
574
Ben Murdoch591b9582013-07-10 11:41:44 +0100575LOCAL_LDFLAGS_Release := \
576 -Wl,-z,now \
577 -Wl,-z,relro \
578 -Wl,-z,noexecstack \
579 -fPIC \
580 -Wl,-z,relro \
581 -Wl,-z,now \
582 -fuse-ld=gold \
583 -nostdlib \
584 -Wl,--no-undefined \
585 -Wl,--exclude-libs=ALL \
586 -Wl,--icf=safe \
587 -Wl,-O1 \
588 -Wl,--as-needed \
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +0100589 -Wl,--gc-sections \
590 -Wl,--fatal-warnings \
591 -Wl,--warn-shared-textrel
Ben Murdoch591b9582013-07-10 11:41:44 +0100592
593
594LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
595
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000596LOCAL_STATIC_LIBRARIES := \
Torne (Richard Coles)5267f702013-06-11 10:57:24 +0100597 third_party_WebKit_Source_core_webcore_derived_gyp \
Ben Murdoch83750172013-07-24 10:36:59 +0100598 skia_skia_library_gyp
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000599
600# Enable grouping to fix circular references
601LOCAL_GROUP_STATIC_LIBRARIES := true
602
603LOCAL_SHARED_LIBRARIES := \
604 libstlport \
605 libdl
606
607# Add target alias to "gyp_all_modules" target.
608.PHONY: gyp_all_modules
Torne (Richard Coles)f5e4ad52013-08-05 13:57:57 +0100609gyp_all_modules: third_party_WebKit_Source_web_webkit_gyp
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000610
611# Alias gyp target name.
612.PHONY: webkit
Torne (Richard Coles)f5e4ad52013-08-05 13:57:57 +0100613webkit: third_party_WebKit_Source_web_webkit_gyp
Torne (Richard Coles)926b0012013-03-28 15:32:48 +0000614
615include $(BUILD_STATIC_LIBRARY)