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