1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libxslt_libxslt_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
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/libxslt/libxslt/attributes.c \
26	third_party/libxslt/libxslt/attrvt.c \
27	third_party/libxslt/libxslt/documents.c \
28	third_party/libxslt/libxslt/extensions.c \
29	third_party/libxslt/libxslt/extra.c \
30	third_party/libxslt/libxslt/functions.c \
31	third_party/libxslt/libxslt/imports.c \
32	third_party/libxslt/libxslt/keys.c \
33	third_party/libxslt/libxslt/namespaces.c \
34	third_party/libxslt/libxslt/numbers.c \
35	third_party/libxslt/libxslt/pattern.c \
36	third_party/libxslt/libxslt/preproc.c \
37	third_party/libxslt/libxslt/security.c \
38	third_party/libxslt/libxslt/templates.c \
39	third_party/libxslt/libxslt/transform.c \
40	third_party/libxslt/libxslt/variables.c \
41	third_party/libxslt/libxslt/xslt.c \
42	third_party/libxslt/libxslt/xsltlocale.c \
43	third_party/libxslt/libxslt/xsltutils.c
44
45
46# Flags passed to both C and C++ files.
47MY_CFLAGS_Debug := \
48	--param=ssp-buffer-size=4 \
49	-fno-exceptions \
50	-fno-strict-aliasing \
51	-Wno-unused-parameter \
52	-Wno-missing-field-initializers \
53	-fvisibility=hidden \
54	-pipe \
55	-fPIC \
56	-Wno-format \
57	-m32 \
58	-mmmx \
59	-march=pentium4 \
60	-msse2 \
61	-mfpmath=sse \
62	-fuse-ld=gold \
63	-ffunction-sections \
64	-funwind-tables \
65	-g \
66	-fno-short-enums \
67	-finline-limit=64 \
68	-Wa,--noexecstack \
69	-U_FORTIFY_SOURCE \
70	-Wno-extra \
71	-Wno-ignored-qualifiers \
72	-Wno-type-limits \
73	-Wno-address \
74	-Wno-format-security \
75	-Wno-return-type \
76	-Wno-sequence-point \
77	-fno-stack-protector \
78	-Os \
79	-g \
80	-fomit-frame-pointer \
81	-fdata-sections \
82	-ffunction-sections
83
84MY_DEFS_Debug := \
85	'-DANGLE_DX11' \
86	'-D_FILE_OFFSET_BITS=64' \
87	'-DNO_TCMALLOC' \
88	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
89	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
90	'-DDISABLE_NACL' \
91	'-DCHROMIUM_BUILD' \
92	'-DUSE_LIBJPEG_TURBO=1' \
93	'-DUSE_PROPRIETARY_CODECS' \
94	'-DENABLE_CONFIGURATION_POLICY' \
95	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
96	'-DTRACING_IS_OFFICIAL_BUILD=1' \
97	'-DENABLE_GPU=1' \
98	'-DUSE_OPENSSL=1' \
99	'-DENABLE_EGLIMAGE=1' \
100	'-DENABLE_PRINTING=1' \
101	'-DLIBXSLT_STATIC' \
102	'-DLIBXML_STATIC' \
103	'-DU_USING_ICU_NAMESPACE=0' \
104	'-DANDROID' \
105	'-D__GNU_SOURCE=1' \
106	'-DUSE_STLPORT=1' \
107	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
108	'-DCHROME_BUILD_ID=""' \
109	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
110	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
111	'-D_DEBUG'
112
113
114# Include paths placed before CFLAGS/CPPFLAGS
115LOCAL_C_INCLUDES_Debug := \
116	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
117	$(LOCAL_PATH)/third_party/libxslt/linux \
118	$(LOCAL_PATH)/third_party/libxslt \
119	$(LOCAL_PATH)/third_party/libxml/linux/include \
120	$(LOCAL_PATH)/third_party/libxml/src/include \
121	$(PWD)/external/icu4c/common \
122	$(PWD)/external/icu4c/i18n \
123	$(PWD)/frameworks/wilhelm/include \
124	$(PWD)/bionic \
125	$(PWD)/external/stlport/stlport
126
127
128# Flags passed to only C++ (and not C) files.
129LOCAL_CPPFLAGS_Debug := \
130	-fno-rtti \
131	-fno-threadsafe-statics \
132	-fvisibility-inlines-hidden \
133	-Wno-deprecated \
134	-Wno-error=c++0x-compat \
135	-Wno-non-virtual-dtor \
136	-Wno-sign-promo \
137	-Wno-non-virtual-dtor
138
139
140# Flags passed to both C and C++ files.
141MY_CFLAGS_Release := \
142	--param=ssp-buffer-size=4 \
143	-fno-exceptions \
144	-fno-strict-aliasing \
145	-Wno-unused-parameter \
146	-Wno-missing-field-initializers \
147	-fvisibility=hidden \
148	-pipe \
149	-fPIC \
150	-Wno-format \
151	-m32 \
152	-mmmx \
153	-march=pentium4 \
154	-msse2 \
155	-mfpmath=sse \
156	-fuse-ld=gold \
157	-ffunction-sections \
158	-funwind-tables \
159	-g \
160	-fno-short-enums \
161	-finline-limit=64 \
162	-Wa,--noexecstack \
163	-U_FORTIFY_SOURCE \
164	-Wno-extra \
165	-Wno-ignored-qualifiers \
166	-Wno-type-limits \
167	-Wno-address \
168	-Wno-format-security \
169	-Wno-return-type \
170	-Wno-sequence-point \
171	-fno-stack-protector \
172	-Os \
173	-fno-ident \
174	-fdata-sections \
175	-ffunction-sections \
176	-fomit-frame-pointer \
177	-fno-unwind-tables \
178	-fno-asynchronous-unwind-tables
179
180MY_DEFS_Release := \
181	'-DANGLE_DX11' \
182	'-D_FILE_OFFSET_BITS=64' \
183	'-DNO_TCMALLOC' \
184	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
185	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
186	'-DDISABLE_NACL' \
187	'-DCHROMIUM_BUILD' \
188	'-DUSE_LIBJPEG_TURBO=1' \
189	'-DUSE_PROPRIETARY_CODECS' \
190	'-DENABLE_CONFIGURATION_POLICY' \
191	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
192	'-DTRACING_IS_OFFICIAL_BUILD=1' \
193	'-DENABLE_GPU=1' \
194	'-DUSE_OPENSSL=1' \
195	'-DENABLE_EGLIMAGE=1' \
196	'-DENABLE_PRINTING=1' \
197	'-DLIBXSLT_STATIC' \
198	'-DLIBXML_STATIC' \
199	'-DU_USING_ICU_NAMESPACE=0' \
200	'-DANDROID' \
201	'-D__GNU_SOURCE=1' \
202	'-DUSE_STLPORT=1' \
203	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
204	'-DCHROME_BUILD_ID=""' \
205	'-DNDEBUG' \
206	'-DNVALGRIND' \
207	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
208
209
210# Include paths placed before CFLAGS/CPPFLAGS
211LOCAL_C_INCLUDES_Release := \
212	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
213	$(LOCAL_PATH)/third_party/libxslt/linux \
214	$(LOCAL_PATH)/third_party/libxslt \
215	$(LOCAL_PATH)/third_party/libxml/linux/include \
216	$(LOCAL_PATH)/third_party/libxml/src/include \
217	$(PWD)/external/icu4c/common \
218	$(PWD)/external/icu4c/i18n \
219	$(PWD)/frameworks/wilhelm/include \
220	$(PWD)/bionic \
221	$(PWD)/external/stlport/stlport
222
223
224# Flags passed to only C++ (and not C) files.
225LOCAL_CPPFLAGS_Release := \
226	-fno-rtti \
227	-fno-threadsafe-statics \
228	-fvisibility-inlines-hidden \
229	-Wno-deprecated \
230	-Wno-error=c++0x-compat \
231	-Wno-non-virtual-dtor \
232	-Wno-sign-promo \
233	-Wno-non-virtual-dtor
234
235
236LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
237LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
238LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
239### Rules for final target.
240
241LOCAL_LDFLAGS_Debug := \
242	-Wl,-z,now \
243	-Wl,-z,relro \
244	-Wl,-z,noexecstack \
245	-fPIC \
246	-m32 \
247	-fuse-ld=gold \
248	-nostdlib \
249	-Wl,--no-undefined \
250	-Wl,--exclude-libs=ALL \
251	-Wl,--fatal-warnings \
252	-Wl,--gc-sections \
253	-Wl,--warn-shared-textrel \
254	-Wl,-O1 \
255	-Wl,--as-needed
256
257
258LOCAL_LDFLAGS_Release := \
259	-Wl,-z,now \
260	-Wl,-z,relro \
261	-Wl,-z,noexecstack \
262	-fPIC \
263	-m32 \
264	-fuse-ld=gold \
265	-nostdlib \
266	-Wl,--no-undefined \
267	-Wl,--exclude-libs=ALL \
268	-Wl,-O1 \
269	-Wl,--as-needed \
270	-Wl,--gc-sections \
271	-Wl,--fatal-warnings \
272	-Wl,--warn-shared-textrel
273
274
275LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
276
277LOCAL_STATIC_LIBRARIES :=
278
279# Enable grouping to fix circular references
280LOCAL_GROUP_STATIC_LIBRARIES := true
281
282LOCAL_SHARED_LIBRARIES := \
283	libstlport \
284	libdl
285
286# Add target alias to "gyp_all_modules" target.
287.PHONY: gyp_all_modules
288gyp_all_modules: third_party_libxslt_libxslt_gyp
289
290# Alias gyp target name.
291.PHONY: libxslt
292libxslt: third_party_libxslt_libxslt_gyp
293
294include $(BUILD_STATIC_LIBRARY)
295