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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
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/libxslt/libxslt/attributes.c \
27	third_party/libxslt/libxslt/attrvt.c \
28	third_party/libxslt/libxslt/documents.c \
29	third_party/libxslt/libxslt/extensions.c \
30	third_party/libxslt/libxslt/extra.c \
31	third_party/libxslt/libxslt/functions.c \
32	third_party/libxslt/libxslt/imports.c \
33	third_party/libxslt/libxslt/keys.c \
34	third_party/libxslt/libxslt/namespaces.c \
35	third_party/libxslt/libxslt/numbers.c \
36	third_party/libxslt/libxslt/pattern.c \
37	third_party/libxslt/libxslt/preproc.c \
38	third_party/libxslt/libxslt/security.c \
39	third_party/libxslt/libxslt/templates.c \
40	third_party/libxslt/libxslt/transform.c \
41	third_party/libxslt/libxslt/variables.c \
42	third_party/libxslt/libxslt/xslt.c \
43	third_party/libxslt/libxslt/xsltlocale.c \
44	third_party/libxslt/libxslt/xsltutils.c
45
46
47# Flags passed to both C and C++ files.
48MY_CFLAGS_Debug := \
49	-fstack-protector \
50	--param=ssp-buffer-size=4 \
51	 \
52	-fno-exceptions \
53	-fno-strict-aliasing \
54	-Wno-unused-parameter \
55	-Wno-missing-field-initializers \
56	-fvisibility=hidden \
57	-pipe \
58	-fPIC \
59	-Wno-unused-local-typedefs \
60	-Wno-format \
61	-EL \
62	-mhard-float \
63	-ffunction-sections \
64	-funwind-tables \
65	-g \
66	-fstack-protector \
67	-fno-short-enums \
68	-finline-limit=64 \
69	-Wa,--noexecstack \
70	-U_FORTIFY_SOURCE \
71	-Wno-extra \
72	-Wno-ignored-qualifiers \
73	-Wno-type-limits \
74	-Wno-unused-but-set-variable \
75	-Wno-address \
76	-Wno-format-security \
77	-Wno-return-type \
78	-Wno-sequence-point \
79	-Os \
80	-g \
81	-fdata-sections \
82	-ffunction-sections \
83	-fomit-frame-pointer \
84	-funwind-tables
85
86MY_DEFS_Debug := \
87	'-DV8_DEPRECATION_WARNINGS' \
88	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
89	'-D_FILE_OFFSET_BITS=64' \
90	'-DNO_TCMALLOC' \
91	'-DDISABLE_NACL' \
92	'-DCHROMIUM_BUILD' \
93	'-DUSE_LIBJPEG_TURBO=1' \
94	'-DENABLE_WEBRTC=1' \
95	'-DUSE_PROPRIETARY_CODECS' \
96	'-DENABLE_BROWSER_CDMS' \
97	'-DENABLE_CONFIGURATION_POLICY' \
98	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
99	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
100	'-DENABLE_EGLIMAGE=1' \
101	'-DCLD_VERSION=1' \
102	'-DENABLE_PRINTING=1' \
103	'-DENABLE_MANAGED_USERS=1' \
104	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
105	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
106	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
107	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
108	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
109	'-DVIDEO_HOLE=1' \
110	'-DLIBXSLT_STATIC' \
111	'-DLIBXML_STATIC' \
112	'-DU_USING_ICU_NAMESPACE=0' \
113	'-DUSE_OPENSSL=1' \
114	'-DUSE_OPENSSL_CERTS=1' \
115	'-DANDROID' \
116	'-D__GNU_SOURCE=1' \
117	'-DUSE_STLPORT=1' \
118	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
119	'-DCHROME_BUILD_ID=""' \
120	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
121	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
122	'-D_DEBUG'
123
124
125# Include paths placed before CFLAGS/CPPFLAGS
126LOCAL_C_INCLUDES_Debug := \
127	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
128	$(gyp_shared_intermediate_dir) \
129	$(LOCAL_PATH)/third_party/libxslt/linux \
130	$(LOCAL_PATH)/third_party/libxslt \
131	$(LOCAL_PATH)/third_party/libxml/linux/include \
132	$(LOCAL_PATH)/third_party/libxml/src/include \
133	$(PWD)/external/icu/icu4c/source/common \
134	$(PWD)/external/icu/icu4c/source/i18n \
135	$(PWD)/frameworks/wilhelm/include \
136	$(PWD)/bionic \
137	$(PWD)/external/stlport/stlport
138
139
140# Flags passed to only C++ (and not C) files.
141LOCAL_CPPFLAGS_Debug := \
142	-fno-rtti \
143	-fno-threadsafe-statics \
144	-fvisibility-inlines-hidden \
145	-Wno-deprecated \
146	-Wno-uninitialized \
147	-Wno-non-virtual-dtor \
148	-Wno-sign-promo \
149	-Wno-non-virtual-dtor
150
151
152LOCAL_FDO_SUPPORT_Debug := false
153
154# Flags passed to both C and C++ files.
155MY_CFLAGS_Release := \
156	-fstack-protector \
157	--param=ssp-buffer-size=4 \
158	 \
159	-fno-exceptions \
160	-fno-strict-aliasing \
161	-Wno-unused-parameter \
162	-Wno-missing-field-initializers \
163	-fvisibility=hidden \
164	-pipe \
165	-fPIC \
166	-Wno-unused-local-typedefs \
167	-Wno-format \
168	-EL \
169	-mhard-float \
170	-ffunction-sections \
171	-funwind-tables \
172	-g \
173	-fstack-protector \
174	-fno-short-enums \
175	-finline-limit=64 \
176	-Wa,--noexecstack \
177	-U_FORTIFY_SOURCE \
178	-Wno-extra \
179	-Wno-ignored-qualifiers \
180	-Wno-type-limits \
181	-Wno-unused-but-set-variable \
182	-Wno-address \
183	-Wno-format-security \
184	-Wno-return-type \
185	-Wno-sequence-point \
186	-Os \
187	-fno-ident \
188	-fdata-sections \
189	-ffunction-sections \
190	-fomit-frame-pointer \
191	-funwind-tables
192
193MY_DEFS_Release := \
194	'-DV8_DEPRECATION_WARNINGS' \
195	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
196	'-D_FILE_OFFSET_BITS=64' \
197	'-DNO_TCMALLOC' \
198	'-DDISABLE_NACL' \
199	'-DCHROMIUM_BUILD' \
200	'-DUSE_LIBJPEG_TURBO=1' \
201	'-DENABLE_WEBRTC=1' \
202	'-DUSE_PROPRIETARY_CODECS' \
203	'-DENABLE_BROWSER_CDMS' \
204	'-DENABLE_CONFIGURATION_POLICY' \
205	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
206	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
207	'-DENABLE_EGLIMAGE=1' \
208	'-DCLD_VERSION=1' \
209	'-DENABLE_PRINTING=1' \
210	'-DENABLE_MANAGED_USERS=1' \
211	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
212	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
213	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
214	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
215	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
216	'-DVIDEO_HOLE=1' \
217	'-DLIBXSLT_STATIC' \
218	'-DLIBXML_STATIC' \
219	'-DU_USING_ICU_NAMESPACE=0' \
220	'-DUSE_OPENSSL=1' \
221	'-DUSE_OPENSSL_CERTS=1' \
222	'-DANDROID' \
223	'-D__GNU_SOURCE=1' \
224	'-DUSE_STLPORT=1' \
225	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
226	'-DCHROME_BUILD_ID=""' \
227	'-DNDEBUG' \
228	'-DNVALGRIND' \
229	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
230
231
232# Include paths placed before CFLAGS/CPPFLAGS
233LOCAL_C_INCLUDES_Release := \
234	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
235	$(gyp_shared_intermediate_dir) \
236	$(LOCAL_PATH)/third_party/libxslt/linux \
237	$(LOCAL_PATH)/third_party/libxslt \
238	$(LOCAL_PATH)/third_party/libxml/linux/include \
239	$(LOCAL_PATH)/third_party/libxml/src/include \
240	$(PWD)/external/icu/icu4c/source/common \
241	$(PWD)/external/icu/icu4c/source/i18n \
242	$(PWD)/frameworks/wilhelm/include \
243	$(PWD)/bionic \
244	$(PWD)/external/stlport/stlport
245
246
247# Flags passed to only C++ (and not C) files.
248LOCAL_CPPFLAGS_Release := \
249	-fno-rtti \
250	-fno-threadsafe-statics \
251	-fvisibility-inlines-hidden \
252	-Wno-deprecated \
253	-Wno-uninitialized \
254	-Wno-non-virtual-dtor \
255	-Wno-sign-promo \
256	-Wno-non-virtual-dtor
257
258
259LOCAL_FDO_SUPPORT_Release := false
260
261LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
262LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
263LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
264LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
265LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
266### Rules for final target.
267
268LOCAL_LDFLAGS_Debug := \
269	-Wl,-z,now \
270	-Wl,-z,relro \
271	-Wl,--fatal-warnings \
272	-Wl,-z,noexecstack \
273	-fPIC \
274	-EL \
275	-Wl,--no-keep-memory \
276	-nostdlib \
277	-Wl,--no-undefined \
278	-Wl,--exclude-libs=ALL \
279	-Wl,--warn-shared-textrel \
280	-Wl,-O1 \
281	-Wl,--as-needed
282
283
284LOCAL_LDFLAGS_Release := \
285	-Wl,-z,now \
286	-Wl,-z,relro \
287	-Wl,--fatal-warnings \
288	-Wl,-z,noexecstack \
289	-fPIC \
290	-EL \
291	-Wl,--no-keep-memory \
292	-nostdlib \
293	-Wl,--no-undefined \
294	-Wl,--exclude-libs=ALL \
295	-Wl,-O1 \
296	-Wl,--as-needed \
297	-Wl,--gc-sections \
298	-Wl,--warn-shared-textrel
299
300
301LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
302
303LOCAL_STATIC_LIBRARIES :=
304
305# Enable grouping to fix circular references
306LOCAL_GROUP_STATIC_LIBRARIES := true
307
308LOCAL_SHARED_LIBRARIES := \
309	libstlport \
310	libdl
311
312# Add target alias to "gyp_all_modules" target.
313.PHONY: gyp_all_modules
314gyp_all_modules: third_party_libxslt_libxslt_gyp
315
316# Alias gyp target name.
317.PHONY: libxslt
318libxslt: third_party_libxslt_libxslt_gyp
319
320include $(BUILD_STATIC_LIBRARY)
321