1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_WebKit_Source_web_webkit_gyp
7LOCAL_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 := \
14	$(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 \
16	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
17	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
18	$(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp)/npapi.stamp \
19	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp)/v8.stamp
20
21GYP_GENERATED_OUTPUTS :=
22
23# Make sure our deps and generated files are built first.
24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
25
26LOCAL_GENERATED_SOURCES :=
27
28GYP_COPIED_SOURCE_ORIGIN_DIRS :=
29
30LOCAL_SRC_FILES := \
31	third_party/WebKit/Source/core/platform/chromium/support/Platform.cpp \
32	third_party/WebKit/Source/core/platform/chromium/support/WebActiveGestureAnimation.cpp \
33	third_party/WebKit/Source/core/platform/chromium/support/WebArrayBuffer.cpp \
34	third_party/WebKit/Source/core/platform/chromium/support/WebAudioBus.cpp \
35	third_party/WebKit/Source/core/platform/chromium/support/WebCrypto.cpp \
36	third_party/WebKit/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp \
37	third_party/WebKit/Source/core/platform/chromium/support/WebCryptoKey.cpp \
38	third_party/WebKit/Source/core/platform/chromium/support/WebCursorInfo.cpp \
39	third_party/WebKit/Source/core/platform/chromium/support/WebData.cpp \
40	third_party/WebKit/Source/core/platform/chromium/support/WebDeviceMotionData.cpp \
41	third_party/WebKit/Source/core/platform/chromium/support/WebDeviceOrientationData.cpp \
42	third_party/WebKit/Source/core/platform/chromium/support/WebFloatQuad.cpp \
43	third_party/WebKit/Source/core/platform/chromium/support/WebHTTPBody.cpp \
44	third_party/WebKit/Source/core/platform/chromium/support/WebHTTPLoadInfo.cpp \
45	third_party/WebKit/Source/core/platform/chromium/support/WebMediaConstraints.cpp \
46	third_party/WebKit/Source/core/platform/chromium/support/WebMediaStream.cpp \
47	third_party/WebKit/Source/core/platform/chromium/support/WebMediaStreamSource.cpp \
48	third_party/WebKit/Source/core/platform/chromium/support/WebMediaStreamTrack.cpp \
49	third_party/WebKit/Source/core/platform/chromium/support/WebPrerender.cpp \
50	third_party/WebKit/Source/core/platform/chromium/support/WebPrerenderingSupport.cpp \
51	third_party/WebKit/Source/core/platform/chromium/support/WebRTCConfiguration.cpp \
52	third_party/WebKit/Source/core/platform/chromium/support/WebRTCICECandidate.cpp \
53	third_party/WebKit/Source/core/platform/chromium/support/WebRTCSessionDescription.cpp \
54	third_party/WebKit/Source/core/platform/chromium/support/WebRTCSessionDescriptionRequest.cpp \
55	third_party/WebKit/Source/core/platform/chromium/support/WebRTCStatsRequest.cpp \
56	third_party/WebKit/Source/core/platform/chromium/support/WebRTCStatsResponse.cpp \
57	third_party/WebKit/Source/core/platform/chromium/support/WebRTCVoidRequest.cpp \
58	third_party/WebKit/Source/core/platform/chromium/support/WebScrollbarImpl.cpp \
59	third_party/WebKit/Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.cpp \
60	third_party/WebKit/Source/core/platform/chromium/support/WebScrollbarThemeGeometryNative.cpp \
61	third_party/WebKit/Source/core/platform/chromium/support/WebSocketStreamError.cpp \
62	third_party/WebKit/Source/core/platform/chromium/support/WebSourceInfo.cpp \
63	third_party/WebKit/Source/core/platform/chromium/support/WebSpeechSynthesisUtterance.cpp \
64	third_party/WebKit/Source/core/platform/chromium/support/WebSpeechSynthesisVoice.cpp \
65	third_party/WebKit/Source/core/platform/chromium/support/WebSpeechSynthesizerClientImpl.cpp \
66	third_party/WebKit/Source/core/platform/chromium/support/WebThreadSafeData.cpp \
67	third_party/WebKit/Source/core/platform/chromium/support/WebTransformKeyframe.cpp \
68	third_party/WebKit/Source/core/platform/chromium/support/WebURL.cpp \
69	third_party/WebKit/Source/core/platform/chromium/support/WebURLError.cpp \
70	third_party/WebKit/Source/core/platform/chromium/support/WebURLRequest.cpp \
71	third_party/WebKit/Source/core/platform/chromium/support/WebURLResponse.cpp \
72	third_party/WebKit/Source/web/ApplicationCacheHost.cpp \
73	third_party/WebKit/Source/web/AssertMatchingEnums.cpp \
74	third_party/WebKit/Source/web/AssociatedURLLoader.cpp \
75	third_party/WebKit/Source/web/AsyncFileSystemChromium.cpp \
76	third_party/WebKit/Source/web/AsyncFileWriterChromium.cpp \
77	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 \
96	third_party/WebKit/Source/web/FullscreenController.cpp \
97	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 \
106	third_party/WebKit/Source/web/LocalFileSystemClient.cpp \
107	third_party/WebKit/Source/web/MIDIClientImpl.cpp \
108	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 \
129	third_party/WebKit/Source/web/WebAccessibilityObject.cpp \
130	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 \
138	third_party/WebKit/Source/web/WebCustomElement.cpp \
139	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 \
162	third_party/WebKit/Source/web/WebFileSystemCallbacksImpl.cpp \
163	third_party/WebKit/Source/web/WebFontCache.cpp \
164	third_party/WebKit/Source/web/WebFontDescription.cpp \
165	third_party/WebKit/Source/web/WebFontImpl.cpp \
166	third_party/WebKit/Source/web/WebFormControlElement.cpp \
167	third_party/WebKit/Source/web/WebFormElement.cpp \
168	third_party/WebKit/Source/web/WebFrameImpl.cpp \
169	third_party/WebKit/Source/web/WebGeolocationClientMock.cpp \
170	third_party/WebKit/Source/web/WebGeolocationController.cpp \
171	third_party/WebKit/Source/web/WebGeolocationError.cpp \
172	third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp \
173	third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp \
174	third_party/WebKit/Source/web/WebGeolocationPosition.cpp \
175	third_party/WebKit/Source/web/WebGlyphCache.cpp \
176	third_party/WebKit/Source/web/WebHelperPluginImpl.cpp \
177	third_party/WebKit/Source/web/WebHistoryItem.cpp \
178	third_party/WebKit/Source/web/WebHitTestResult.cpp \
179	third_party/WebKit/Source/web/WebIDBCallbacksImpl.cpp \
180	third_party/WebKit/Source/web/WebIDBDatabaseCallbacksImpl.cpp \
181	third_party/WebKit/Source/web/WebIDBDatabaseError.cpp \
182	third_party/WebKit/Source/web/WebIDBKey.cpp \
183	third_party/WebKit/Source/web/WebIDBKeyPath.cpp \
184	third_party/WebKit/Source/web/WebIDBKeyRange.cpp \
185	third_party/WebKit/Source/web/WebIDBMetadata.cpp \
186	third_party/WebKit/Source/web/WebImageCache.cpp \
187	third_party/WebKit/Source/web/WebImageDecoder.cpp \
188	third_party/WebKit/Source/web/WebImageSkia.cpp \
189	third_party/WebKit/Source/web/WebInputElement.cpp \
190	third_party/WebKit/Source/web/WebInputEvent.cpp \
191	third_party/WebKit/Source/web/WebInputEventConversion.cpp \
192	third_party/WebKit/Source/web/WebKit.cpp \
193	third_party/WebKit/Source/web/WebLabelElement.cpp \
194	third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp \
195	third_party/WebKit/Source/web/WebMediaPlayerClientImpl.cpp \
196	third_party/WebKit/Source/web/WebMediaSourceImpl.cpp \
197	third_party/WebKit/Source/web/WebMediaStreamRegistry.cpp \
198	third_party/WebKit/Source/web/WebNetworkStateNotifier.cpp \
199	third_party/WebKit/Source/web/WebNode.cpp \
200	third_party/WebKit/Source/web/WebNodeCollection.cpp \
201	third_party/WebKit/Source/web/WebNodeList.cpp \
202	third_party/WebKit/Source/web/WebNotification.cpp \
203	third_party/WebKit/Source/web/WebOptionElement.cpp \
204	third_party/WebKit/Source/web/WebPagePopupImpl.cpp \
205	third_party/WebKit/Source/web/WebPageSerializer.cpp \
206	third_party/WebKit/Source/web/WebPageSerializerImpl.cpp \
207	third_party/WebKit/Source/web/WebPasswordFormData.cpp \
208	third_party/WebKit/Source/web/WebPasswordFormUtils.cpp \
209	third_party/WebKit/Source/web/WebPerformance.cpp \
210	third_party/WebKit/Source/web/WebPluginContainerImpl.cpp \
211	third_party/WebKit/Source/web/WebPluginDocument.cpp \
212	third_party/WebKit/Source/web/WebPluginLoadObserver.cpp \
213	third_party/WebKit/Source/web/WebPluginScrollbarImpl.cpp \
214	third_party/WebKit/Source/web/WebPopupMenuImpl.cpp \
215	third_party/WebKit/Source/web/WebRange.cpp \
216	third_party/WebKit/Source/web/WebRuntimeFeatures.cpp \
217	third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp \
218	third_party/WebKit/Source/web/WebScopedUserGesture.cpp \
219	third_party/WebKit/Source/web/WebScriptBindings.cpp \
220	third_party/WebKit/Source/web/WebScriptController.cpp \
221	third_party/WebKit/Source/web/WebScrollbarThemePainter.cpp \
222	third_party/WebKit/Source/web/WebSearchableFormData.cpp \
223	third_party/WebKit/Source/web/WebSecurityOrigin.cpp \
224	third_party/WebKit/Source/web/WebSecurityPolicy.cpp \
225	third_party/WebKit/Source/web/WebSelectElement.cpp \
226	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 \
236	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 \
245	third_party/WebKit/Source/web/WebViewBenchmarkSupportImpl.cpp \
246	third_party/WebKit/Source/web/WebViewImpl.cpp \
247	third_party/WebKit/Source/web/WebWorkerBase.cpp \
248	third_party/WebKit/Source/web/WebWorkerClientImpl.cpp \
249	third_party/WebKit/Source/web/WebWorkerInfo.cpp \
250	third_party/WebKit/Source/web/WebWorkerRunLoop.cpp \
251	third_party/WebKit/Source/web/WorkerAllowMainThreadBridgeBase.cpp \
252	third_party/WebKit/Source/web/WorkerAsyncFileSystemChromium.cpp \
253	third_party/WebKit/Source/web/WorkerAsyncFileWriterChromium.cpp \
254	third_party/WebKit/Source/web/WorkerFileSystemCallbacksBridge.cpp \
255	third_party/WebKit/Source/web/WorkerFileSystemClient.cpp \
256	third_party/WebKit/Source/web/WorkerFileWriterCallbacksBridge.cpp \
257	third_party/WebKit/Source/web/android/WebInputEventFactory.cpp \
258	third_party/WebKit/Source/web/linux/WebFontRenderStyle.cpp \
259	third_party/WebKit/Source/web/linux/WebFontRendering.cpp \
260	third_party/WebKit/Source/web/painting/ContinuousPainter.cpp \
261	third_party/WebKit/Source/web/painting/PaintAggregator.cpp
262
263
264# Flags passed to both C and C++ files.
265MY_CFLAGS_Debug := \
266	-fstack-protector \
267	--param=ssp-buffer-size=4 \
268	 \
269	-fno-exceptions \
270	-fno-strict-aliasing \
271	-Wall \
272	-Wno-unused-parameter \
273	-Wno-missing-field-initializers \
274	-fvisibility=hidden \
275	-pipe \
276	-fPIC \
277	-EL \
278	-mhard-float \
279	-ffunction-sections \
280	-funwind-tables \
281	-g \
282	-fstack-protector \
283	-fno-short-enums \
284	-finline-limit=64 \
285	-Wa,--noexecstack \
286	-U_FORTIFY_SOURCE \
287	-Wno-extra \
288	-Wno-ignored-qualifiers \
289	-Wno-type-limits \
290	-Wno-address \
291	-Wno-format-security \
292	-Wno-return-type \
293	-Wno-sequence-point \
294	-Os \
295	-g \
296	-fomit-frame-pointer \
297	-fdata-sections \
298	-ffunction-sections
299
300MY_DEFS_Debug := \
301	'-DANGLE_DX11' \
302	'-D_FILE_OFFSET_BITS=64' \
303	'-DNO_TCMALLOC' \
304	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
305	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
306	'-DDISABLE_NACL' \
307	'-DCHROMIUM_BUILD' \
308	'-DUSE_LIBJPEG_TURBO=1' \
309	'-DUSE_PROPRIETARY_CODECS' \
310	'-DENABLE_CONFIGURATION_POLICY' \
311	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
312	'-DTRACING_IS_OFFICIAL_BUILD=1' \
313	'-DENABLE_GPU=1' \
314	'-DUSE_OPENSSL=1' \
315	'-DENABLE_EGLIMAGE=1' \
316	'-DENABLE_PRINTING=1' \
317	'-DWEBKIT_IMPLEMENTATION=1' \
318	'-DINSIDE_WEBKIT' \
319	'-DENABLE_CSS3_TEXT=0' \
320	'-DENABLE_CSS_EXCLUSIONS=1' \
321	'-DENABLE_CSS_REGIONS=1' \
322	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
323	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
324	'-DENABLE_SVG_FONTS=1' \
325	'-DENABLE_TOUCH_ICON_LOADING=1' \
326	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
327	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
328	'-DENABLE_CALENDAR_PICKER=0' \
329	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
330	'-DENABLE_INPUT_SPEECH=0' \
331	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
332	'-DENABLE_MEDIA_CAPTURE=1' \
333	'-DENABLE_NOTIFICATIONS=0' \
334	'-DENABLE_ORIENTATION_EVENTS=1' \
335	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
336	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
337	'-DENABLE_OPENTYPE_VERTICAL=1' \
338	'-DWTF_USE_HARFBUZZ=1' \
339	'-DU_USING_ICU_NAMESPACE=0' \
340	'-D__STDC_CONSTANT_MACROS' \
341	'-D__STDC_FORMAT_MACROS' \
342	'-DANDROID' \
343	'-D__GNU_SOURCE=1' \
344	'-DUSE_STLPORT=1' \
345	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
346	'-DCHROME_BUILD_ID=""' \
347	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
348	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
349	'-D_DEBUG'
350
351
352# Include paths placed before CFLAGS/CPPFLAGS
353LOCAL_C_INCLUDES_Debug := \
354	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
355	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
356	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
357	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
358	$(LOCAL_PATH)/third_party/WebKit/public/web \
359	$(LOCAL_PATH)/third_party/WebKit/Source/web \
360	$(LOCAL_PATH)/third_party/angle_dx11/include \
361	$(LOCAL_PATH)/third_party/skia/include/utils \
362	$(LOCAL_PATH)/third_party/WebKit/public/web/android \
363	$(LOCAL_PATH)/third_party/WebKit/public/web/linux \
364	$(LOCAL_PATH)/third_party/khronos \
365	$(LOCAL_PATH)/gpu \
366	$(LOCAL_PATH) \
367	$(LOCAL_PATH)/third_party/WebKit \
368	$(LOCAL_PATH)/third_party/WebKit/Source \
369	$(gyp_shared_intermediate_dir)/blink \
370	$(gyp_shared_intermediate_dir)/blink/bindings \
371	$(PWD)/external/icu4c/common \
372	$(PWD)/external/icu4c/i18n \
373	$(LOCAL_PATH)/third_party/qcms/src \
374	$(LOCAL_PATH)/third_party/skia/src/core \
375	$(LOCAL_PATH)/skia/ext \
376	$(LOCAL_PATH)/third_party/npapi \
377	$(LOCAL_PATH)/third_party/npapi/bindings \
378	$(LOCAL_PATH)/v8/include \
379	$(PWD)/frameworks/wilhelm/include \
380	$(PWD)/bionic \
381	$(PWD)/external/stlport/stlport
382
383
384# Flags passed to only C++ (and not C) files.
385LOCAL_CPPFLAGS_Debug := \
386	-Wno-c++0x-compat \
387	-fno-rtti \
388	-fno-threadsafe-statics \
389	-fvisibility-inlines-hidden \
390	-Wsign-compare \
391	-Wno-uninitialized \
392	-Wno-error=c++0x-compat \
393	-Wno-non-virtual-dtor \
394	-Wno-sign-promo \
395	-Wno-non-virtual-dtor
396
397
398# Flags passed to both C and C++ files.
399MY_CFLAGS_Release := \
400	-fstack-protector \
401	--param=ssp-buffer-size=4 \
402	 \
403	-fno-exceptions \
404	-fno-strict-aliasing \
405	-Wall \
406	-Wno-unused-parameter \
407	-Wno-missing-field-initializers \
408	-fvisibility=hidden \
409	-pipe \
410	-fPIC \
411	-EL \
412	-mhard-float \
413	-ffunction-sections \
414	-funwind-tables \
415	-g \
416	-fstack-protector \
417	-fno-short-enums \
418	-finline-limit=64 \
419	-Wa,--noexecstack \
420	-U_FORTIFY_SOURCE \
421	-Wno-extra \
422	-Wno-ignored-qualifiers \
423	-Wno-type-limits \
424	-Wno-address \
425	-Wno-format-security \
426	-Wno-return-type \
427	-Wno-sequence-point \
428	-Os \
429	-fno-ident \
430	-fdata-sections \
431	-ffunction-sections \
432	-fomit-frame-pointer
433
434MY_DEFS_Release := \
435	'-DANGLE_DX11' \
436	'-D_FILE_OFFSET_BITS=64' \
437	'-DNO_TCMALLOC' \
438	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
439	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
440	'-DDISABLE_NACL' \
441	'-DCHROMIUM_BUILD' \
442	'-DUSE_LIBJPEG_TURBO=1' \
443	'-DUSE_PROPRIETARY_CODECS' \
444	'-DENABLE_CONFIGURATION_POLICY' \
445	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
446	'-DTRACING_IS_OFFICIAL_BUILD=1' \
447	'-DENABLE_GPU=1' \
448	'-DUSE_OPENSSL=1' \
449	'-DENABLE_EGLIMAGE=1' \
450	'-DENABLE_PRINTING=1' \
451	'-DWEBKIT_IMPLEMENTATION=1' \
452	'-DINSIDE_WEBKIT' \
453	'-DENABLE_CSS3_TEXT=0' \
454	'-DENABLE_CSS_EXCLUSIONS=1' \
455	'-DENABLE_CSS_REGIONS=1' \
456	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
457	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
458	'-DENABLE_SVG_FONTS=1' \
459	'-DENABLE_TOUCH_ICON_LOADING=1' \
460	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
461	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
462	'-DENABLE_CALENDAR_PICKER=0' \
463	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
464	'-DENABLE_INPUT_SPEECH=0' \
465	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
466	'-DENABLE_MEDIA_CAPTURE=1' \
467	'-DENABLE_NOTIFICATIONS=0' \
468	'-DENABLE_ORIENTATION_EVENTS=1' \
469	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
470	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
471	'-DENABLE_OPENTYPE_VERTICAL=1' \
472	'-DWTF_USE_HARFBUZZ=1' \
473	'-DU_USING_ICU_NAMESPACE=0' \
474	'-D__STDC_CONSTANT_MACROS' \
475	'-D__STDC_FORMAT_MACROS' \
476	'-DANDROID' \
477	'-D__GNU_SOURCE=1' \
478	'-DUSE_STLPORT=1' \
479	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
480	'-DCHROME_BUILD_ID=""' \
481	'-DNDEBUG' \
482	'-DNVALGRIND' \
483	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
484
485
486# Include paths placed before CFLAGS/CPPFLAGS
487LOCAL_C_INCLUDES_Release := \
488	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
489	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
490	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
491	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
492	$(LOCAL_PATH)/third_party/WebKit/public/web \
493	$(LOCAL_PATH)/third_party/WebKit/Source/web \
494	$(LOCAL_PATH)/third_party/angle_dx11/include \
495	$(LOCAL_PATH)/third_party/skia/include/utils \
496	$(LOCAL_PATH)/third_party/WebKit/public/web/android \
497	$(LOCAL_PATH)/third_party/WebKit/public/web/linux \
498	$(LOCAL_PATH)/third_party/khronos \
499	$(LOCAL_PATH)/gpu \
500	$(LOCAL_PATH) \
501	$(LOCAL_PATH)/third_party/WebKit \
502	$(LOCAL_PATH)/third_party/WebKit/Source \
503	$(gyp_shared_intermediate_dir)/blink \
504	$(gyp_shared_intermediate_dir)/blink/bindings \
505	$(PWD)/external/icu4c/common \
506	$(PWD)/external/icu4c/i18n \
507	$(LOCAL_PATH)/third_party/qcms/src \
508	$(LOCAL_PATH)/third_party/skia/src/core \
509	$(LOCAL_PATH)/skia/ext \
510	$(LOCAL_PATH)/third_party/npapi \
511	$(LOCAL_PATH)/third_party/npapi/bindings \
512	$(LOCAL_PATH)/v8/include \
513	$(PWD)/frameworks/wilhelm/include \
514	$(PWD)/bionic \
515	$(PWD)/external/stlport/stlport
516
517
518# Flags passed to only C++ (and not C) files.
519LOCAL_CPPFLAGS_Release := \
520	-Wno-c++0x-compat \
521	-fno-rtti \
522	-fno-threadsafe-statics \
523	-fvisibility-inlines-hidden \
524	-Wsign-compare \
525	-Wno-uninitialized \
526	-Wno-error=c++0x-compat \
527	-Wno-non-virtual-dtor \
528	-Wno-sign-promo \
529	-Wno-non-virtual-dtor
530
531
532LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
533LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
534LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
535### Rules for final target.
536
537LOCAL_LDFLAGS_Debug := \
538	-Wl,-z,now \
539	-Wl,-z,relro \
540	-Wl,-z,noexecstack \
541	-fPIC \
542	-EL \
543	-Wl,--no-keep-memory \
544	-nostdlib \
545	-Wl,--no-undefined \
546	-Wl,--exclude-libs=ALL \
547	-Wl,--fatal-warnings \
548	-Wl,--gc-sections \
549	-Wl,--warn-shared-textrel \
550	-Wl,-O1 \
551	-Wl,--as-needed
552
553
554LOCAL_LDFLAGS_Release := \
555	-Wl,-z,now \
556	-Wl,-z,relro \
557	-Wl,-z,noexecstack \
558	-fPIC \
559	-EL \
560	-Wl,--no-keep-memory \
561	-nostdlib \
562	-Wl,--no-undefined \
563	-Wl,--exclude-libs=ALL \
564	-Wl,-O1 \
565	-Wl,--as-needed \
566	-Wl,--gc-sections \
567	-Wl,--fatal-warnings \
568	-Wl,--warn-shared-textrel
569
570
571LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
572
573LOCAL_STATIC_LIBRARIES := \
574	third_party_WebKit_Source_core_webcore_derived_gyp
575
576# Enable grouping to fix circular references
577LOCAL_GROUP_STATIC_LIBRARIES := true
578
579LOCAL_SHARED_LIBRARIES := \
580	libskia \
581	libstlport \
582	libdl
583
584# Add target alias to "gyp_all_modules" target.
585.PHONY: gyp_all_modules
586gyp_all_modules: third_party_WebKit_Source_web_webkit_gyp
587
588# Alias gyp target name.
589.PHONY: webkit
590webkit: third_party_WebKit_Source_web_webkit_gyp
591
592include $(BUILD_STATIC_LIBRARY)
593