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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
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,,,$(GYP_VAR_PREFIX))/webcore_prerequisites.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/WebKit/Source/core/dom/ActiveDOMObject.cpp \
28	third_party/WebKit/Source/core/dom/AddConsoleMessageTask.cpp \
29	third_party/WebKit/Source/core/dom/Attr.cpp \
30	third_party/WebKit/Source/core/dom/CDATASection.cpp \
31	third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp \
32	third_party/WebKit/Source/core/dom/CharacterData.cpp \
33	third_party/WebKit/Source/core/dom/ChildFrameDisconnector.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/ClassCollection.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/Comment.cpp \
40	third_party/WebKit/Source/core/dom/ContainerNode.cpp \
41	third_party/WebKit/Source/core/dom/ContextFeatures.cpp \
42	third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp \
43	third_party/WebKit/Source/core/dom/ContextLifecycleObserver.cpp \
44	third_party/WebKit/Source/core/dom/DOMError.cpp \
45	third_party/WebKit/Source/core/dom/DOMException.cpp \
46	third_party/WebKit/Source/core/dom/DOMImplementation.cpp \
47	third_party/WebKit/Source/core/dom/DOMMatrix.cpp \
48	third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp \
49	third_party/WebKit/Source/core/dom/DOMPoint.cpp \
50	third_party/WebKit/Source/core/dom/DOMPointReadOnly.cpp \
51	third_party/WebKit/Source/core/dom/DOMRect.cpp \
52	third_party/WebKit/Source/core/dom/DOMRectReadOnly.cpp \
53	third_party/WebKit/Source/core/dom/DOMSettableTokenList.cpp \
54	third_party/WebKit/Source/core/dom/DOMStringList.cpp \
55	third_party/WebKit/Source/core/dom/DOMStringMap.cpp \
56	third_party/WebKit/Source/core/dom/DOMTokenList.cpp \
57	third_party/WebKit/Source/core/dom/DOMURL.cpp \
58	third_party/WebKit/Source/core/dom/DOMURLUtils.cpp \
59	third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.cpp \
60	third_party/WebKit/Source/core/dom/DatasetDOMStringMap.cpp \
61	third_party/WebKit/Source/core/dom/DecodedDataDocumentParser.cpp \
62	third_party/WebKit/Source/core/dom/Document.cpp \
63	third_party/WebKit/Source/core/dom/DocumentEncodingData.cpp \
64	third_party/WebKit/Source/core/dom/DocumentFragment.cpp \
65	third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp \
66	third_party/WebKit/Source/core/dom/DocumentInit.cpp \
67	third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp \
68	third_party/WebKit/Source/core/dom/DocumentLifecycleNotifier.cpp \
69	third_party/WebKit/Source/core/dom/DocumentLifecycleObserver.cpp \
70	third_party/WebKit/Source/core/dom/DocumentMarker.cpp \
71	third_party/WebKit/Source/core/dom/DocumentMarkerController.cpp \
72	third_party/WebKit/Source/core/dom/DocumentOrderedList.cpp \
73	third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp \
74	third_party/WebKit/Source/core/dom/DocumentParser.cpp \
75	third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp \
76	third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp \
77	third_party/WebKit/Source/core/dom/DocumentType.cpp \
78	third_party/WebKit/Source/core/dom/Element.cpp \
79	third_party/WebKit/Source/core/dom/ElementData.cpp \
80	third_party/WebKit/Source/core/dom/ElementDataCache.cpp \
81	third_party/WebKit/Source/core/dom/ElementFullscreen.cpp \
82	third_party/WebKit/Source/core/dom/ElementRareData.cpp \
83	third_party/WebKit/Source/core/dom/EmptyNodeList.cpp \
84	third_party/WebKit/Source/core/dom/ExecutionContext.cpp \
85	third_party/WebKit/Source/core/dom/Fullscreen.cpp \
86	third_party/WebKit/Source/core/dom/IconURL.cpp \
87	third_party/WebKit/Source/core/dom/IdTargetObserver.cpp \
88	third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp \
89	third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.cpp \
90	third_party/WebKit/Source/core/dom/LiveNodeList.cpp \
91	third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp \
92	third_party/WebKit/Source/core/dom/MainThreadTaskRunner.cpp \
93	third_party/WebKit/Source/core/dom/MessageChannel.cpp \
94	third_party/WebKit/Source/core/dom/MessagePort.cpp \
95	third_party/WebKit/Source/core/dom/Microtask.cpp \
96	third_party/WebKit/Source/core/dom/MutationObserver.cpp \
97	third_party/WebKit/Source/core/dom/MutationObserverInterestGroup.cpp \
98	third_party/WebKit/Source/core/dom/MutationObserverRegistration.cpp \
99	third_party/WebKit/Source/core/dom/MutationRecord.cpp \
100	third_party/WebKit/Source/core/dom/NameNodeList.cpp \
101	third_party/WebKit/Source/core/dom/NamedNodeMap.cpp \
102	third_party/WebKit/Source/core/dom/Node.cpp \
103	third_party/WebKit/Source/core/dom/NodeChildRemovalTracker.cpp \
104	third_party/WebKit/Source/core/dom/NodeFilter.cpp \
105	third_party/WebKit/Source/core/dom/NodeIterator.cpp \
106	third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp \
107	third_party/WebKit/Source/core/dom/NodeListsNodeData.cpp \
108	third_party/WebKit/Source/core/dom/NodeRareData.cpp \
109	third_party/WebKit/Source/core/dom/NodeRenderingTraversal.cpp \
110	third_party/WebKit/Source/core/dom/NodeTraversal.cpp \
111	third_party/WebKit/Source/core/dom/PendingScript.cpp \
112	third_party/WebKit/Source/core/dom/Position.cpp \
113	third_party/WebKit/Source/core/dom/PositionIterator.cpp \
114	third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp \
115	third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp \
116	third_party/WebKit/Source/core/dom/PseudoElement.cpp \
117	third_party/WebKit/Source/core/dom/QualifiedName.cpp \
118	third_party/WebKit/Source/core/dom/Range.cpp \
119	third_party/WebKit/Source/core/dom/RenderTreeBuilder.cpp \
120	third_party/WebKit/Source/core/dom/SandboxFlags.cpp \
121	third_party/WebKit/Source/core/dom/ScriptLoader.cpp \
122	third_party/WebKit/Source/core/dom/ScriptRunner.cpp \
123	third_party/WebKit/Source/core/dom/ScriptableDocumentParser.cpp \
124	third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp \
125	third_party/WebKit/Source/core/dom/SecurityContext.cpp \
126	third_party/WebKit/Source/core/dom/SelectorQuery.cpp \
127	third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp \
128	third_party/WebKit/Source/core/dom/SpaceSplitString.cpp \
129	third_party/WebKit/Source/core/dom/StringCallback.cpp \
130	third_party/WebKit/Source/core/dom/StyleElement.cpp \
131	third_party/WebKit/Source/core/dom/StyleEngine.cpp \
132	third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp \
133	third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp \
134	third_party/WebKit/Source/core/dom/TagCollection.cpp \
135	third_party/WebKit/Source/core/dom/Text.cpp \
136	third_party/WebKit/Source/core/dom/TextLinkColors.cpp \
137	third_party/WebKit/Source/core/dom/Touch.cpp \
138	third_party/WebKit/Source/core/dom/TouchList.cpp \
139	third_party/WebKit/Source/core/dom/TransformSourceLibxslt.cpp \
140	third_party/WebKit/Source/core/dom/TreeScope.cpp \
141	third_party/WebKit/Source/core/dom/TreeScopeAdopter.cpp \
142	third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp \
143	third_party/WebKit/Source/core/dom/TreeWalker.cpp \
144	third_party/WebKit/Source/core/dom/UserActionElementSet.cpp \
145	third_party/WebKit/Source/core/dom/ViewportDescription.cpp \
146	third_party/WebKit/Source/core/dom/VisitedLinkState.cpp \
147	third_party/WebKit/Source/core/dom/WeakNodeMap.cpp \
148	third_party/WebKit/Source/core/dom/XMLDocument.cpp \
149	third_party/WebKit/Source/core/dom/custom/CustomElement.cpp \
150	third_party/WebKit/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.cpp \
151	third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp \
152	third_party/WebKit/Source/core/dom/custom/CustomElementCallbackQueue.cpp \
153	third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp \
154	third_party/WebKit/Source/core/dom/custom/CustomElementException.cpp \
155	third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp \
156	third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp \
157	third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskQueueBase.cpp \
158	third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskResolutionStep.cpp \
159	third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskRunQueue.cpp \
160	third_party/WebKit/Source/core/dom/custom/CustomElementObserver.cpp \
161	third_party/WebKit/Source/core/dom/custom/CustomElementProcessingStack.cpp \
162	third_party/WebKit/Source/core/dom/custom/CustomElementRegistrationContext.cpp \
163	third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp \
164	third_party/WebKit/Source/core/dom/custom/CustomElementScheduler.cpp \
165	third_party/WebKit/Source/core/dom/custom/CustomElementSyncMicrotaskQueue.cpp \
166	third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeCandidateMap.cpp \
167	third_party/WebKit/Source/core/dom/shadow/ComposedTreeWalker.cpp \
168	third_party/WebKit/Source/core/dom/shadow/ContentDistribution.cpp \
169	third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp \
170	third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp \
171	third_party/WebKit/Source/core/dom/shadow/SelectRuleFeatureSet.cpp \
172	third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp \
173	third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp \
174	third_party/WebKit/Source/core/events/ApplicationCacheErrorEvent.cpp \
175	third_party/WebKit/Source/core/events/BeforeTextInsertedEvent.cpp \
176	third_party/WebKit/Source/core/events/BeforeUnloadEvent.cpp \
177	third_party/WebKit/Source/core/events/ClipboardEvent.cpp \
178	third_party/WebKit/Source/core/events/CompositionEvent.cpp \
179	third_party/WebKit/Source/core/events/CustomEvent.cpp \
180	third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp \
181	third_party/WebKit/Source/core/events/ErrorEvent.cpp \
182	third_party/WebKit/Source/core/events/Event.cpp \
183	third_party/WebKit/Source/core/events/EventDispatchMediator.cpp \
184	third_party/WebKit/Source/core/events/EventDispatcher.cpp \
185	third_party/WebKit/Source/core/events/EventListenerMap.cpp \
186	third_party/WebKit/Source/core/events/EventPath.cpp \
187	third_party/WebKit/Source/core/events/EventTarget.cpp \
188	third_party/WebKit/Source/core/events/FocusEvent.cpp \
189	third_party/WebKit/Source/core/events/GenericEventQueue.cpp \
190	third_party/WebKit/Source/core/events/GestureEvent.cpp \
191	third_party/WebKit/Source/core/events/KeyboardEvent.cpp \
192	third_party/WebKit/Source/core/events/MessageEvent.cpp \
193	third_party/WebKit/Source/core/events/MouseEvent.cpp \
194	third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp \
195	third_party/WebKit/Source/core/events/MutationEvent.cpp \
196	third_party/WebKit/Source/core/events/NavigatorEvents.cpp \
197	third_party/WebKit/Source/core/events/NodeEventContext.cpp \
198	third_party/WebKit/Source/core/events/OverflowEvent.cpp \
199	third_party/WebKit/Source/core/events/PageTransitionEvent.cpp \
200	third_party/WebKit/Source/core/events/PopStateEvent.cpp \
201	third_party/WebKit/Source/core/events/ProgressEvent.cpp \
202	third_party/WebKit/Source/core/events/RelatedEvent.cpp \
203	third_party/WebKit/Source/core/events/ResourceProgressEvent.cpp \
204	third_party/WebKit/Source/core/events/ScopedEventQueue.cpp \
205	third_party/WebKit/Source/core/events/TextEvent.cpp \
206	third_party/WebKit/Source/core/events/TouchEvent.cpp \
207	third_party/WebKit/Source/core/events/TouchEventContext.cpp \
208	third_party/WebKit/Source/core/events/TransitionEvent.cpp \
209	third_party/WebKit/Source/core/events/TreeScopeEventContext.cpp \
210	third_party/WebKit/Source/core/events/UIEvent.cpp \
211	third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp \
212	third_party/WebKit/Source/core/events/WebKitAnimationEvent.cpp \
213	third_party/WebKit/Source/core/events/WheelEvent.cpp \
214	third_party/WebKit/Source/core/events/WindowEventContext.cpp
215
216
217# Flags passed to both C and C++ files.
218MY_CFLAGS_Debug := \
219	--param=ssp-buffer-size=4 \
220	-Werror \
221	-fno-strict-aliasing \
222	-Wall \
223	-Wno-unused-parameter \
224	-Wno-missing-field-initializers \
225	-fvisibility=hidden \
226	-pipe \
227	-fPIC \
228	-Wno-unused-local-typedefs \
229	-ffunction-sections \
230	-funwind-tables \
231	-g \
232	-fno-short-enums \
233	-finline-limit=64 \
234	-Wa,--noexecstack \
235	-U_FORTIFY_SOURCE \
236	-Wno-extra \
237	-Wno-ignored-qualifiers \
238	-Wno-type-limits \
239	-Wno-unused-but-set-variable \
240	-Os \
241	-g \
242	-gdwarf-4 \
243	-fdata-sections \
244	-ffunction-sections \
245	-funwind-tables
246
247MY_DEFS_Debug := \
248	'-DV8_DEPRECATION_WARNINGS' \
249	'-D_FILE_OFFSET_BITS=64' \
250	'-DNO_TCMALLOC' \
251	'-DDISABLE_NACL' \
252	'-DCHROMIUM_BUILD' \
253	'-DUSE_LIBJPEG_TURBO=1' \
254	'-DENABLE_WEBRTC=1' \
255	'-DUSE_PROPRIETARY_CODECS' \
256	'-DENABLE_BROWSER_CDMS' \
257	'-DENABLE_CONFIGURATION_POLICY' \
258	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
259	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
260	'-DENABLE_EGLIMAGE=1' \
261	'-DCLD_VERSION=1' \
262	'-DENABLE_PRINTING=1' \
263	'-DENABLE_MANAGED_USERS=1' \
264	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
265	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
266	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
267	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
268	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
269	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
270	'-DVIDEO_HOLE=1' \
271	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
272	'-DBLINK_IMPLEMENTATION=1' \
273	'-DINSIDE_BLINK' \
274	'-DENABLE_SVG_FONTS=1' \
275	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
276	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
277	'-DENABLE_WEB_AUDIO=1' \
278	'-DENABLE_OPENTYPE_VERTICAL=1' \
279	'-DU_USING_ICU_NAMESPACE=0' \
280	'-DU_ENABLE_DYLOAD=0' \
281	'-DSK_ENABLE_INST_COUNT=0' \
282	'-DSK_SUPPORT_GPU=1' \
283	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
284	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
285	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
286	'-DGR_GL_IGNORE_ES3_MSAA=0' \
287	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
288	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
289	'-DSK_BUILD_FOR_ANDROID' \
290	'-DSK_USE_POSIX_THREADS' \
291	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
292	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
293	'-DCHROME_PNG_WRITE_SUPPORT' \
294	'-DPNG_USER_CONFIG' \
295	'-DCHROME_PNG_READ_PACK_SUPPORT' \
296	'-DLIBXML_STATIC' \
297	'-DLIBXSLT_STATIC' \
298	'-DUSE_OPENSSL=1' \
299	'-DUSE_OPENSSL_CERTS=1' \
300	'-D__STDC_CONSTANT_MACROS' \
301	'-D__STDC_FORMAT_MACROS' \
302	'-DANDROID' \
303	'-D__GNU_SOURCE=1' \
304	'-DUSE_STLPORT=1' \
305	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
306	'-DCHROME_BUILD_ID=""' \
307	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
308	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
309	'-D_DEBUG'
310
311
312# Include paths placed before CFLAGS/CPPFLAGS
313LOCAL_C_INCLUDES_Debug := \
314	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
315	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
316	$(gyp_shared_intermediate_dir) \
317	$(LOCAL_PATH)/third_party/WebKit/Source \
318	$(LOCAL_PATH) \
319	$(LOCAL_PATH)/skia/config \
320	$(LOCAL_PATH)/third_party/khronos \
321	$(LOCAL_PATH)/gpu \
322	$(gyp_shared_intermediate_dir)/blink \
323	$(LOCAL_PATH)/third_party/openmax_dl \
324	$(LOCAL_PATH)/third_party/angle/include \
325	$(PWD)/external/icu/icu4c/source/common \
326	$(PWD)/external/icu/icu4c/source/i18n \
327	$(LOCAL_PATH)/third_party/WebKit \
328	$(LOCAL_PATH)/third_party/skia/src/core \
329	$(LOCAL_PATH)/third_party/skia/include/core \
330	$(LOCAL_PATH)/third_party/skia/include/effects \
331	$(LOCAL_PATH)/third_party/skia/include/pdf \
332	$(LOCAL_PATH)/third_party/skia/include/gpu \
333	$(LOCAL_PATH)/third_party/skia/include/lazy \
334	$(LOCAL_PATH)/third_party/skia/include/pathops \
335	$(LOCAL_PATH)/third_party/skia/include/pipe \
336	$(LOCAL_PATH)/third_party/skia/include/ports \
337	$(LOCAL_PATH)/third_party/skia/include/utils \
338	$(LOCAL_PATH)/skia/ext \
339	$(LOCAL_PATH)/third_party/iccjpeg \
340	$(LOCAL_PATH)/third_party/libpng \
341	$(LOCAL_PATH)/third_party/libwebp \
342	$(LOCAL_PATH)/third_party/libxml/linux/include \
343	$(LOCAL_PATH)/third_party/libxml/src/include \
344	$(LOCAL_PATH)/third_party/libxslt \
345	$(LOCAL_PATH)/third_party/npapi \
346	$(LOCAL_PATH)/third_party/npapi/bindings \
347	$(LOCAL_PATH)/third_party/ots/include \
348	$(LOCAL_PATH)/third_party/qcms/src \
349	$(LOCAL_PATH)/third_party/sqlite \
350	$(LOCAL_PATH)/third_party/zlib \
351	$(LOCAL_PATH)/v8/include \
352	$(PWD)/frameworks/wilhelm/include \
353	$(PWD)/bionic \
354	$(PWD)/external/stlport/stlport
355
356
357# Flags passed to only C++ (and not C) files.
358LOCAL_CPPFLAGS_Debug := \
359	-fno-exceptions \
360	-fno-rtti \
361	-fno-threadsafe-statics \
362	-fvisibility-inlines-hidden \
363	-Wsign-compare \
364	-Wno-c++0x-compat \
365	-std=gnu++11 \
366	-Wno-narrowing \
367	-Wno-literal-suffix \
368	-Wno-non-virtual-dtor \
369	-Wno-sign-promo
370
371
372# Flags passed to both C and C++ files.
373MY_CFLAGS_Release := \
374	--param=ssp-buffer-size=4 \
375	-Werror \
376	-fno-strict-aliasing \
377	-Wall \
378	-Wno-unused-parameter \
379	-Wno-missing-field-initializers \
380	-fvisibility=hidden \
381	-pipe \
382	-fPIC \
383	-Wno-unused-local-typedefs \
384	-ffunction-sections \
385	-funwind-tables \
386	-g \
387	-fno-short-enums \
388	-finline-limit=64 \
389	-Wa,--noexecstack \
390	-U_FORTIFY_SOURCE \
391	-Wno-extra \
392	-Wno-ignored-qualifiers \
393	-Wno-type-limits \
394	-Wno-unused-but-set-variable \
395	-Os \
396	-fno-ident \
397	-fdata-sections \
398	-ffunction-sections \
399	-funwind-tables
400
401MY_DEFS_Release := \
402	'-DV8_DEPRECATION_WARNINGS' \
403	'-D_FILE_OFFSET_BITS=64' \
404	'-DNO_TCMALLOC' \
405	'-DDISABLE_NACL' \
406	'-DCHROMIUM_BUILD' \
407	'-DUSE_LIBJPEG_TURBO=1' \
408	'-DENABLE_WEBRTC=1' \
409	'-DUSE_PROPRIETARY_CODECS' \
410	'-DENABLE_BROWSER_CDMS' \
411	'-DENABLE_CONFIGURATION_POLICY' \
412	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
413	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
414	'-DENABLE_EGLIMAGE=1' \
415	'-DCLD_VERSION=1' \
416	'-DENABLE_PRINTING=1' \
417	'-DENABLE_MANAGED_USERS=1' \
418	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
419	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
420	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
421	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
422	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
423	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
424	'-DVIDEO_HOLE=1' \
425	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
426	'-DBLINK_IMPLEMENTATION=1' \
427	'-DINSIDE_BLINK' \
428	'-DENABLE_SVG_FONTS=1' \
429	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
430	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
431	'-DENABLE_WEB_AUDIO=1' \
432	'-DENABLE_OPENTYPE_VERTICAL=1' \
433	'-DU_USING_ICU_NAMESPACE=0' \
434	'-DU_ENABLE_DYLOAD=0' \
435	'-DSK_ENABLE_INST_COUNT=0' \
436	'-DSK_SUPPORT_GPU=1' \
437	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
438	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
439	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
440	'-DGR_GL_IGNORE_ES3_MSAA=0' \
441	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
442	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
443	'-DSK_BUILD_FOR_ANDROID' \
444	'-DSK_USE_POSIX_THREADS' \
445	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
446	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
447	'-DCHROME_PNG_WRITE_SUPPORT' \
448	'-DPNG_USER_CONFIG' \
449	'-DCHROME_PNG_READ_PACK_SUPPORT' \
450	'-DLIBXML_STATIC' \
451	'-DLIBXSLT_STATIC' \
452	'-DUSE_OPENSSL=1' \
453	'-DUSE_OPENSSL_CERTS=1' \
454	'-D__STDC_CONSTANT_MACROS' \
455	'-D__STDC_FORMAT_MACROS' \
456	'-DANDROID' \
457	'-D__GNU_SOURCE=1' \
458	'-DUSE_STLPORT=1' \
459	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
460	'-DCHROME_BUILD_ID=""' \
461	'-DNDEBUG' \
462	'-DNVALGRIND' \
463	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
464	'-D_FORTIFY_SOURCE=2'
465
466
467# Include paths placed before CFLAGS/CPPFLAGS
468LOCAL_C_INCLUDES_Release := \
469	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
470	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
471	$(gyp_shared_intermediate_dir) \
472	$(LOCAL_PATH)/third_party/WebKit/Source \
473	$(LOCAL_PATH) \
474	$(LOCAL_PATH)/skia/config \
475	$(LOCAL_PATH)/third_party/khronos \
476	$(LOCAL_PATH)/gpu \
477	$(gyp_shared_intermediate_dir)/blink \
478	$(LOCAL_PATH)/third_party/openmax_dl \
479	$(LOCAL_PATH)/third_party/angle/include \
480	$(PWD)/external/icu/icu4c/source/common \
481	$(PWD)/external/icu/icu4c/source/i18n \
482	$(LOCAL_PATH)/third_party/WebKit \
483	$(LOCAL_PATH)/third_party/skia/src/core \
484	$(LOCAL_PATH)/third_party/skia/include/core \
485	$(LOCAL_PATH)/third_party/skia/include/effects \
486	$(LOCAL_PATH)/third_party/skia/include/pdf \
487	$(LOCAL_PATH)/third_party/skia/include/gpu \
488	$(LOCAL_PATH)/third_party/skia/include/lazy \
489	$(LOCAL_PATH)/third_party/skia/include/pathops \
490	$(LOCAL_PATH)/third_party/skia/include/pipe \
491	$(LOCAL_PATH)/third_party/skia/include/ports \
492	$(LOCAL_PATH)/third_party/skia/include/utils \
493	$(LOCAL_PATH)/skia/ext \
494	$(LOCAL_PATH)/third_party/iccjpeg \
495	$(LOCAL_PATH)/third_party/libpng \
496	$(LOCAL_PATH)/third_party/libwebp \
497	$(LOCAL_PATH)/third_party/libxml/linux/include \
498	$(LOCAL_PATH)/third_party/libxml/src/include \
499	$(LOCAL_PATH)/third_party/libxslt \
500	$(LOCAL_PATH)/third_party/npapi \
501	$(LOCAL_PATH)/third_party/npapi/bindings \
502	$(LOCAL_PATH)/third_party/ots/include \
503	$(LOCAL_PATH)/third_party/qcms/src \
504	$(LOCAL_PATH)/third_party/sqlite \
505	$(LOCAL_PATH)/third_party/zlib \
506	$(LOCAL_PATH)/v8/include \
507	$(PWD)/frameworks/wilhelm/include \
508	$(PWD)/bionic \
509	$(PWD)/external/stlport/stlport
510
511
512# Flags passed to only C++ (and not C) files.
513LOCAL_CPPFLAGS_Release := \
514	-fno-exceptions \
515	-fno-rtti \
516	-fno-threadsafe-statics \
517	-fvisibility-inlines-hidden \
518	-Wsign-compare \
519	-Wno-c++0x-compat \
520	-std=gnu++11 \
521	-Wno-narrowing \
522	-Wno-literal-suffix \
523	-Wno-non-virtual-dtor \
524	-Wno-sign-promo
525
526
527LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
528LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
529LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
530LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
531### Rules for final target.
532
533LOCAL_SHARED_LIBRARIES := \
534	libstlport \
535	libdl
536
537# Add target alias to "gyp_all_modules" target.
538.PHONY: gyp_all_modules
539gyp_all_modules: third_party_WebKit_Source_core_webcore_dom_gyp
540
541# Alias gyp target name.
542.PHONY: webcore_dom
543webcore_dom: third_party_WebKit_Source_core_webcore_dom_gyp
544
545include $(BUILD_STATIC_LIBRARY)
546