• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_svg_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/rendering/style/SVGRenderStyle.cpp \
27	third_party/WebKit/Source/core/rendering/style/SVGRenderStyleDefs.cpp \
28	third_party/WebKit/Source/core/rendering/svg/ReferenceFilterBuilder.cpp \
29	third_party/WebKit/Source/core/rendering/svg/RenderSVGBlock.cpp \
30	third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.cpp \
31	third_party/WebKit/Source/core/rendering/svg/RenderSVGEllipse.cpp \
32	third_party/WebKit/Source/core/rendering/svg/RenderSVGForeignObject.cpp \
33	third_party/WebKit/Source/core/rendering/svg/RenderSVGGradientStop.cpp \
34	third_party/WebKit/Source/core/rendering/svg/RenderSVGHiddenContainer.cpp \
35	third_party/WebKit/Source/core/rendering/svg/RenderSVGImage.cpp \
36	third_party/WebKit/Source/core/rendering/svg/RenderSVGInline.cpp \
37	third_party/WebKit/Source/core/rendering/svg/RenderSVGInlineText.cpp \
38	third_party/WebKit/Source/core/rendering/svg/RenderSVGModelObject.cpp \
39	third_party/WebKit/Source/core/rendering/svg/RenderSVGPath.cpp \
40	third_party/WebKit/Source/core/rendering/svg/RenderSVGRect.cpp \
41	third_party/WebKit/Source/core/rendering/svg/RenderSVGResource.cpp \
42	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceClipper.cpp \
43	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceContainer.cpp \
44	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.cpp \
45	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilterPrimitive.cpp \
46	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceGradient.cpp \
47	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceLinearGradient.cpp \
48	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceMarker.cpp \
49	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceMasker.cpp \
50	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourcePattern.cpp \
51	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceRadialGradient.cpp \
52	third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp \
53	third_party/WebKit/Source/core/rendering/svg/RenderSVGRoot.cpp \
54	third_party/WebKit/Source/core/rendering/svg/RenderSVGShape.cpp \
55	third_party/WebKit/Source/core/rendering/svg/RenderSVGTSpan.cpp \
56	third_party/WebKit/Source/core/rendering/svg/RenderSVGText.cpp \
57	third_party/WebKit/Source/core/rendering/svg/RenderSVGTextPath.cpp \
58	third_party/WebKit/Source/core/rendering/svg/RenderSVGTransformableContainer.cpp \
59	third_party/WebKit/Source/core/rendering/svg/RenderSVGViewportContainer.cpp \
60	third_party/WebKit/Source/core/rendering/svg/SVGInlineFlowBox.cpp \
61	third_party/WebKit/Source/core/rendering/svg/SVGInlineTextBox.cpp \
62	third_party/WebKit/Source/core/rendering/svg/SVGPathData.cpp \
63	third_party/WebKit/Source/core/rendering/svg/SVGRenderSupport.cpp \
64	third_party/WebKit/Source/core/rendering/svg/SVGRenderTreeAsText.cpp \
65	third_party/WebKit/Source/core/rendering/svg/SVGRenderingContext.cpp \
66	third_party/WebKit/Source/core/rendering/svg/SVGResources.cpp \
67	third_party/WebKit/Source/core/rendering/svg/SVGResourcesCache.cpp \
68	third_party/WebKit/Source/core/rendering/svg/SVGResourcesCycleSolver.cpp \
69	third_party/WebKit/Source/core/rendering/svg/SVGRootInlineBox.cpp \
70	third_party/WebKit/Source/core/rendering/svg/SVGTextChunk.cpp \
71	third_party/WebKit/Source/core/rendering/svg/SVGTextChunkBuilder.cpp \
72	third_party/WebKit/Source/core/rendering/svg/SVGTextLayoutAttributes.cpp \
73	third_party/WebKit/Source/core/rendering/svg/SVGTextLayoutAttributesBuilder.cpp \
74	third_party/WebKit/Source/core/rendering/svg/SVGTextLayoutEngine.cpp \
75	third_party/WebKit/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp \
76	third_party/WebKit/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp \
77	third_party/WebKit/Source/core/rendering/svg/SVGTextMetrics.cpp \
78	third_party/WebKit/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp \
79	third_party/WebKit/Source/core/rendering/svg/SVGTextQuery.cpp \
80	third_party/WebKit/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp \
81	third_party/WebKit/Source/core/svg/ColorDistance.cpp \
82	third_party/WebKit/Source/core/svg/SVGAElement.cpp \
83	third_party/WebKit/Source/core/svg/SVGAltGlyphDefElement.cpp \
84	third_party/WebKit/Source/core/svg/SVGAltGlyphElement.cpp \
85	third_party/WebKit/Source/core/svg/SVGAltGlyphItemElement.cpp \
86	third_party/WebKit/Source/core/svg/SVGAngle.cpp \
87	third_party/WebKit/Source/core/svg/SVGAnimateColorElement.cpp \
88	third_party/WebKit/Source/core/svg/SVGAnimatedAngle.cpp \
89	third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.cpp \
90	third_party/WebKit/Source/core/svg/SVGAnimatedColor.cpp \
91	third_party/WebKit/Source/core/svg/SVGAnimatedEnumeration.cpp \
92	third_party/WebKit/Source/core/svg/SVGAnimatedInteger.cpp \
93	third_party/WebKit/Source/core/svg/SVGAnimatedIntegerOptionalInteger.cpp \
94	third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp \
95	third_party/WebKit/Source/core/svg/SVGAnimatedLengthList.cpp \
96	third_party/WebKit/Source/core/svg/SVGAnimatedNumber.cpp \
97	third_party/WebKit/Source/core/svg/SVGAnimatedNumberList.cpp \
98	third_party/WebKit/Source/core/svg/SVGAnimatedNumberOptionalNumber.cpp \
99	third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp \
100	third_party/WebKit/Source/core/svg/SVGAnimatedPointList.cpp \
101	third_party/WebKit/Source/core/svg/SVGAnimatedPreserveAspectRatio.cpp \
102	third_party/WebKit/Source/core/svg/SVGAnimatedRect.cpp \
103	third_party/WebKit/Source/core/svg/SVGAnimatedString.cpp \
104	third_party/WebKit/Source/core/svg/SVGAnimatedTransformList.cpp \
105	third_party/WebKit/Source/core/svg/SVGAnimatedType.cpp \
106	third_party/WebKit/Source/core/svg/SVGAnimatedTypeAnimator.cpp \
107	third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp \
108	third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp \
109	third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp \
110	third_party/WebKit/Source/core/svg/SVGAnimationElement.cpp \
111	third_party/WebKit/Source/core/svg/SVGCircleElement.cpp \
112	third_party/WebKit/Source/core/svg/SVGClipPathElement.cpp \
113	third_party/WebKit/Source/core/svg/SVGColor.cpp \
114	third_party/WebKit/Source/core/svg/SVGComponentTransferFunctionElement.cpp \
115	third_party/WebKit/Source/core/svg/SVGCursorElement.cpp \
116	third_party/WebKit/Source/core/svg/SVGDefsElement.cpp \
117	third_party/WebKit/Source/core/svg/SVGDescElement.cpp \
118	third_party/WebKit/Source/core/svg/SVGDocument.cpp \
119	third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp \
120	third_party/WebKit/Source/core/svg/SVGElement.cpp \
121	third_party/WebKit/Source/core/svg/SVGElementInstance.cpp \
122	third_party/WebKit/Source/core/svg/SVGElementInstanceList.cpp \
123	third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp \
124	third_party/WebKit/Source/core/svg/SVGExternalResourcesRequired.cpp \
125	third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp \
126	third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.cpp \
127	third_party/WebKit/Source/core/svg/SVGFEComponentTransferElement.cpp \
128	third_party/WebKit/Source/core/svg/SVGFECompositeElement.cpp \
129	third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp \
130	third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp \
131	third_party/WebKit/Source/core/svg/SVGFEDisplacementMapElement.cpp \
132	third_party/WebKit/Source/core/svg/SVGFEDistantLightElement.cpp \
133	third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.cpp \
134	third_party/WebKit/Source/core/svg/SVGFEFloodElement.cpp \
135	third_party/WebKit/Source/core/svg/SVGFEFuncAElement.cpp \
136	third_party/WebKit/Source/core/svg/SVGFEFuncBElement.cpp \
137	third_party/WebKit/Source/core/svg/SVGFEFuncGElement.cpp \
138	third_party/WebKit/Source/core/svg/SVGFEFuncRElement.cpp \
139	third_party/WebKit/Source/core/svg/SVGFEGaussianBlurElement.cpp \
140	third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp \
141	third_party/WebKit/Source/core/svg/SVGFELightElement.cpp \
142	third_party/WebKit/Source/core/svg/SVGFEMergeElement.cpp \
143	third_party/WebKit/Source/core/svg/SVGFEMergeNodeElement.cpp \
144	third_party/WebKit/Source/core/svg/SVGFEMorphologyElement.cpp \
145	third_party/WebKit/Source/core/svg/SVGFEOffsetElement.cpp \
146	third_party/WebKit/Source/core/svg/SVGFEPointLightElement.cpp \
147	third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp \
148	third_party/WebKit/Source/core/svg/SVGFESpotLightElement.cpp \
149	third_party/WebKit/Source/core/svg/SVGFETileElement.cpp \
150	third_party/WebKit/Source/core/svg/SVGFETurbulenceElement.cpp \
151	third_party/WebKit/Source/core/svg/SVGFilterElement.cpp \
152	third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp \
153	third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp \
154	third_party/WebKit/Source/core/svg/SVGFontData.cpp \
155	third_party/WebKit/Source/core/svg/SVGFontElement.cpp \
156	third_party/WebKit/Source/core/svg/SVGFontFaceElement.cpp \
157	third_party/WebKit/Source/core/svg/SVGFontFaceFormatElement.cpp \
158	third_party/WebKit/Source/core/svg/SVGFontFaceNameElement.cpp \
159	third_party/WebKit/Source/core/svg/SVGFontFaceSrcElement.cpp \
160	third_party/WebKit/Source/core/svg/SVGFontFaceUriElement.cpp \
161	third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp \
162	third_party/WebKit/Source/core/svg/SVGGElement.cpp \
163	third_party/WebKit/Source/core/svg/SVGGlyphElement.cpp \
164	third_party/WebKit/Source/core/svg/SVGGlyphRefElement.cpp \
165	third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp \
166	third_party/WebKit/Source/core/svg/SVGGradientElement.cpp \
167	third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp \
168	third_party/WebKit/Source/core/svg/SVGHKernElement.cpp \
169	third_party/WebKit/Source/core/svg/SVGImageElement.cpp \
170	third_party/WebKit/Source/core/svg/SVGImageLoader.cpp \
171	third_party/WebKit/Source/core/svg/SVGLength.cpp \
172	third_party/WebKit/Source/core/svg/SVGLengthContext.cpp \
173	third_party/WebKit/Source/core/svg/SVGLengthList.cpp \
174	third_party/WebKit/Source/core/svg/SVGLineElement.cpp \
175	third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp \
176	third_party/WebKit/Source/core/svg/SVGMPathElement.cpp \
177	third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp \
178	third_party/WebKit/Source/core/svg/SVGMaskElement.cpp \
179	third_party/WebKit/Source/core/svg/SVGMetadataElement.cpp \
180	third_party/WebKit/Source/core/svg/SVGMissingGlyphElement.cpp \
181	third_party/WebKit/Source/core/svg/SVGNumberList.cpp \
182	third_party/WebKit/Source/core/svg/SVGPaint.cpp \
183	third_party/WebKit/Source/core/svg/SVGParserUtilities.cpp \
184	third_party/WebKit/Source/core/svg/SVGPathBlender.cpp \
185	third_party/WebKit/Source/core/svg/SVGPathBuilder.cpp \
186	third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp \
187	third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp \
188	third_party/WebKit/Source/core/svg/SVGPathElement.cpp \
189	third_party/WebKit/Source/core/svg/SVGPathParser.cpp \
190	third_party/WebKit/Source/core/svg/SVGPathSegList.cpp \
191	third_party/WebKit/Source/core/svg/SVGPathSegListBuilder.cpp \
192	third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp \
193	third_party/WebKit/Source/core/svg/SVGPathStringBuilder.cpp \
194	third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp \
195	third_party/WebKit/Source/core/svg/SVGPathTraversalStateBuilder.cpp \
196	third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp \
197	third_party/WebKit/Source/core/svg/SVGPatternElement.cpp \
198	third_party/WebKit/Source/core/svg/SVGPointList.cpp \
199	third_party/WebKit/Source/core/svg/SVGPolyElement.cpp \
200	third_party/WebKit/Source/core/svg/SVGPolygonElement.cpp \
201	third_party/WebKit/Source/core/svg/SVGPolylineElement.cpp \
202	third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp \
203	third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp \
204	third_party/WebKit/Source/core/svg/SVGRectElement.cpp \
205	third_party/WebKit/Source/core/svg/SVGSVGElement.cpp \
206	third_party/WebKit/Source/core/svg/SVGScriptElement.cpp \
207	third_party/WebKit/Source/core/svg/SVGSetElement.cpp \
208	third_party/WebKit/Source/core/svg/SVGStopElement.cpp \
209	third_party/WebKit/Source/core/svg/SVGStringList.cpp \
210	third_party/WebKit/Source/core/svg/SVGStyleElement.cpp \
211	third_party/WebKit/Source/core/svg/SVGSwitchElement.cpp \
212	third_party/WebKit/Source/core/svg/SVGSymbolElement.cpp \
213	third_party/WebKit/Source/core/svg/SVGTSpanElement.cpp \
214	third_party/WebKit/Source/core/svg/SVGTests.cpp \
215	third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp \
216	third_party/WebKit/Source/core/svg/SVGTextElement.cpp \
217	third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp \
218	third_party/WebKit/Source/core/svg/SVGTextPositioningElement.cpp \
219	third_party/WebKit/Source/core/svg/SVGTitleElement.cpp \
220	third_party/WebKit/Source/core/svg/SVGTransform.cpp \
221	third_party/WebKit/Source/core/svg/SVGTransformDistance.cpp \
222	third_party/WebKit/Source/core/svg/SVGTransformList.cpp \
223	third_party/WebKit/Source/core/svg/SVGURIReference.cpp \
224	third_party/WebKit/Source/core/svg/SVGUnknownElement.cpp \
225	third_party/WebKit/Source/core/svg/SVGUseElement.cpp \
226	third_party/WebKit/Source/core/svg/SVGVKernElement.cpp \
227	third_party/WebKit/Source/core/svg/SVGViewElement.cpp \
228	third_party/WebKit/Source/core/svg/SVGViewSpec.cpp \
229	third_party/WebKit/Source/core/svg/SVGZoomAndPan.cpp \
230	third_party/WebKit/Source/core/svg/SVGZoomEvent.cpp \
231	third_party/WebKit/Source/core/svg/animation/SMILTime.cpp \
232	third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp \
233	third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp \
234	third_party/WebKit/Source/core/svg/graphics/SVGImageCache.cpp \
235	third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp \
236	third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.cpp \
237	third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp \
238	third_party/WebKit/Source/core/svg/graphics/filters/SVGFilter.cpp \
239	third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp \
240	third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp \
241	third_party/WebKit/Source/core/svg/properties/SVGAttributeToPropertyMap.cpp \
242	third_party/WebKit/Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp
243
244
245# Flags passed to both C and C++ files.
246MY_CFLAGS_Debug := \
247	-fstack-protector \
248	--param=ssp-buffer-size=4 \
249	 \
250	-fno-exceptions \
251	-fno-strict-aliasing \
252	-Wall \
253	-Wno-unused-parameter \
254	-Wno-missing-field-initializers \
255	-fvisibility=hidden \
256	-pipe \
257	-fPIC \
258	-EL \
259	-mhard-float \
260	-ffunction-sections \
261	-funwind-tables \
262	-g \
263	-fstack-protector \
264	-fno-short-enums \
265	-finline-limit=64 \
266	-Wa,--noexecstack \
267	-U_FORTIFY_SOURCE \
268	-Wno-extra \
269	-Wno-ignored-qualifiers \
270	-Wno-type-limits \
271	-Os \
272	-g \
273	-fomit-frame-pointer \
274	-fdata-sections \
275	-ffunction-sections
276
277MY_DEFS_Debug := \
278	'-DV8_DEPRECATION_WARNINGS' \
279	'-D_FILE_OFFSET_BITS=64' \
280	'-DNO_TCMALLOC' \
281	'-DDISABLE_NACL' \
282	'-DCHROMIUM_BUILD' \
283	'-DUSE_LIBJPEG_TURBO=1' \
284	'-DUSE_PROPRIETARY_CODECS' \
285	'-DENABLE_CONFIGURATION_POLICY' \
286	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
287	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
288	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
289	'-DUSE_OPENSSL=1' \
290	'-DENABLE_EGLIMAGE=1' \
291	'-DCLD_VERSION=1' \
292	'-DENABLE_PRINTING=1' \
293	'-DENABLE_MANAGED_USERS=1' \
294	'-DBLINK_IMPLEMENTATION=1' \
295	'-DINSIDE_BLINK' \
296	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
297	'-DENABLE_SVG_FONTS=1' \
298	'-DENABLE_GDI_FONTS_ON_WINDOWS=0' \
299	'-DENABLE_HARFBUZZ_ON_WINDOWS=1' \
300	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
301	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
302	'-DENABLE_INPUT_SPEECH=0' \
303	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
304	'-DENABLE_MEDIA_CAPTURE=1' \
305	'-DENABLE_ORIENTATION_EVENTS=1' \
306	'-DENABLE_TOUCH_ICON_LOADING=1' \
307	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
308	'-DENABLE_OPENTYPE_VERTICAL=1' \
309	'-DU_USING_ICU_NAMESPACE=0' \
310	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
311	'-DCHROME_PNG_WRITE_SUPPORT' \
312	'-DPNG_USER_CONFIG' \
313	'-DCHROME_PNG_READ_PACK_SUPPORT' \
314	'-DLIBXML_STATIC' \
315	'-DLIBXSLT_STATIC' \
316	'-D__STDC_CONSTANT_MACROS' \
317	'-D__STDC_FORMAT_MACROS' \
318	'-DANDROID' \
319	'-D__GNU_SOURCE=1' \
320	'-DUSE_STLPORT=1' \
321	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
322	'-DCHROME_BUILD_ID=""' \
323	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
324	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
325	'-D_DEBUG'
326
327
328# Include paths placed before CFLAGS/CPPFLAGS
329LOCAL_C_INCLUDES_Debug := \
330	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
331	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
332	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
333	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
334	$(LOCAL_PATH)/third_party/WebKit/Source \
335	$(LOCAL_PATH) \
336	$(LOCAL_PATH)/skia/config \
337	$(LOCAL_PATH)/third_party/khronos \
338	$(LOCAL_PATH)/gpu \
339	$(LOCAL_PATH)/third_party/WebKit \
340	$(gyp_shared_intermediate_dir)/blink \
341	$(gyp_shared_intermediate_dir)/blink/bindings \
342	$(LOCAL_PATH)/third_party/angle/include \
343	$(PWD)/external/icu4c/common \
344	$(PWD)/external/icu4c/i18n \
345	$(PWD)/external/skia/include \
346	$(PWD)/external/skia/include/core \
347	$(LOCAL_PATH)/third_party/skia/src/core \
348	$(LOCAL_PATH)/skia/ext \
349	$(LOCAL_PATH)/third_party/iccjpeg \
350	$(LOCAL_PATH)/third_party/libpng \
351	$(LOCAL_PATH)/third_party/libwebp \
352	$(LOCAL_PATH)/third_party/libxml/linux/include \
353	$(LOCAL_PATH)/third_party/libxml/src/include \
354	$(LOCAL_PATH)/third_party/libxslt \
355	$(LOCAL_PATH)/third_party/npapi \
356	$(LOCAL_PATH)/third_party/npapi/bindings \
357	$(LOCAL_PATH)/third_party/ots/include \
358	$(LOCAL_PATH)/third_party/qcms/src \
359	$(LOCAL_PATH)/third_party/sqlite \
360	$(LOCAL_PATH)/third_party/zlib \
361	$(LOCAL_PATH)/v8/include \
362	$(PWD)/frameworks/wilhelm/include \
363	$(PWD)/bionic \
364	$(PWD)/external/stlport/stlport
365
366
367# Flags passed to only C++ (and not C) files.
368LOCAL_CPPFLAGS_Debug := \
369	-fno-rtti \
370	-fno-threadsafe-statics \
371	-fvisibility-inlines-hidden \
372	-Wsign-compare \
373	-Wno-c++0x-compat \
374	-Wno-uninitialized \
375	-Wno-error=c++0x-compat \
376	-Wno-non-virtual-dtor \
377	-Wno-sign-promo
378
379
380# Flags passed to both C and C++ files.
381MY_CFLAGS_Release := \
382	-fstack-protector \
383	--param=ssp-buffer-size=4 \
384	 \
385	-fno-exceptions \
386	-fno-strict-aliasing \
387	-Wall \
388	-Wno-unused-parameter \
389	-Wno-missing-field-initializers \
390	-fvisibility=hidden \
391	-pipe \
392	-fPIC \
393	-EL \
394	-mhard-float \
395	-ffunction-sections \
396	-funwind-tables \
397	-g \
398	-fstack-protector \
399	-fno-short-enums \
400	-finline-limit=64 \
401	-Wa,--noexecstack \
402	-U_FORTIFY_SOURCE \
403	-Wno-extra \
404	-Wno-ignored-qualifiers \
405	-Wno-type-limits \
406	-Os \
407	-fno-ident \
408	-fdata-sections \
409	-ffunction-sections \
410	-fomit-frame-pointer
411
412MY_DEFS_Release := \
413	'-DV8_DEPRECATION_WARNINGS' \
414	'-D_FILE_OFFSET_BITS=64' \
415	'-DNO_TCMALLOC' \
416	'-DDISABLE_NACL' \
417	'-DCHROMIUM_BUILD' \
418	'-DUSE_LIBJPEG_TURBO=1' \
419	'-DUSE_PROPRIETARY_CODECS' \
420	'-DENABLE_CONFIGURATION_POLICY' \
421	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
422	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
423	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
424	'-DUSE_OPENSSL=1' \
425	'-DENABLE_EGLIMAGE=1' \
426	'-DCLD_VERSION=1' \
427	'-DENABLE_PRINTING=1' \
428	'-DENABLE_MANAGED_USERS=1' \
429	'-DBLINK_IMPLEMENTATION=1' \
430	'-DINSIDE_BLINK' \
431	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
432	'-DENABLE_SVG_FONTS=1' \
433	'-DENABLE_GDI_FONTS_ON_WINDOWS=0' \
434	'-DENABLE_HARFBUZZ_ON_WINDOWS=1' \
435	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
436	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
437	'-DENABLE_INPUT_SPEECH=0' \
438	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
439	'-DENABLE_MEDIA_CAPTURE=1' \
440	'-DENABLE_ORIENTATION_EVENTS=1' \
441	'-DENABLE_TOUCH_ICON_LOADING=1' \
442	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
443	'-DENABLE_OPENTYPE_VERTICAL=1' \
444	'-DU_USING_ICU_NAMESPACE=0' \
445	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
446	'-DCHROME_PNG_WRITE_SUPPORT' \
447	'-DPNG_USER_CONFIG' \
448	'-DCHROME_PNG_READ_PACK_SUPPORT' \
449	'-DLIBXML_STATIC' \
450	'-DLIBXSLT_STATIC' \
451	'-D__STDC_CONSTANT_MACROS' \
452	'-D__STDC_FORMAT_MACROS' \
453	'-DANDROID' \
454	'-D__GNU_SOURCE=1' \
455	'-DUSE_STLPORT=1' \
456	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
457	'-DCHROME_BUILD_ID=""' \
458	'-DNDEBUG' \
459	'-DNVALGRIND' \
460	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
461	'-D_FORTIFY_SOURCE=2'
462
463
464# Include paths placed before CFLAGS/CPPFLAGS
465LOCAL_C_INCLUDES_Release := \
466	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
467	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
468	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
469	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
470	$(LOCAL_PATH)/third_party/WebKit/Source \
471	$(LOCAL_PATH) \
472	$(LOCAL_PATH)/skia/config \
473	$(LOCAL_PATH)/third_party/khronos \
474	$(LOCAL_PATH)/gpu \
475	$(LOCAL_PATH)/third_party/WebKit \
476	$(gyp_shared_intermediate_dir)/blink \
477	$(gyp_shared_intermediate_dir)/blink/bindings \
478	$(LOCAL_PATH)/third_party/angle/include \
479	$(PWD)/external/icu4c/common \
480	$(PWD)/external/icu4c/i18n \
481	$(PWD)/external/skia/include \
482	$(PWD)/external/skia/include/core \
483	$(LOCAL_PATH)/third_party/skia/src/core \
484	$(LOCAL_PATH)/skia/ext \
485	$(LOCAL_PATH)/third_party/iccjpeg \
486	$(LOCAL_PATH)/third_party/libpng \
487	$(LOCAL_PATH)/third_party/libwebp \
488	$(LOCAL_PATH)/third_party/libxml/linux/include \
489	$(LOCAL_PATH)/third_party/libxml/src/include \
490	$(LOCAL_PATH)/third_party/libxslt \
491	$(LOCAL_PATH)/third_party/npapi \
492	$(LOCAL_PATH)/third_party/npapi/bindings \
493	$(LOCAL_PATH)/third_party/ots/include \
494	$(LOCAL_PATH)/third_party/qcms/src \
495	$(LOCAL_PATH)/third_party/sqlite \
496	$(LOCAL_PATH)/third_party/zlib \
497	$(LOCAL_PATH)/v8/include \
498	$(PWD)/frameworks/wilhelm/include \
499	$(PWD)/bionic \
500	$(PWD)/external/stlport/stlport
501
502
503# Flags passed to only C++ (and not C) files.
504LOCAL_CPPFLAGS_Release := \
505	-fno-rtti \
506	-fno-threadsafe-statics \
507	-fvisibility-inlines-hidden \
508	-Wsign-compare \
509	-Wno-c++0x-compat \
510	-Wno-uninitialized \
511	-Wno-error=c++0x-compat \
512	-Wno-non-virtual-dtor \
513	-Wno-sign-promo
514
515
516LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
517LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
518LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
519### Rules for final target.
520
521LOCAL_LDFLAGS_Debug := \
522	-Wl,-z,now \
523	-Wl,-z,relro \
524	-Wl,-z,noexecstack \
525	-fPIC \
526	-EL \
527	-Wl,--no-keep-memory \
528	-nostdlib \
529	-Wl,--no-undefined \
530	-Wl,--exclude-libs=ALL \
531	-Wl,--fatal-warnings \
532	-Wl,--gc-sections \
533	-Wl,--warn-shared-textrel \
534	-Wl,-O1 \
535	-Wl,--as-needed
536
537
538LOCAL_LDFLAGS_Release := \
539	-Wl,-z,now \
540	-Wl,-z,relro \
541	-Wl,-z,noexecstack \
542	-fPIC \
543	-EL \
544	-Wl,--no-keep-memory \
545	-nostdlib \
546	-Wl,--no-undefined \
547	-Wl,--exclude-libs=ALL \
548	-Wl,-O1 \
549	-Wl,--as-needed \
550	-Wl,--gc-sections \
551	-Wl,--fatal-warnings \
552	-Wl,--warn-shared-textrel
553
554
555LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
556
557LOCAL_STATIC_LIBRARIES :=
558
559# Enable grouping to fix circular references
560LOCAL_GROUP_STATIC_LIBRARIES := true
561
562LOCAL_SHARED_LIBRARIES := \
563	libskia \
564	libstlport \
565	libdl
566
567# Add target alias to "gyp_all_modules" target.
568.PHONY: gyp_all_modules
569gyp_all_modules: third_party_WebKit_Source_core_webcore_svg_gyp
570
571# Alias gyp target name.
572.PHONY: webcore_svg
573webcore_svg: third_party_WebKit_Source_core_webcore_svg_gyp
574
575include $(BUILD_STATIC_LIBRARY)
576