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_dom_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/dom/ActiveDOMObject.cpp \
27	third_party/WebKit/Source/core/dom/AnimationEvent.cpp \
28	third_party/WebKit/Source/core/dom/Attr.cpp \
29	third_party/WebKit/Source/core/dom/BeforeTextInsertedEvent.cpp \
30	third_party/WebKit/Source/core/dom/BeforeUnloadEvent.cpp \
31	third_party/WebKit/Source/core/dom/CDATASection.cpp \
32	third_party/WebKit/Source/core/dom/CharacterData.cpp \
33	third_party/WebKit/Source/core/dom/CheckedRadioButtons.cpp \
34	third_party/WebKit/Source/core/dom/ChildListMutationScope.cpp \
35	third_party/WebKit/Source/core/dom/ChildNodeList.cpp \
36	third_party/WebKit/Source/core/dom/ClassNodeList.cpp \
37	third_party/WebKit/Source/core/dom/ClientRect.cpp \
38	third_party/WebKit/Source/core/dom/ClientRectList.cpp \
39	third_party/WebKit/Source/core/dom/Clipboard.cpp \
40	third_party/WebKit/Source/core/dom/ClipboardEvent.cpp \
41	third_party/WebKit/Source/core/dom/Comment.cpp \
42	third_party/WebKit/Source/core/dom/CompositionEvent.cpp \
43	third_party/WebKit/Source/core/dom/ContainerNode.cpp \
44	third_party/WebKit/Source/core/dom/ContainerNodeAlgorithms.cpp \
45	third_party/WebKit/Source/core/dom/ContextLifecycleObserver.cpp \
46	third_party/WebKit/Source/core/dom/ContextFeatures.cpp \
47	third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp \
48	third_party/WebKit/Source/core/dom/CustomElement.cpp \
49	third_party/WebKit/Source/core/dom/CustomElementCallbackDispatcher.cpp \
50	third_party/WebKit/Source/core/dom/CustomElementCallbackInvocation.cpp \
51	third_party/WebKit/Source/core/dom/CustomElementCallbackQueue.cpp \
52	third_party/WebKit/Source/core/dom/CustomElementCallbackScheduler.cpp \
53	third_party/WebKit/Source/core/dom/CustomElementDefinition.cpp \
54	third_party/WebKit/Source/core/dom/CustomElementRegistrationContext.cpp \
55	third_party/WebKit/Source/core/dom/CustomElementRegistry.cpp \
56	third_party/WebKit/Source/core/dom/CustomElementUpgradeCandidateMap.cpp \
57	third_party/WebKit/Source/core/dom/CustomEvent.cpp \
58	third_party/WebKit/Source/core/dom/DOMError.cpp \
59	third_party/WebKit/Source/core/dom/DOMException.cpp \
60	third_party/WebKit/Source/core/dom/DOMImplementation.cpp \
61	third_party/WebKit/Source/core/dom/DOMNamedFlowCollection.cpp \
62	third_party/WebKit/Source/core/dom/DOMStringList.cpp \
63	third_party/WebKit/Source/core/dom/DOMStringMap.cpp \
64	third_party/WebKit/Source/core/dom/DataTransferItem.cpp \
65	third_party/WebKit/Source/core/dom/DatasetDOMStringMap.cpp \
66	third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.cpp \
67	third_party/WebKit/Source/core/dom/DeviceOrientationController.cpp \
68	third_party/WebKit/Source/core/dom/Document.cpp \
69	third_party/WebKit/Source/core/dom/DocumentEventQueue.cpp \
70	third_party/WebKit/Source/core/dom/DocumentFragment.cpp \
71	third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp \
72	third_party/WebKit/Source/core/dom/DocumentInit.cpp \
73	third_party/WebKit/Source/core/dom/DocumentLifecycleObserver.cpp \
74	third_party/WebKit/Source/core/dom/DocumentMarkerController.cpp \
75	third_party/WebKit/Source/core/dom/DocumentMarker.cpp \
76	third_party/WebKit/Source/core/dom/DocumentOrderedList.cpp \
77	third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp \
78	third_party/WebKit/Source/core/dom/DocumentParser.cpp \
79	third_party/WebKit/Source/core/dom/DocumentSharedObjectPool.cpp \
80	third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp \
81	third_party/WebKit/Source/core/dom/DocumentType.cpp \
82	third_party/WebKit/Source/core/dom/Element.cpp \
83	third_party/WebKit/Source/core/dom/ElementRareData.cpp \
84	third_party/WebKit/Source/core/dom/ErrorEvent.cpp \
85	third_party/WebKit/Source/core/dom/Event.cpp \
86	third_party/WebKit/Source/core/dom/EventContext.cpp \
87	third_party/WebKit/Source/core/dom/EventDispatchMediator.cpp \
88	third_party/WebKit/Source/core/dom/EventDispatcher.cpp \
89	third_party/WebKit/Source/core/dom/EventRetargeter.cpp \
90	third_party/WebKit/Source/core/dom/EventListenerMap.cpp \
91	third_party/WebKit/Source/core/dom/EventNames.cpp \
92	third_party/WebKit/Source/core/dom/EventPathWalker.cpp \
93	third_party/WebKit/Source/core/dom/EventTarget.cpp \
94	third_party/WebKit/Source/core/dom/FocusEvent.cpp \
95	third_party/WebKit/Source/core/dom/FullscreenElementStack.cpp \
96	third_party/WebKit/Source/core/dom/GenericEventQueue.cpp \
97	third_party/WebKit/Source/core/dom/GestureEvent.cpp \
98	third_party/WebKit/Source/core/dom/IconURL.cpp \
99	third_party/WebKit/Source/core/dom/IdTargetObserver.cpp \
100	third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp \
101	third_party/WebKit/Source/core/dom/KeyboardEvent.cpp \
102	third_party/WebKit/Source/core/dom/LiveNodeList.cpp \
103	third_party/WebKit/Source/core/dom/MessageChannel.cpp \
104	third_party/WebKit/Source/core/dom/MessageEvent.cpp \
105	third_party/WebKit/Source/core/dom/MessagePort.cpp \
106	third_party/WebKit/Source/core/dom/MessagePortChannel.cpp \
107	third_party/WebKit/Source/core/dom/Microtask.cpp \
108	third_party/WebKit/Source/core/dom/MouseEvent.cpp \
109	third_party/WebKit/Source/core/dom/MouseRelatedEvent.cpp \
110	third_party/WebKit/Source/core/dom/MutationEvent.cpp \
111	third_party/WebKit/Source/core/dom/MutationObserver.cpp \
112	third_party/WebKit/Source/core/dom/MutationObserverInterestGroup.cpp \
113	third_party/WebKit/Source/core/dom/MutationObserverRegistration.cpp \
114	third_party/WebKit/Source/core/dom/MutationRecord.cpp \
115	third_party/WebKit/Source/core/dom/NamedFlow.cpp \
116	third_party/WebKit/Source/core/dom/NamedFlowCollection.cpp \
117	third_party/WebKit/Source/core/dom/NameNodeList.cpp \
118	third_party/WebKit/Source/core/dom/NamedNodeMap.cpp \
119	third_party/WebKit/Source/core/dom/NamedNodesCollection.cpp \
120	third_party/WebKit/Source/core/dom/Node.cpp \
121	third_party/WebKit/Source/core/dom/NodeFilter.cpp \
122	third_party/WebKit/Source/core/dom/NodeFilterCondition.cpp \
123	third_party/WebKit/Source/core/dom/NodeIterator.cpp \
124	third_party/WebKit/Source/core/dom/NodeList.cpp \
125	third_party/WebKit/Source/core/dom/NodeRareData.cpp \
126	third_party/WebKit/Source/core/dom/NodeRenderingContext.cpp \
127	third_party/WebKit/Source/core/dom/NodeRenderingTraversal.cpp \
128	third_party/WebKit/Source/core/dom/NodeTraversal.cpp \
129	third_party/WebKit/Source/core/dom/Notation.cpp \
130	third_party/WebKit/Source/core/dom/OverflowEvent.cpp \
131	third_party/WebKit/Source/core/dom/PageTransitionEvent.cpp \
132	third_party/WebKit/Source/core/dom/PendingScript.cpp \
133	third_party/WebKit/Source/core/dom/PopStateEvent.cpp \
134	third_party/WebKit/Source/core/dom/Position.cpp \
135	third_party/WebKit/Source/core/dom/PositionIterator.cpp \
136	third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp \
137	third_party/WebKit/Source/core/dom/ProgressEvent.cpp \
138	third_party/WebKit/Source/core/dom/PseudoElement.cpp \
139	third_party/WebKit/Source/core/dom/QualifiedName.cpp \
140	third_party/WebKit/Source/core/dom/Range.cpp \
141	third_party/WebKit/Source/core/dom/ResourceProgressEvent.cpp \
142	third_party/WebKit/Source/core/dom/ScopedEventQueue.cpp \
143	third_party/WebKit/Source/core/dom/ScriptExecutionContext.cpp \
144	third_party/WebKit/Source/core/dom/ScriptLoader.cpp \
145	third_party/WebKit/Source/core/dom/ScriptRunner.cpp \
146	third_party/WebKit/Source/core/dom/ScriptableDocumentParser.cpp \
147	third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp \
148	third_party/WebKit/Source/core/dom/SecurityContext.cpp \
149	third_party/WebKit/Source/core/dom/SelectorQuery.cpp \
150	third_party/WebKit/Source/core/dom/SpaceSplitString.cpp \
151	third_party/WebKit/Source/core/dom/StaticNodeList.cpp \
152	third_party/WebKit/Source/core/dom/StringCallback.cpp \
153	third_party/WebKit/Source/core/dom/StyleElement.cpp \
154	third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp \
155	third_party/WebKit/Source/core/dom/StyleSheetScopingNodeList.cpp \
156	third_party/WebKit/Source/core/dom/TagNodeList.cpp \
157	third_party/WebKit/Source/core/dom/Text.cpp \
158	third_party/WebKit/Source/core/dom/TextEvent.cpp \
159	third_party/WebKit/Source/core/dom/TextLinkColors.cpp \
160	third_party/WebKit/Source/core/dom/Touch.cpp \
161	third_party/WebKit/Source/core/dom/TouchEvent.cpp \
162	third_party/WebKit/Source/core/dom/TouchList.cpp \
163	third_party/WebKit/Source/core/dom/TransformSourceLibxslt.cpp \
164	third_party/WebKit/Source/core/dom/TransitionEvent.cpp \
165	third_party/WebKit/Source/core/dom/Traversal.cpp \
166	third_party/WebKit/Source/core/dom/TreeScope.cpp \
167	third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp \
168	third_party/WebKit/Source/core/dom/TreeWalker.cpp \
169	third_party/WebKit/Source/core/dom/UIEvent.cpp \
170	third_party/WebKit/Source/core/dom/UIEventWithKeyState.cpp \
171	third_party/WebKit/Source/core/dom/UserActionElementSet.cpp \
172	third_party/WebKit/Source/core/dom/UserGestureIndicator.cpp \
173	third_party/WebKit/Source/core/dom/UserTypingGestureIndicator.cpp \
174	third_party/WebKit/Source/core/dom/ViewportArguments.cpp \
175	third_party/WebKit/Source/core/dom/VisitedLinkState.cpp \
176	third_party/WebKit/Source/core/dom/WheelEvent.cpp \
177	third_party/WebKit/Source/core/dom/WindowEventContext.cpp \
178	third_party/WebKit/Source/core/dom/default/chromium/PlatformMessagePortChannelChromium.cpp \
179	third_party/WebKit/Source/core/dom/shadow/ComposedShadowTreeWalker.cpp \
180	third_party/WebKit/Source/core/dom/shadow/ContentDistributor.cpp \
181	third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp \
182	third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp \
183	third_party/WebKit/Source/core/dom/shadow/SelectRuleFeatureSet.cpp \
184	third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
185
186
187# Flags passed to both C and C++ files.
188MY_CFLAGS_Debug := \
189	--param=ssp-buffer-size=4 \
190	-fno-exceptions \
191	-fno-strict-aliasing \
192	-Wno-unused-parameter \
193	-Wno-missing-field-initializers \
194	-fvisibility=hidden \
195	-pipe \
196	-fPIC \
197	-Wno-format \
198	-m32 \
199	-mmmx \
200	-march=pentium4 \
201	-msse2 \
202	-mfpmath=sse \
203	-fuse-ld=gold \
204	-ffunction-sections \
205	-funwind-tables \
206	-g \
207	-fno-short-enums \
208	-finline-limit=64 \
209	-Wa,--noexecstack \
210	-U_FORTIFY_SOURCE \
211	-Wno-extra \
212	-Wno-ignored-qualifiers \
213	-Wno-type-limits \
214	-Wno-address \
215	-Wno-format-security \
216	-Wno-return-type \
217	-Wno-sequence-point \
218	-fno-stack-protector \
219	-Os \
220	-g \
221	-fomit-frame-pointer \
222	-fdata-sections \
223	-ffunction-sections
224
225MY_DEFS_Debug := \
226	'-DANGLE_DX11' \
227	'-D_FILE_OFFSET_BITS=64' \
228	'-DNO_TCMALLOC' \
229	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
230	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
231	'-DDISABLE_NACL' \
232	'-DCHROMIUM_BUILD' \
233	'-DUSE_LIBJPEG_TURBO=1' \
234	'-DUSE_PROPRIETARY_CODECS' \
235	'-DENABLE_CONFIGURATION_POLICY' \
236	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
237	'-DTRACING_IS_OFFICIAL_BUILD=1' \
238	'-DENABLE_GPU=1' \
239	'-DUSE_OPENSSL=1' \
240	'-DENABLE_EGLIMAGE=1' \
241	'-DENABLE_PRINTING=1' \
242	'-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \
243	'-DWEBKIT_IMPLEMENTATION=1' \
244	'-DINSIDE_WEBKIT' \
245	'-DENABLE_CSS3_TEXT=0' \
246	'-DENABLE_CSS_EXCLUSIONS=1' \
247	'-DENABLE_CSS_REGIONS=1' \
248	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
249	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
250	'-DENABLE_SVG_FONTS=1' \
251	'-DENABLE_TOUCH_ICON_LOADING=1' \
252	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
253	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
254	'-DENABLE_CALENDAR_PICKER=0' \
255	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
256	'-DENABLE_INPUT_SPEECH=0' \
257	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
258	'-DENABLE_MEDIA_CAPTURE=1' \
259	'-DENABLE_NOTIFICATIONS=0' \
260	'-DENABLE_ORIENTATION_EVENTS=1' \
261	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
262	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
263	'-DENABLE_OPENTYPE_VERTICAL=1' \
264	'-DWTF_USE_HARFBUZZ=1' \
265	'-DU_USING_ICU_NAMESPACE=0' \
266	'-DCHROME_PNG_WRITE_SUPPORT' \
267	'-DPNG_USER_CONFIG' \
268	'-DLIBXML_STATIC' \
269	'-DLIBXSLT_STATIC' \
270	'-DUSE_SYSTEM_LIBJPEG' \
271	'-DANDROID' \
272	'-D__GNU_SOURCE=1' \
273	'-DUSE_STLPORT=1' \
274	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
275	'-DCHROME_BUILD_ID=""' \
276	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
277	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
278	'-D_DEBUG'
279
280
281# Include paths placed before CFLAGS/CPPFLAGS
282LOCAL_C_INCLUDES_Debug := \
283	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
284	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
285	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
286	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
287	$(LOCAL_PATH)/third_party/khronos \
288	$(LOCAL_PATH)/gpu \
289	$(LOCAL_PATH) \
290	$(LOCAL_PATH)/third_party/WebKit \
291	$(LOCAL_PATH)/third_party/WebKit/Source \
292	$(gyp_shared_intermediate_dir)/blink \
293	$(gyp_shared_intermediate_dir)/blink/bindings \
294	$(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \
295	$(PWD)/external/icu4c/common \
296	$(PWD)/external/icu4c/i18n \
297	$(LOCAL_PATH)/third_party/skia/src/core \
298	$(LOCAL_PATH)/skia/ext \
299	$(LOCAL_PATH)/third_party/iccjpeg \
300	$(LOCAL_PATH)/third_party/libpng \
301	$(LOCAL_PATH)/third_party/libwebp \
302	$(LOCAL_PATH)/third_party/libxml/linux/include \
303	$(LOCAL_PATH)/third_party/libxml/src/include \
304	$(LOCAL_PATH)/third_party/libxslt \
305	$(LOCAL_PATH)/third_party/npapi \
306	$(LOCAL_PATH)/third_party/npapi/bindings \
307	$(LOCAL_PATH)/third_party/ots/include \
308	$(LOCAL_PATH)/third_party/qcms/src \
309	$(LOCAL_PATH)/third_party/sqlite \
310	$(LOCAL_PATH)/third_party/zlib \
311	$(LOCAL_PATH)/v8/include \
312	$(PWD)/external/jpeg \
313	$(PWD)/frameworks/wilhelm/include \
314	$(PWD)/bionic \
315	$(PWD)/external/stlport/stlport
316
317
318# Flags passed to only C++ (and not C) files.
319LOCAL_CPPFLAGS_Debug := \
320	-fno-rtti \
321	-fno-threadsafe-statics \
322	-fvisibility-inlines-hidden \
323	-Wno-c++0x-compat \
324	-Wno-deprecated \
325	-Wno-error=c++0x-compat \
326	-Wno-non-virtual-dtor \
327	-Wno-sign-promo \
328	-Wno-non-virtual-dtor
329
330
331# Flags passed to both C and C++ files.
332MY_CFLAGS_Release := \
333	--param=ssp-buffer-size=4 \
334	-fno-exceptions \
335	-fno-strict-aliasing \
336	-Wno-unused-parameter \
337	-Wno-missing-field-initializers \
338	-fvisibility=hidden \
339	-pipe \
340	-fPIC \
341	-Wno-format \
342	-m32 \
343	-mmmx \
344	-march=pentium4 \
345	-msse2 \
346	-mfpmath=sse \
347	-fuse-ld=gold \
348	-ffunction-sections \
349	-funwind-tables \
350	-g \
351	-fno-short-enums \
352	-finline-limit=64 \
353	-Wa,--noexecstack \
354	-U_FORTIFY_SOURCE \
355	-Wno-extra \
356	-Wno-ignored-qualifiers \
357	-Wno-type-limits \
358	-Wno-address \
359	-Wno-format-security \
360	-Wno-return-type \
361	-Wno-sequence-point \
362	-fno-stack-protector \
363	-Os \
364	-fno-ident \
365	-fdata-sections \
366	-ffunction-sections \
367	-fomit-frame-pointer \
368	-fno-unwind-tables \
369	-fno-asynchronous-unwind-tables
370
371MY_DEFS_Release := \
372	'-DANGLE_DX11' \
373	'-D_FILE_OFFSET_BITS=64' \
374	'-DNO_TCMALLOC' \
375	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
376	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
377	'-DDISABLE_NACL' \
378	'-DCHROMIUM_BUILD' \
379	'-DUSE_LIBJPEG_TURBO=1' \
380	'-DUSE_PROPRIETARY_CODECS' \
381	'-DENABLE_CONFIGURATION_POLICY' \
382	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
383	'-DTRACING_IS_OFFICIAL_BUILD=1' \
384	'-DENABLE_GPU=1' \
385	'-DUSE_OPENSSL=1' \
386	'-DENABLE_EGLIMAGE=1' \
387	'-DENABLE_PRINTING=1' \
388	'-DWEBCORE_NAVIGATOR_VENDOR="Google Inc."' \
389	'-DWEBKIT_IMPLEMENTATION=1' \
390	'-DINSIDE_WEBKIT' \
391	'-DENABLE_CSS3_TEXT=0' \
392	'-DENABLE_CSS_EXCLUSIONS=1' \
393	'-DENABLE_CSS_REGIONS=1' \
394	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
395	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
396	'-DENABLE_SVG_FONTS=1' \
397	'-DENABLE_TOUCH_ICON_LOADING=1' \
398	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
399	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
400	'-DENABLE_CALENDAR_PICKER=0' \
401	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
402	'-DENABLE_INPUT_SPEECH=0' \
403	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
404	'-DENABLE_MEDIA_CAPTURE=1' \
405	'-DENABLE_NOTIFICATIONS=0' \
406	'-DENABLE_ORIENTATION_EVENTS=1' \
407	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
408	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
409	'-DENABLE_OPENTYPE_VERTICAL=1' \
410	'-DWTF_USE_HARFBUZZ=1' \
411	'-DU_USING_ICU_NAMESPACE=0' \
412	'-DCHROME_PNG_WRITE_SUPPORT' \
413	'-DPNG_USER_CONFIG' \
414	'-DLIBXML_STATIC' \
415	'-DLIBXSLT_STATIC' \
416	'-DUSE_SYSTEM_LIBJPEG' \
417	'-DANDROID' \
418	'-D__GNU_SOURCE=1' \
419	'-DUSE_STLPORT=1' \
420	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
421	'-DCHROME_BUILD_ID=""' \
422	'-DNDEBUG' \
423	'-DNVALGRIND' \
424	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
425
426
427# Include paths placed before CFLAGS/CPPFLAGS
428LOCAL_C_INCLUDES_Release := \
429	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
430	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
431	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
432	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
433	$(LOCAL_PATH)/third_party/khronos \
434	$(LOCAL_PATH)/gpu \
435	$(LOCAL_PATH) \
436	$(LOCAL_PATH)/third_party/WebKit \
437	$(LOCAL_PATH)/third_party/WebKit/Source \
438	$(gyp_shared_intermediate_dir)/blink \
439	$(gyp_shared_intermediate_dir)/blink/bindings \
440	$(LOCAL_PATH)/third_party/angle_dx11/include/GLSLANG \
441	$(PWD)/external/icu4c/common \
442	$(PWD)/external/icu4c/i18n \
443	$(LOCAL_PATH)/third_party/skia/src/core \
444	$(LOCAL_PATH)/skia/ext \
445	$(LOCAL_PATH)/third_party/iccjpeg \
446	$(LOCAL_PATH)/third_party/libpng \
447	$(LOCAL_PATH)/third_party/libwebp \
448	$(LOCAL_PATH)/third_party/libxml/linux/include \
449	$(LOCAL_PATH)/third_party/libxml/src/include \
450	$(LOCAL_PATH)/third_party/libxslt \
451	$(LOCAL_PATH)/third_party/npapi \
452	$(LOCAL_PATH)/third_party/npapi/bindings \
453	$(LOCAL_PATH)/third_party/ots/include \
454	$(LOCAL_PATH)/third_party/qcms/src \
455	$(LOCAL_PATH)/third_party/sqlite \
456	$(LOCAL_PATH)/third_party/zlib \
457	$(LOCAL_PATH)/v8/include \
458	$(PWD)/external/jpeg \
459	$(PWD)/frameworks/wilhelm/include \
460	$(PWD)/bionic \
461	$(PWD)/external/stlport/stlport
462
463
464# Flags passed to only C++ (and not C) files.
465LOCAL_CPPFLAGS_Release := \
466	-fno-rtti \
467	-fno-threadsafe-statics \
468	-fvisibility-inlines-hidden \
469	-Wno-c++0x-compat \
470	-Wno-deprecated \
471	-Wno-error=c++0x-compat \
472	-Wno-non-virtual-dtor \
473	-Wno-sign-promo \
474	-Wno-non-virtual-dtor
475
476
477LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
478LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
479LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
480### Rules for final target.
481
482LOCAL_LDFLAGS_Debug := \
483	-Wl,-z,now \
484	-Wl,-z,relro \
485	-Wl,-z,noexecstack \
486	-fPIC \
487	-m32 \
488	-fuse-ld=gold \
489	-nostdlib \
490	-Wl,--no-undefined \
491	-Wl,--exclude-libs=ALL \
492	-Wl,--fatal-warnings \
493	-Wl,--gc-sections \
494	-Wl,--warn-shared-textrel \
495	-Wl,-O1 \
496	-Wl,--as-needed
497
498
499LOCAL_LDFLAGS_Release := \
500	-Wl,-z,now \
501	-Wl,-z,relro \
502	-Wl,-z,noexecstack \
503	-fPIC \
504	-m32 \
505	-fuse-ld=gold \
506	-nostdlib \
507	-Wl,--no-undefined \
508	-Wl,--exclude-libs=ALL \
509	-Wl,-O1 \
510	-Wl,--as-needed \
511	-Wl,--gc-sections \
512	-Wl,--fatal-warnings \
513	-Wl,--warn-shared-textrel
514
515
516LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
517
518LOCAL_STATIC_LIBRARIES :=
519
520# Enable grouping to fix circular references
521LOCAL_GROUP_STATIC_LIBRARIES := true
522
523LOCAL_SHARED_LIBRARIES := \
524	libskia \
525	libstlport \
526	libdl
527
528# Add target alias to "gyp_all_modules" target.
529.PHONY: gyp_all_modules
530gyp_all_modules: third_party_WebKit_Source_core_webcore_dom_gyp
531
532# Alias gyp target name.
533.PHONY: webcore_dom
534webcore_dom: third_party_WebKit_Source_core_webcore_dom_gyp
535
536include $(BUILD_STATIC_LIBRARY)
537