• 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	--param=ssp-buffer-size=4 \
248	-Werror \
249	-fno-exceptions \
250	-fno-strict-aliasing \
251	-Wall \
252	-Wno-unused-parameter \
253	-Wno-missing-field-initializers \
254	-fvisibility=hidden \
255	-pipe \
256	-fPIC \
257	-m32 \
258	-mmmx \
259	-march=pentium4 \
260	-msse2 \
261	-mfpmath=sse \
262	-fuse-ld=gold \
263	-ffunction-sections \
264	-funwind-tables \
265	-g \
266	-fno-short-enums \
267	-finline-limit=64 \
268	-Wa,--noexecstack \
269	-U_FORTIFY_SOURCE \
270	-Wno-extra \
271	-Wno-ignored-qualifiers \
272	-Wno-type-limits \
273	-fno-stack-protector \
274	-Os \
275	-g \
276	-fomit-frame-pointer \
277	-fdata-sections \
278	-ffunction-sections
279
280MY_DEFS_Debug := \
281	'-DV8_DEPRECATION_WARNINGS' \
282	'-D_FILE_OFFSET_BITS=64' \
283	'-DNO_TCMALLOC' \
284	'-DDISABLE_NACL' \
285	'-DCHROMIUM_BUILD' \
286	'-DUSE_LIBJPEG_TURBO=1' \
287	'-DUSE_PROPRIETARY_CODECS' \
288	'-DENABLE_CONFIGURATION_POLICY' \
289	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
290	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
291	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
292	'-DUSE_OPENSSL=1' \
293	'-DENABLE_EGLIMAGE=1' \
294	'-DCLD_VERSION=1' \
295	'-DENABLE_PRINTING=1' \
296	'-DENABLE_MANAGED_USERS=1' \
297	'-DBLINK_IMPLEMENTATION=1' \
298	'-DINSIDE_BLINK' \
299	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
300	'-DENABLE_SVG_FONTS=1' \
301	'-DENABLE_GDI_FONTS_ON_WINDOWS=0' \
302	'-DENABLE_HARFBUZZ_ON_WINDOWS=1' \
303	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
304	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
305	'-DENABLE_INPUT_SPEECH=0' \
306	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
307	'-DENABLE_MEDIA_CAPTURE=1' \
308	'-DENABLE_ORIENTATION_EVENTS=1' \
309	'-DENABLE_TOUCH_ICON_LOADING=1' \
310	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
311	'-DENABLE_OPENTYPE_VERTICAL=1' \
312	'-DU_USING_ICU_NAMESPACE=0' \
313	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
314	'-DCHROME_PNG_WRITE_SUPPORT' \
315	'-DPNG_USER_CONFIG' \
316	'-DCHROME_PNG_READ_PACK_SUPPORT' \
317	'-DLIBXML_STATIC' \
318	'-DLIBXSLT_STATIC' \
319	'-D__STDC_CONSTANT_MACROS' \
320	'-D__STDC_FORMAT_MACROS' \
321	'-DANDROID' \
322	'-D__GNU_SOURCE=1' \
323	'-DUSE_STLPORT=1' \
324	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
325	'-DCHROME_BUILD_ID=""' \
326	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
327	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
328	'-D_DEBUG'
329
330
331# Include paths placed before CFLAGS/CPPFLAGS
332LOCAL_C_INCLUDES_Debug := \
333	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
334	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
335	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
336	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
337	$(LOCAL_PATH)/third_party/WebKit/Source \
338	$(LOCAL_PATH) \
339	$(LOCAL_PATH)/skia/config \
340	$(LOCAL_PATH)/third_party/khronos \
341	$(LOCAL_PATH)/gpu \
342	$(LOCAL_PATH)/third_party/WebKit \
343	$(gyp_shared_intermediate_dir)/blink \
344	$(gyp_shared_intermediate_dir)/blink/bindings \
345	$(LOCAL_PATH)/third_party/angle/include \
346	$(PWD)/external/icu4c/common \
347	$(PWD)/external/icu4c/i18n \
348	$(PWD)/external/skia/include \
349	$(PWD)/external/skia/include/core \
350	$(LOCAL_PATH)/third_party/skia/src/core \
351	$(LOCAL_PATH)/skia/ext \
352	$(LOCAL_PATH)/third_party/iccjpeg \
353	$(LOCAL_PATH)/third_party/libpng \
354	$(LOCAL_PATH)/third_party/libwebp \
355	$(LOCAL_PATH)/third_party/libxml/linux/include \
356	$(LOCAL_PATH)/third_party/libxml/src/include \
357	$(LOCAL_PATH)/third_party/libxslt \
358	$(LOCAL_PATH)/third_party/npapi \
359	$(LOCAL_PATH)/third_party/npapi/bindings \
360	$(LOCAL_PATH)/third_party/ots/include \
361	$(LOCAL_PATH)/third_party/qcms/src \
362	$(LOCAL_PATH)/third_party/sqlite \
363	$(LOCAL_PATH)/third_party/zlib \
364	$(LOCAL_PATH)/v8/include \
365	$(PWD)/frameworks/wilhelm/include \
366	$(PWD)/bionic \
367	$(PWD)/external/stlport/stlport
368
369
370# Flags passed to only C++ (and not C) files.
371LOCAL_CPPFLAGS_Debug := \
372	-fno-rtti \
373	-fno-threadsafe-statics \
374	-fvisibility-inlines-hidden \
375	-Wsign-compare \
376	-Wno-c++0x-compat \
377	-Wno-error=c++0x-compat \
378	-Wno-non-virtual-dtor \
379	-Wno-sign-promo
380
381
382# Flags passed to both C and C++ files.
383MY_CFLAGS_Release := \
384	--param=ssp-buffer-size=4 \
385	-Werror \
386	-fno-exceptions \
387	-fno-strict-aliasing \
388	-Wall \
389	-Wno-unused-parameter \
390	-Wno-missing-field-initializers \
391	-fvisibility=hidden \
392	-pipe \
393	-fPIC \
394	-m32 \
395	-mmmx \
396	-march=pentium4 \
397	-msse2 \
398	-mfpmath=sse \
399	-fuse-ld=gold \
400	-ffunction-sections \
401	-funwind-tables \
402	-g \
403	-fno-short-enums \
404	-finline-limit=64 \
405	-Wa,--noexecstack \
406	-U_FORTIFY_SOURCE \
407	-Wno-extra \
408	-Wno-ignored-qualifiers \
409	-Wno-type-limits \
410	-fno-stack-protector \
411	-Os \
412	-fno-ident \
413	-fdata-sections \
414	-ffunction-sections \
415	-fomit-frame-pointer \
416	-fno-unwind-tables \
417	-fno-asynchronous-unwind-tables
418
419MY_DEFS_Release := \
420	'-DV8_DEPRECATION_WARNINGS' \
421	'-D_FILE_OFFSET_BITS=64' \
422	'-DNO_TCMALLOC' \
423	'-DDISABLE_NACL' \
424	'-DCHROMIUM_BUILD' \
425	'-DUSE_LIBJPEG_TURBO=1' \
426	'-DUSE_PROPRIETARY_CODECS' \
427	'-DENABLE_CONFIGURATION_POLICY' \
428	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
429	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
430	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
431	'-DUSE_OPENSSL=1' \
432	'-DENABLE_EGLIMAGE=1' \
433	'-DCLD_VERSION=1' \
434	'-DENABLE_PRINTING=1' \
435	'-DENABLE_MANAGED_USERS=1' \
436	'-DBLINK_IMPLEMENTATION=1' \
437	'-DINSIDE_BLINK' \
438	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
439	'-DENABLE_SVG_FONTS=1' \
440	'-DENABLE_GDI_FONTS_ON_WINDOWS=0' \
441	'-DENABLE_HARFBUZZ_ON_WINDOWS=1' \
442	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
443	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
444	'-DENABLE_INPUT_SPEECH=0' \
445	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
446	'-DENABLE_MEDIA_CAPTURE=1' \
447	'-DENABLE_ORIENTATION_EVENTS=1' \
448	'-DENABLE_TOUCH_ICON_LOADING=1' \
449	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
450	'-DENABLE_OPENTYPE_VERTICAL=1' \
451	'-DU_USING_ICU_NAMESPACE=0' \
452	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
453	'-DCHROME_PNG_WRITE_SUPPORT' \
454	'-DPNG_USER_CONFIG' \
455	'-DCHROME_PNG_READ_PACK_SUPPORT' \
456	'-DLIBXML_STATIC' \
457	'-DLIBXSLT_STATIC' \
458	'-D__STDC_CONSTANT_MACROS' \
459	'-D__STDC_FORMAT_MACROS' \
460	'-DANDROID' \
461	'-D__GNU_SOURCE=1' \
462	'-DUSE_STLPORT=1' \
463	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
464	'-DCHROME_BUILD_ID=""' \
465	'-DNDEBUG' \
466	'-DNVALGRIND' \
467	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
468	'-D_FORTIFY_SOURCE=2'
469
470
471# Include paths placed before CFLAGS/CPPFLAGS
472LOCAL_C_INCLUDES_Release := \
473	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
474	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
475	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
476	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
477	$(LOCAL_PATH)/third_party/WebKit/Source \
478	$(LOCAL_PATH) \
479	$(LOCAL_PATH)/skia/config \
480	$(LOCAL_PATH)/third_party/khronos \
481	$(LOCAL_PATH)/gpu \
482	$(LOCAL_PATH)/third_party/WebKit \
483	$(gyp_shared_intermediate_dir)/blink \
484	$(gyp_shared_intermediate_dir)/blink/bindings \
485	$(LOCAL_PATH)/third_party/angle/include \
486	$(PWD)/external/icu4c/common \
487	$(PWD)/external/icu4c/i18n \
488	$(PWD)/external/skia/include \
489	$(PWD)/external/skia/include/core \
490	$(LOCAL_PATH)/third_party/skia/src/core \
491	$(LOCAL_PATH)/skia/ext \
492	$(LOCAL_PATH)/third_party/iccjpeg \
493	$(LOCAL_PATH)/third_party/libpng \
494	$(LOCAL_PATH)/third_party/libwebp \
495	$(LOCAL_PATH)/third_party/libxml/linux/include \
496	$(LOCAL_PATH)/third_party/libxml/src/include \
497	$(LOCAL_PATH)/third_party/libxslt \
498	$(LOCAL_PATH)/third_party/npapi \
499	$(LOCAL_PATH)/third_party/npapi/bindings \
500	$(LOCAL_PATH)/third_party/ots/include \
501	$(LOCAL_PATH)/third_party/qcms/src \
502	$(LOCAL_PATH)/third_party/sqlite \
503	$(LOCAL_PATH)/third_party/zlib \
504	$(LOCAL_PATH)/v8/include \
505	$(PWD)/frameworks/wilhelm/include \
506	$(PWD)/bionic \
507	$(PWD)/external/stlport/stlport
508
509
510# Flags passed to only C++ (and not C) files.
511LOCAL_CPPFLAGS_Release := \
512	-fno-rtti \
513	-fno-threadsafe-statics \
514	-fvisibility-inlines-hidden \
515	-Wsign-compare \
516	-Wno-c++0x-compat \
517	-Wno-error=c++0x-compat \
518	-Wno-non-virtual-dtor \
519	-Wno-sign-promo
520
521
522LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
523LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
524LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
525### Rules for final target.
526
527LOCAL_LDFLAGS_Debug := \
528	-Wl,-z,now \
529	-Wl,-z,relro \
530	-Wl,-z,noexecstack \
531	-fPIC \
532	-m32 \
533	-fuse-ld=gold \
534	-nostdlib \
535	-Wl,--no-undefined \
536	-Wl,--exclude-libs=ALL \
537	-Wl,--fatal-warnings \
538	-Wl,--gc-sections \
539	-Wl,--warn-shared-textrel \
540	-Wl,-O1 \
541	-Wl,--as-needed
542
543
544LOCAL_LDFLAGS_Release := \
545	-Wl,-z,now \
546	-Wl,-z,relro \
547	-Wl,-z,noexecstack \
548	-fPIC \
549	-m32 \
550	-fuse-ld=gold \
551	-nostdlib \
552	-Wl,--no-undefined \
553	-Wl,--exclude-libs=ALL \
554	-Wl,-O1 \
555	-Wl,--as-needed \
556	-Wl,--gc-sections \
557	-Wl,--fatal-warnings \
558	-Wl,--warn-shared-textrel
559
560
561LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
562
563LOCAL_STATIC_LIBRARIES :=
564
565# Enable grouping to fix circular references
566LOCAL_GROUP_STATIC_LIBRARIES := true
567
568LOCAL_SHARED_LIBRARIES := \
569	libskia \
570	libstlport \
571	libdl
572
573# Add target alias to "gyp_all_modules" target.
574.PHONY: gyp_all_modules
575gyp_all_modules: third_party_WebKit_Source_core_webcore_svg_gyp
576
577# Alias gyp target name.
578.PHONY: webcore_svg
579webcore_svg: third_party_WebKit_Source_core_webcore_svg_gyp
580
581include $(BUILD_STATIC_LIBRARY)
582