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_core_webcore_html_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_prerequisites_gyp)/webcore_prerequisites.stamp
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/WebKit/Source/core/html/BaseButtonInputType.cpp \
27	third_party/WebKit/Source/core/html/BaseCheckableInputType.cpp \
28	third_party/WebKit/Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp \
29	third_party/WebKit/Source/core/html/BaseClickableWithKeyInputType.cpp \
30	third_party/WebKit/Source/core/html/BaseDateAndTimeInputType.cpp \
31	third_party/WebKit/Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp \
32	third_party/WebKit/Source/core/html/BaseTextInputType.cpp \
33	third_party/WebKit/Source/core/html/ButtonInputType.cpp \
34	third_party/WebKit/Source/core/html/CheckboxInputType.cpp \
35	third_party/WebKit/Source/core/html/ClassList.cpp \
36	third_party/WebKit/Source/core/html/ColorInputType.cpp \
37	third_party/WebKit/Source/core/html/DOMFormData.cpp \
38	third_party/WebKit/Source/core/html/DOMSettableTokenList.cpp \
39	third_party/WebKit/Source/core/html/DOMTokenList.cpp \
40	third_party/WebKit/Source/core/html/DOMURL.cpp \
41	third_party/WebKit/Source/core/html/DateInputType.cpp \
42	third_party/WebKit/Source/core/html/DateTimeFieldsState.cpp \
43	third_party/WebKit/Source/core/html/DateTimeLocalInputType.cpp \
44	third_party/WebKit/Source/core/html/EmailInputType.cpp \
45	third_party/WebKit/Source/core/html/FileInputType.cpp \
46	third_party/WebKit/Source/core/html/FormAssociatedElement.cpp \
47	third_party/WebKit/Source/core/html/FormController.cpp \
48	third_party/WebKit/Source/core/html/FormDataList.cpp \
49	third_party/WebKit/Source/core/html/HTMLAllCollection.cpp \
50	third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp \
51	third_party/WebKit/Source/core/html/HTMLAppletElement.cpp \
52	third_party/WebKit/Source/core/html/HTMLAreaElement.cpp \
53	third_party/WebKit/Source/core/html/HTMLAudioElement.cpp \
54	third_party/WebKit/Source/core/html/HTMLBRElement.cpp \
55	third_party/WebKit/Source/core/html/HTMLBaseElement.cpp \
56	third_party/WebKit/Source/core/html/HTMLBodyElement.cpp \
57	third_party/WebKit/Source/core/html/HTMLButtonElement.cpp \
58	third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp \
59	third_party/WebKit/Source/core/html/HTMLCollection.cpp \
60	third_party/WebKit/Source/core/html/HTMLDListElement.cpp \
61	third_party/WebKit/Source/core/html/HTMLDataListElement.cpp \
62	third_party/WebKit/Source/core/html/HTMLDetailsElement.cpp \
63	third_party/WebKit/Source/core/html/HTMLDialogElement.cpp \
64	third_party/WebKit/Source/core/html/HTMLDimension.cpp \
65	third_party/WebKit/Source/core/html/HTMLDirectoryElement.cpp \
66	third_party/WebKit/Source/core/html/HTMLDivElement.cpp \
67	third_party/WebKit/Source/core/html/HTMLDocument.cpp \
68	third_party/WebKit/Source/core/html/HTMLElement.cpp \
69	third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp \
70	third_party/WebKit/Source/core/html/HTMLFieldSetElement.cpp \
71	third_party/WebKit/Source/core/html/HTMLFontElement.cpp \
72	third_party/WebKit/Source/core/html/HTMLFormControlsCollection.cpp \
73	third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp \
74	third_party/WebKit/Source/core/html/HTMLFormControlElementWithState.cpp \
75	third_party/WebKit/Source/core/html/HTMLFormElement.cpp \
76	third_party/WebKit/Source/core/html/HTMLFrameElement.cpp \
77	third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp \
78	third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp \
79	third_party/WebKit/Source/core/html/HTMLFrameSetElement.cpp \
80	third_party/WebKit/Source/core/html/HTMLHRElement.cpp \
81	third_party/WebKit/Source/core/html/HTMLHeadElement.cpp \
82	third_party/WebKit/Source/core/html/HTMLHeadingElement.cpp \
83	third_party/WebKit/Source/core/html/HTMLHtmlElement.cpp \
84	third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp \
85	third_party/WebKit/Source/core/html/HTMLImageElement.cpp \
86	third_party/WebKit/Source/core/html/HTMLImageLoader.cpp \
87	third_party/WebKit/Source/core/html/HTMLImport.cpp \
88	third_party/WebKit/Source/core/html/HTMLImportsController.cpp \
89	third_party/WebKit/Source/core/html/HTMLImportLoader.cpp \
90	third_party/WebKit/Source/core/html/HTMLInputElement.cpp \
91	third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp \
92	third_party/WebKit/Source/core/html/HTMLLIElement.cpp \
93	third_party/WebKit/Source/core/html/HTMLLabelElement.cpp \
94	third_party/WebKit/Source/core/html/HTMLLegendElement.cpp \
95	third_party/WebKit/Source/core/html/HTMLLinkElement.cpp \
96	third_party/WebKit/Source/core/html/HTMLMapElement.cpp \
97	third_party/WebKit/Source/core/html/HTMLMarqueeElement.cpp \
98	third_party/WebKit/Source/core/html/HTMLMediaElement.cpp \
99	third_party/WebKit/Source/core/html/HTMLMenuElement.cpp \
100	third_party/WebKit/Source/core/html/HTMLMetaElement.cpp \
101	third_party/WebKit/Source/core/html/HTMLMeterElement.cpp \
102	third_party/WebKit/Source/core/html/HTMLModElement.cpp \
103	third_party/WebKit/Source/core/html/HTMLNameCollection.cpp \
104	third_party/WebKit/Source/core/html/HTMLOListElement.cpp \
105	third_party/WebKit/Source/core/html/HTMLObjectElement.cpp \
106	third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp \
107	third_party/WebKit/Source/core/html/HTMLOptionElement.cpp \
108	third_party/WebKit/Source/core/html/HTMLOptionsCollection.cpp \
109	third_party/WebKit/Source/core/html/HTMLOutputElement.cpp \
110	third_party/WebKit/Source/core/html/HTMLParagraphElement.cpp \
111	third_party/WebKit/Source/core/html/HTMLParamElement.cpp \
112	third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp \
113	third_party/WebKit/Source/core/html/HTMLPlugInImageElement.cpp \
114	third_party/WebKit/Source/core/html/HTMLPreElement.cpp \
115	third_party/WebKit/Source/core/html/HTMLProgressElement.cpp \
116	third_party/WebKit/Source/core/html/HTMLQuoteElement.cpp \
117	third_party/WebKit/Source/core/html/HTMLScriptElement.cpp \
118	third_party/WebKit/Source/core/html/HTMLSelectElement.cpp \
119	third_party/WebKit/Source/core/html/HTMLSelectElementWin.cpp \
120	third_party/WebKit/Source/core/html/HTMLSourceElement.cpp \
121	third_party/WebKit/Source/core/html/HTMLSpanElement.cpp \
122	third_party/WebKit/Source/core/html/HTMLStyleElement.cpp \
123	third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp \
124	third_party/WebKit/Source/core/html/HTMLTableCaptionElement.cpp \
125	third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp \
126	third_party/WebKit/Source/core/html/HTMLTableColElement.cpp \
127	third_party/WebKit/Source/core/html/HTMLTableElement.cpp \
128	third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp \
129	third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp \
130	third_party/WebKit/Source/core/html/HTMLTableRowsCollection.cpp \
131	third_party/WebKit/Source/core/html/HTMLTableSectionElement.cpp \
132	third_party/WebKit/Source/core/html/HTMLTemplateElement.cpp \
133	third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp \
134	third_party/WebKit/Source/core/html/HTMLTextFormControlElement.cpp \
135	third_party/WebKit/Source/core/html/HTMLTitleElement.cpp \
136	third_party/WebKit/Source/core/html/HTMLTrackElement.cpp \
137	third_party/WebKit/Source/core/html/HTMLUListElement.cpp \
138	third_party/WebKit/Source/core/html/HTMLVideoElement.cpp \
139	third_party/WebKit/Source/core/html/HTMLViewSourceDocument.cpp \
140	third_party/WebKit/Source/core/html/HiddenInputType.cpp \
141	third_party/WebKit/Source/core/html/ImageData.cpp \
142	third_party/WebKit/Source/core/html/ImageDocument.cpp \
143	third_party/WebKit/Source/core/html/ImageInputType.cpp \
144	third_party/WebKit/Source/core/html/InputType.cpp \
145	third_party/WebKit/Source/core/html/InputTypeNames.cpp \
146	third_party/WebKit/Source/core/html/LabelableElement.cpp \
147	third_party/WebKit/Source/core/html/LabelsNodeList.cpp \
148	third_party/WebKit/Source/core/html/LinkImport.cpp \
149	third_party/WebKit/Source/core/html/LinkRelAttribute.cpp \
150	third_party/WebKit/Source/core/html/LinkResource.cpp \
151	third_party/WebKit/Source/core/html/MediaController.cpp \
152	third_party/WebKit/Source/core/html/MediaDocument.cpp \
153	third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp \
154	third_party/WebKit/Source/core/html/MediaKeyEvent.cpp \
155	third_party/WebKit/Source/core/html/HTMLMediaSource.cpp \
156	third_party/WebKit/Source/core/html/MonthInputType.cpp \
157	third_party/WebKit/Source/core/html/NumberInputType.cpp \
158	third_party/WebKit/Source/core/html/PasswordInputType.cpp \
159	third_party/WebKit/Source/core/html/PluginDocument.cpp \
160	third_party/WebKit/Source/core/html/PublicURLManager.cpp \
161	third_party/WebKit/Source/core/html/RadioInputType.cpp \
162	third_party/WebKit/Source/core/html/RadioNodeList.cpp \
163	third_party/WebKit/Source/core/html/RangeInputType.cpp \
164	third_party/WebKit/Source/core/html/ResetInputType.cpp \
165	third_party/WebKit/Source/core/html/SearchInputType.cpp \
166	third_party/WebKit/Source/core/html/StepRange.cpp \
167	third_party/WebKit/Source/core/html/SubmitInputType.cpp \
168	third_party/WebKit/Source/core/html/TelephoneInputType.cpp \
169	third_party/WebKit/Source/core/html/TextDocument.cpp \
170	third_party/WebKit/Source/core/html/TextFieldInputType.cpp \
171	third_party/WebKit/Source/core/html/TextInputType.cpp \
172	third_party/WebKit/Source/core/html/TimeInputType.cpp \
173	third_party/WebKit/Source/core/html/TimeRanges.cpp \
174	third_party/WebKit/Source/core/html/URLInputType.cpp \
175	third_party/WebKit/Source/core/html/ValidationMessage.cpp \
176	third_party/WebKit/Source/core/html/ValidityState.cpp \
177	third_party/WebKit/Source/core/html/WeekInputType.cpp \
178	third_party/WebKit/Source/core/html/TypeAhead.cpp \
179	third_party/WebKit/Source/core/html/canvas/ANGLEInstancedArrays.cpp \
180	third_party/WebKit/Source/core/html/canvas/Canvas2DContextAttributes.cpp \
181	third_party/WebKit/Source/core/html/canvas/CanvasContextAttributes.cpp \
182	third_party/WebKit/Source/core/html/canvas/CanvasGradient.cpp \
183	third_party/WebKit/Source/core/html/canvas/CanvasPathMethods.cpp \
184	third_party/WebKit/Source/core/html/canvas/CanvasPattern.cpp \
185	third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp \
186	third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext2D.cpp \
187	third_party/WebKit/Source/core/html/canvas/CanvasStyle.cpp \
188	third_party/WebKit/Source/core/html/canvas/DataView.cpp \
189	third_party/WebKit/Source/core/html/canvas/EXTFragDepth.cpp \
190	third_party/WebKit/Source/core/html/canvas/EXTTextureFilterAnisotropic.cpp \
191	third_party/WebKit/Source/core/html/canvas/OESStandardDerivatives.cpp \
192	third_party/WebKit/Source/core/html/canvas/OESTextureFloat.cpp \
193	third_party/WebKit/Source/core/html/canvas/OESTextureFloatLinear.cpp \
194	third_party/WebKit/Source/core/html/canvas/OESTextureHalfFloat.cpp \
195	third_party/WebKit/Source/core/html/canvas/OESTextureHalfFloatLinear.cpp \
196	third_party/WebKit/Source/core/html/canvas/OESVertexArrayObject.cpp \
197	third_party/WebKit/Source/core/html/canvas/OESElementIndexUint.cpp \
198	third_party/WebKit/Source/core/html/canvas/WebGLBuffer.cpp \
199	third_party/WebKit/Source/core/html/canvas/WebGLCompressedTextureATC.cpp \
200	third_party/WebKit/Source/core/html/canvas/WebGLCompressedTexturePVRTC.cpp \
201	third_party/WebKit/Source/core/html/canvas/WebGLCompressedTextureS3TC.cpp \
202	third_party/WebKit/Source/core/html/canvas/WebGLContextAttributes.cpp \
203	third_party/WebKit/Source/core/html/canvas/WebGLContextEvent.cpp \
204	third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.cpp \
205	third_party/WebKit/Source/core/html/canvas/WebGLContextObject.cpp \
206	third_party/WebKit/Source/core/html/canvas/WebGLDebugRendererInfo.cpp \
207	third_party/WebKit/Source/core/html/canvas/WebGLDebugShaders.cpp \
208	third_party/WebKit/Source/core/html/canvas/WebGLDepthTexture.cpp \
209	third_party/WebKit/Source/core/html/canvas/WebGLDrawBuffers.cpp \
210	third_party/WebKit/Source/core/html/canvas/WebGLExtension.cpp \
211	third_party/WebKit/Source/core/html/canvas/WebGLFramebuffer.cpp \
212	third_party/WebKit/Source/core/html/canvas/WebGLGetInfo.cpp \
213	third_party/WebKit/Source/core/html/canvas/WebGLLoseContext.cpp \
214	third_party/WebKit/Source/core/html/canvas/WebGLObject.cpp \
215	third_party/WebKit/Source/core/html/canvas/WebGLProgram.cpp \
216	third_party/WebKit/Source/core/html/canvas/WebGLRenderbuffer.cpp \
217	third_party/WebKit/Source/core/html/canvas/WebGLRenderingContext.cpp \
218	third_party/WebKit/Source/core/html/canvas/WebGLShader.cpp \
219	third_party/WebKit/Source/core/html/canvas/WebGLShaderPrecisionFormat.cpp \
220	third_party/WebKit/Source/core/html/canvas/WebGLSharedObject.cpp \
221	third_party/WebKit/Source/core/html/canvas/WebGLTexture.cpp \
222	third_party/WebKit/Source/core/html/canvas/WebGLUniformLocation.cpp \
223	third_party/WebKit/Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp \
224	third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp \
225	third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp \
226	third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp \
227	third_party/WebKit/Source/core/html/parser/CompactHTMLToken.cpp \
228	third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp \
229	third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp \
230	third_party/WebKit/Source/core/html/parser/HTMLElementStack.cpp \
231	third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp \
232	third_party/WebKit/Source/core/html/parser/HTMLEntitySearch.cpp \
233	third_party/WebKit/Source/core/html/parser/HTMLFormattingElementList.cpp \
234	third_party/WebKit/Source/core/html/parser/HTMLIdentifier.cpp \
235	third_party/WebKit/Source/core/html/parser/HTMLMetaCharsetParser.cpp \
236	third_party/WebKit/Source/core/html/parser/HTMLParserIdioms.cpp \
237	third_party/WebKit/Source/core/html/parser/HTMLParserOptions.cpp \
238	third_party/WebKit/Source/core/html/parser/HTMLParserScheduler.cpp \
239	third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp \
240	third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp \
241	third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp \
242	third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp \
243	third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp \
244	third_party/WebKit/Source/core/html/parser/HTMLTokenizer.cpp \
245	third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp \
246	third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp \
247	third_party/WebKit/Source/core/html/parser/HTMLViewSourceParser.cpp \
248	third_party/WebKit/Source/core/html/parser/TextDocumentParser.cpp \
249	third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp \
250	third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp \
251	third_party/WebKit/Source/core/html/shadow/PickerIndicatorElement.cpp \
252	third_party/WebKit/Source/core/html/shadow/ClearButtonElement.cpp \
253	third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp \
254	third_party/WebKit/Source/core/html/shadow/DateTimeFieldElement.cpp \
255	third_party/WebKit/Source/core/html/shadow/DateTimeFieldElements.cpp \
256	third_party/WebKit/Source/core/html/shadow/DateTimeNumericFieldElement.cpp \
257	third_party/WebKit/Source/core/html/shadow/DateTimeSymbolicFieldElement.cpp \
258	third_party/WebKit/Source/core/html/shadow/DetailsMarkerControl.cpp \
259	third_party/WebKit/Source/core/html/shadow/HTMLContentElement.cpp \
260	third_party/WebKit/Source/core/html/shadow/HTMLShadowElement.cpp \
261	third_party/WebKit/Source/core/html/shadow/MediaControls.cpp \
262	third_party/WebKit/Source/core/html/shadow/MediaControlElementTypes.cpp \
263	third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp \
264	third_party/WebKit/Source/core/html/shadow/MediaControlsChromium.cpp \
265	third_party/WebKit/Source/core/html/shadow/MediaControlsChromiumAndroid.cpp \
266	third_party/WebKit/Source/core/html/shadow/MeterShadowElement.cpp \
267	third_party/WebKit/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp \
268	third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.cpp \
269	third_party/WebKit/Source/core/html/shadow/ShadowElementNames.cpp \
270	third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp \
271	third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp \
272	third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp \
273	third_party/WebKit/Source/core/html/ime/Composition.cpp \
274	third_party/WebKit/Source/core/html/ime/InputMethodContext.cpp \
275	third_party/WebKit/Source/core/html/track/InbandTextTrack.cpp \
276	third_party/WebKit/Source/core/html/track/LoadableTextTrack.cpp \
277	third_party/WebKit/Source/core/html/track/TextTrack.cpp \
278	third_party/WebKit/Source/core/html/track/TextTrackCue.cpp \
279	third_party/WebKit/Source/core/html/track/TextTrackCueGeneric.cpp \
280	third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp \
281	third_party/WebKit/Source/core/html/track/TextTrackList.cpp \
282	third_party/WebKit/Source/core/html/track/TextTrackRegion.cpp \
283	third_party/WebKit/Source/core/html/track/TextTrackRegionList.cpp \
284	third_party/WebKit/Source/core/html/track/TrackBase.cpp \
285	third_party/WebKit/Source/core/html/track/TrackEvent.cpp \
286	third_party/WebKit/Source/core/html/track/WebVTTElement.cpp \
287	third_party/WebKit/Source/core/html/track/WebVTTParser.cpp \
288	third_party/WebKit/Source/core/html/track/WebVTTTokenizer.cpp
289
290
291# Flags passed to both C and C++ files.
292MY_CFLAGS_Debug := \
293	-fstack-protector \
294	--param=ssp-buffer-size=4 \
295	-fno-exceptions \
296	-fno-strict-aliasing \
297	-Wno-unused-parameter \
298	-Wno-missing-field-initializers \
299	-fvisibility=hidden \
300	-pipe \
301	-fPIC \
302	-Wno-format \
303	-fno-tree-sra \
304	-fuse-ld=gold \
305	-Wno-psabi \
306	-ffunction-sections \
307	-funwind-tables \
308	-g \
309	-fstack-protector \
310	-fno-short-enums \
311	-finline-limit=64 \
312	-Wa,--noexecstack \
313	-U_FORTIFY_SOURCE \
314	-Wno-extra \
315	-Wno-ignored-qualifiers \
316	-Wno-type-limits \
317	-Wno-address \
318	-Wno-format-security \
319	-Wno-return-type \
320	-Wno-sequence-point \
321	-Os \
322	-g \
323	-fomit-frame-pointer \
324	-fdata-sections \
325	-ffunction-sections
326
327MY_DEFS_Debug := \
328	'-DANGLE_DX11' \
329	'-D_FILE_OFFSET_BITS=64' \
330	'-DNO_TCMALLOC' \
331	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
332	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
333	'-DDISABLE_NACL' \
334	'-DCHROMIUM_BUILD' \
335	'-DUSE_LIBJPEG_TURBO=1' \
336	'-DUSE_PROPRIETARY_CODECS' \
337	'-DENABLE_CONFIGURATION_POLICY' \
338	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
339	'-DTRACING_IS_OFFICIAL_BUILD=1' \
340	'-DENABLE_GPU=1' \
341	'-DUSE_OPENSSL=1' \
342	'-DENABLE_EGLIMAGE=1' \
343	'-DENABLE_PRINTING=1' \
344	'-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \
345	'-DWEBKIT_IMPLEMENTATION=1' \
346	'-DINSIDE_WEBKIT' \
347	'-DENABLE_CSS3_TEXT=0' \
348	'-DENABLE_CSS_EXCLUSIONS=1' \
349	'-DENABLE_CSS_REGIONS=1' \
350	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
351	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
352	'-DENABLE_SVG_FONTS=1' \
353	'-DENABLE_TOUCH_ICON_LOADING=1' \
354	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
355	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
356	'-DENABLE_CALENDAR_PICKER=0' \
357	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
358	'-DENABLE_INPUT_SPEECH=0' \
359	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
360	'-DENABLE_MEDIA_CAPTURE=1' \
361	'-DENABLE_NOTIFICATIONS=0' \
362	'-DENABLE_ORIENTATION_EVENTS=1' \
363	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
364	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
365	'-DENABLE_OPENTYPE_VERTICAL=1' \
366	'-DWTF_USE_HARFBUZZ=1' \
367	'-DU_USING_ICU_NAMESPACE=0' \
368	'-DCHROME_PNG_WRITE_SUPPORT' \
369	'-DPNG_USER_CONFIG' \
370	'-DLIBXML_STATIC' \
371	'-DLIBXSLT_STATIC' \
372	'-DUSE_SYSTEM_LIBJPEG' \
373	'-DANDROID' \
374	'-D__GNU_SOURCE=1' \
375	'-DUSE_STLPORT=1' \
376	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
377	'-DCHROME_BUILD_ID=""' \
378	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
379	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
380	'-D_DEBUG'
381
382
383# Include paths placed before CFLAGS/CPPFLAGS
384LOCAL_C_INCLUDES_Debug := \
385	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
386	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
387	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
388	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
389	$(LOCAL_PATH)/third_party/khronos \
390	$(LOCAL_PATH)/gpu \
391	$(LOCAL_PATH) \
392	$(LOCAL_PATH)/third_party/WebKit \
393	$(LOCAL_PATH)/third_party/WebKit/Source \
394	$(gyp_shared_intermediate_dir)/blink \
395	$(gyp_shared_intermediate_dir)/blink/bindings \
396	$(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \
397	$(PWD)/external/icu4c/common \
398	$(PWD)/external/icu4c/i18n \
399	$(LOCAL_PATH)/third_party/skia/src/core \
400	$(LOCAL_PATH)/skia/ext \
401	$(LOCAL_PATH)/third_party/iccjpeg \
402	$(LOCAL_PATH)/third_party/libpng \
403	$(LOCAL_PATH)/third_party/libwebp \
404	$(LOCAL_PATH)/third_party/libxml/linux/include \
405	$(LOCAL_PATH)/third_party/libxml/src/include \
406	$(LOCAL_PATH)/third_party/libxslt \
407	$(LOCAL_PATH)/third_party/npapi \
408	$(LOCAL_PATH)/third_party/npapi/bindings \
409	$(LOCAL_PATH)/third_party/ots/include \
410	$(LOCAL_PATH)/third_party/qcms/src \
411	$(LOCAL_PATH)/third_party/sqlite \
412	$(LOCAL_PATH)/third_party/zlib \
413	$(LOCAL_PATH)/v8/include \
414	$(PWD)/external/jpeg \
415	$(PWD)/frameworks/wilhelm/include \
416	$(PWD)/bionic \
417	$(PWD)/external/stlport/stlport
418
419
420# Flags passed to only C++ (and not C) files.
421LOCAL_CPPFLAGS_Debug := \
422	-fno-rtti \
423	-fno-threadsafe-statics \
424	-fvisibility-inlines-hidden \
425	-Wno-c++0x-compat \
426	-Wno-deprecated \
427	-Wno-abi \
428	-Wno-error=c++0x-compat \
429	-Wno-non-virtual-dtor \
430	-Wno-sign-promo \
431	-Wno-non-virtual-dtor
432
433
434# Flags passed to both C and C++ files.
435MY_CFLAGS_Release := \
436	-fstack-protector \
437	--param=ssp-buffer-size=4 \
438	-fno-exceptions \
439	-fno-strict-aliasing \
440	-Wno-unused-parameter \
441	-Wno-missing-field-initializers \
442	-fvisibility=hidden \
443	-pipe \
444	-fPIC \
445	-Wno-format \
446	-fno-tree-sra \
447	-fuse-ld=gold \
448	-Wno-psabi \
449	-ffunction-sections \
450	-funwind-tables \
451	-g \
452	-fstack-protector \
453	-fno-short-enums \
454	-finline-limit=64 \
455	-Wa,--noexecstack \
456	-U_FORTIFY_SOURCE \
457	-Wno-extra \
458	-Wno-ignored-qualifiers \
459	-Wno-type-limits \
460	-Wno-address \
461	-Wno-format-security \
462	-Wno-return-type \
463	-Wno-sequence-point \
464	-Os \
465	-fno-ident \
466	-fdata-sections \
467	-ffunction-sections \
468	-fomit-frame-pointer
469
470MY_DEFS_Release := \
471	'-DANGLE_DX11' \
472	'-D_FILE_OFFSET_BITS=64' \
473	'-DNO_TCMALLOC' \
474	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
475	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
476	'-DDISABLE_NACL' \
477	'-DCHROMIUM_BUILD' \
478	'-DUSE_LIBJPEG_TURBO=1' \
479	'-DUSE_PROPRIETARY_CODECS' \
480	'-DENABLE_CONFIGURATION_POLICY' \
481	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
482	'-DTRACING_IS_OFFICIAL_BUILD=1' \
483	'-DENABLE_GPU=1' \
484	'-DUSE_OPENSSL=1' \
485	'-DENABLE_EGLIMAGE=1' \
486	'-DENABLE_PRINTING=1' \
487	'-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \
488	'-DWEBKIT_IMPLEMENTATION=1' \
489	'-DINSIDE_WEBKIT' \
490	'-DENABLE_CSS3_TEXT=0' \
491	'-DENABLE_CSS_EXCLUSIONS=1' \
492	'-DENABLE_CSS_REGIONS=1' \
493	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
494	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
495	'-DENABLE_SVG_FONTS=1' \
496	'-DENABLE_TOUCH_ICON_LOADING=1' \
497	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
498	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
499	'-DENABLE_CALENDAR_PICKER=0' \
500	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
501	'-DENABLE_INPUT_SPEECH=0' \
502	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
503	'-DENABLE_MEDIA_CAPTURE=1' \
504	'-DENABLE_NOTIFICATIONS=0' \
505	'-DENABLE_ORIENTATION_EVENTS=1' \
506	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
507	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
508	'-DENABLE_OPENTYPE_VERTICAL=1' \
509	'-DWTF_USE_HARFBUZZ=1' \
510	'-DU_USING_ICU_NAMESPACE=0' \
511	'-DCHROME_PNG_WRITE_SUPPORT' \
512	'-DPNG_USER_CONFIG' \
513	'-DLIBXML_STATIC' \
514	'-DLIBXSLT_STATIC' \
515	'-DUSE_SYSTEM_LIBJPEG' \
516	'-DANDROID' \
517	'-D__GNU_SOURCE=1' \
518	'-DUSE_STLPORT=1' \
519	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
520	'-DCHROME_BUILD_ID=""' \
521	'-DNDEBUG' \
522	'-DNVALGRIND' \
523	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
524
525
526# Include paths placed before CFLAGS/CPPFLAGS
527LOCAL_C_INCLUDES_Release := \
528	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
529	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
530	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
531	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
532	$(LOCAL_PATH)/third_party/khronos \
533	$(LOCAL_PATH)/gpu \
534	$(LOCAL_PATH) \
535	$(LOCAL_PATH)/third_party/WebKit \
536	$(LOCAL_PATH)/third_party/WebKit/Source \
537	$(gyp_shared_intermediate_dir)/blink \
538	$(gyp_shared_intermediate_dir)/blink/bindings \
539	$(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \
540	$(PWD)/external/icu4c/common \
541	$(PWD)/external/icu4c/i18n \
542	$(LOCAL_PATH)/third_party/skia/src/core \
543	$(LOCAL_PATH)/skia/ext \
544	$(LOCAL_PATH)/third_party/iccjpeg \
545	$(LOCAL_PATH)/third_party/libpng \
546	$(LOCAL_PATH)/third_party/libwebp \
547	$(LOCAL_PATH)/third_party/libxml/linux/include \
548	$(LOCAL_PATH)/third_party/libxml/src/include \
549	$(LOCAL_PATH)/third_party/libxslt \
550	$(LOCAL_PATH)/third_party/npapi \
551	$(LOCAL_PATH)/third_party/npapi/bindings \
552	$(LOCAL_PATH)/third_party/ots/include \
553	$(LOCAL_PATH)/third_party/qcms/src \
554	$(LOCAL_PATH)/third_party/sqlite \
555	$(LOCAL_PATH)/third_party/zlib \
556	$(LOCAL_PATH)/v8/include \
557	$(PWD)/external/jpeg \
558	$(PWD)/frameworks/wilhelm/include \
559	$(PWD)/bionic \
560	$(PWD)/external/stlport/stlport
561
562
563# Flags passed to only C++ (and not C) files.
564LOCAL_CPPFLAGS_Release := \
565	-fno-rtti \
566	-fno-threadsafe-statics \
567	-fvisibility-inlines-hidden \
568	-Wno-c++0x-compat \
569	-Wno-deprecated \
570	-Wno-abi \
571	-Wno-error=c++0x-compat \
572	-Wno-non-virtual-dtor \
573	-Wno-sign-promo \
574	-Wno-non-virtual-dtor
575
576
577LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
578LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
579LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
580### Rules for final target.
581
582LOCAL_LDFLAGS_Debug := \
583	-Wl,-z,now \
584	-Wl,-z,relro \
585	-Wl,-z,noexecstack \
586	-fPIC \
587	-Wl,-z,relro \
588	-Wl,-z,now \
589	-fuse-ld=gold \
590	-nostdlib \
591	-Wl,--no-undefined \
592	-Wl,--exclude-libs=ALL \
593	-Wl,--icf=safe \
594	-Wl,--fatal-warnings \
595	-Wl,--gc-sections \
596	-Wl,--warn-shared-textrel \
597	-Wl,-O1 \
598	-Wl,--as-needed
599
600
601LOCAL_LDFLAGS_Release := \
602	-Wl,-z,now \
603	-Wl,-z,relro \
604	-Wl,-z,noexecstack \
605	-fPIC \
606	-Wl,-z,relro \
607	-Wl,-z,now \
608	-fuse-ld=gold \
609	-nostdlib \
610	-Wl,--no-undefined \
611	-Wl,--exclude-libs=ALL \
612	-Wl,--icf=safe \
613	-Wl,-O1 \
614	-Wl,--as-needed \
615	-Wl,--gc-sections \
616	-Wl,--fatal-warnings \
617	-Wl,--warn-shared-textrel
618
619
620LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
621
622LOCAL_STATIC_LIBRARIES :=
623
624# Enable grouping to fix circular references
625LOCAL_GROUP_STATIC_LIBRARIES := true
626
627LOCAL_SHARED_LIBRARIES := \
628	libskia \
629	libstlport \
630	libdl
631
632# Add target alias to "gyp_all_modules" target.
633.PHONY: gyp_all_modules
634gyp_all_modules: third_party_WebKit_Source_core_webcore_html_gyp
635
636# Alias gyp target name.
637.PHONY: webcore_html
638webcore_html: third_party_WebKit_Source_core_webcore_html_gyp
639
640include $(BUILD_STATIC_LIBRARY)
641