1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libxml_libxml_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	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp
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_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	third_party/libxml/chromium/libxml_utils.cc \
29	third_party/libxml/src/c14n.c \
30	third_party/libxml/src/catalog.c \
31	third_party/libxml/src/chvalid.c \
32	third_party/libxml/src/debugXML.c \
33	third_party/libxml/src/dict.c \
34	third_party/libxml/src/DOCBparser.c \
35	third_party/libxml/src/encoding.c \
36	third_party/libxml/src/entities.c \
37	third_party/libxml/src/error.c \
38	third_party/libxml/src/globals.c \
39	third_party/libxml/src/hash.c \
40	third_party/libxml/src/HTMLparser.c \
41	third_party/libxml/src/HTMLtree.c \
42	third_party/libxml/src/legacy.c \
43	third_party/libxml/src/list.c \
44	third_party/libxml/src/nanoftp.c \
45	third_party/libxml/src/nanohttp.c \
46	third_party/libxml/src/parser.c \
47	third_party/libxml/src/parserInternals.c \
48	third_party/libxml/src/pattern.c \
49	third_party/libxml/src/relaxng.c \
50	third_party/libxml/src/SAX.c \
51	third_party/libxml/src/SAX2.c \
52	third_party/libxml/src/schematron.c \
53	third_party/libxml/src/threads.c \
54	third_party/libxml/src/tree.c \
55	third_party/libxml/src/uri.c \
56	third_party/libxml/src/valid.c \
57	third_party/libxml/src/xinclude.c \
58	third_party/libxml/src/xlink.c \
59	third_party/libxml/src/xmlIO.c \
60	third_party/libxml/src/xmlmemory.c \
61	third_party/libxml/src/xmlmodule.c \
62	third_party/libxml/src/xmlreader.c \
63	third_party/libxml/src/xmlregexp.c \
64	third_party/libxml/src/xmlsave.c \
65	third_party/libxml/src/xmlschemas.c \
66	third_party/libxml/src/xmlschemastypes.c \
67	third_party/libxml/src/xmlstring.c \
68	third_party/libxml/src/xmlunicode.c \
69	third_party/libxml/src/xmlwriter.c \
70	third_party/libxml/src/xpath.c \
71	third_party/libxml/src/xpointer.c
72
73
74# Flags passed to both C and C++ files.
75MY_CFLAGS_Debug := \
76	-fstack-protector \
77	--param=ssp-buffer-size=4 \
78	 \
79	-fno-exceptions \
80	-fno-strict-aliasing \
81	-Wno-unused-parameter \
82	-Wno-missing-field-initializers \
83	-fvisibility=hidden \
84	-pipe \
85	-fPIC \
86	-Wno-unused-local-typedefs \
87	-Wno-format \
88	-EL \
89	-mhard-float \
90	-ffunction-sections \
91	-funwind-tables \
92	-g \
93	-fstack-protector \
94	-fno-short-enums \
95	-finline-limit=64 \
96	-Wa,--noexecstack \
97	-U_FORTIFY_SOURCE \
98	-Wno-extra \
99	-Wno-ignored-qualifiers \
100	-Wno-type-limits \
101	-Wno-unused-but-set-variable \
102	-Wno-address \
103	-Wno-format-security \
104	-Wno-return-type \
105	-Wno-sequence-point \
106	-Os \
107	-g \
108	-fdata-sections \
109	-ffunction-sections \
110	-fomit-frame-pointer \
111	-funwind-tables
112
113MY_DEFS_Debug := \
114	'-DV8_DEPRECATION_WARNINGS' \
115	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
116	'-D_FILE_OFFSET_BITS=64' \
117	'-DNO_TCMALLOC' \
118	'-DDISABLE_NACL' \
119	'-DCHROMIUM_BUILD' \
120	'-DUSE_LIBJPEG_TURBO=1' \
121	'-DENABLE_WEBRTC=1' \
122	'-DUSE_PROPRIETARY_CODECS' \
123	'-DENABLE_BROWSER_CDMS' \
124	'-DENABLE_CONFIGURATION_POLICY' \
125	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
126	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
127	'-DENABLE_EGLIMAGE=1' \
128	'-DCLD_VERSION=1' \
129	'-DENABLE_PRINTING=1' \
130	'-DENABLE_MANAGED_USERS=1' \
131	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
132	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
133	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
134	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
135	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
136	'-DVIDEO_HOLE=1' \
137	'-DLIBXML_STATIC=' \
138	'-D_REENTRANT' \
139	'-DU_USING_ICU_NAMESPACE=0' \
140	'-DUSE_OPENSSL=1' \
141	'-DUSE_OPENSSL_CERTS=1' \
142	'-DANDROID' \
143	'-D__GNU_SOURCE=1' \
144	'-DUSE_STLPORT=1' \
145	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
146	'-DCHROME_BUILD_ID=""' \
147	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
148	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
149	'-D_DEBUG'
150
151
152# Include paths placed before CFLAGS/CPPFLAGS
153LOCAL_C_INCLUDES_Debug := \
154	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
155	$(gyp_shared_intermediate_dir) \
156	$(LOCAL_PATH)/third_party/libxml/linux \
157	$(LOCAL_PATH)/third_party/libxml/linux/include \
158	$(LOCAL_PATH)/third_party/libxml/src/include \
159	$(PWD)/external/icu/icu4c/source/common \
160	$(PWD)/external/icu/icu4c/source/i18n \
161	$(LOCAL_PATH)/third_party/zlib \
162	$(PWD)/frameworks/wilhelm/include \
163	$(PWD)/bionic \
164	$(PWD)/external/stlport/stlport
165
166
167# Flags passed to only C++ (and not C) files.
168LOCAL_CPPFLAGS_Debug := \
169	-fno-rtti \
170	-fno-threadsafe-statics \
171	-fvisibility-inlines-hidden \
172	-Wno-deprecated \
173	-Wno-uninitialized \
174	-Wno-non-virtual-dtor \
175	-Wno-sign-promo \
176	-Wno-non-virtual-dtor
177
178
179LOCAL_FDO_SUPPORT_Debug := false
180
181# Flags passed to both C and C++ files.
182MY_CFLAGS_Release := \
183	-fstack-protector \
184	--param=ssp-buffer-size=4 \
185	 \
186	-fno-exceptions \
187	-fno-strict-aliasing \
188	-Wno-unused-parameter \
189	-Wno-missing-field-initializers \
190	-fvisibility=hidden \
191	-pipe \
192	-fPIC \
193	-Wno-unused-local-typedefs \
194	-Wno-format \
195	-EL \
196	-mhard-float \
197	-ffunction-sections \
198	-funwind-tables \
199	-g \
200	-fstack-protector \
201	-fno-short-enums \
202	-finline-limit=64 \
203	-Wa,--noexecstack \
204	-U_FORTIFY_SOURCE \
205	-Wno-extra \
206	-Wno-ignored-qualifiers \
207	-Wno-type-limits \
208	-Wno-unused-but-set-variable \
209	-Wno-address \
210	-Wno-format-security \
211	-Wno-return-type \
212	-Wno-sequence-point \
213	-Os \
214	-fno-ident \
215	-fdata-sections \
216	-ffunction-sections \
217	-fomit-frame-pointer \
218	-funwind-tables
219
220MY_DEFS_Release := \
221	'-DV8_DEPRECATION_WARNINGS' \
222	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
223	'-D_FILE_OFFSET_BITS=64' \
224	'-DNO_TCMALLOC' \
225	'-DDISABLE_NACL' \
226	'-DCHROMIUM_BUILD' \
227	'-DUSE_LIBJPEG_TURBO=1' \
228	'-DENABLE_WEBRTC=1' \
229	'-DUSE_PROPRIETARY_CODECS' \
230	'-DENABLE_BROWSER_CDMS' \
231	'-DENABLE_CONFIGURATION_POLICY' \
232	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
233	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
234	'-DENABLE_EGLIMAGE=1' \
235	'-DCLD_VERSION=1' \
236	'-DENABLE_PRINTING=1' \
237	'-DENABLE_MANAGED_USERS=1' \
238	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
239	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
240	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
241	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
242	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
243	'-DVIDEO_HOLE=1' \
244	'-DLIBXML_STATIC=' \
245	'-D_REENTRANT' \
246	'-DU_USING_ICU_NAMESPACE=0' \
247	'-DUSE_OPENSSL=1' \
248	'-DUSE_OPENSSL_CERTS=1' \
249	'-DANDROID' \
250	'-D__GNU_SOURCE=1' \
251	'-DUSE_STLPORT=1' \
252	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
253	'-DCHROME_BUILD_ID=""' \
254	'-DNDEBUG' \
255	'-DNVALGRIND' \
256	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
257
258
259# Include paths placed before CFLAGS/CPPFLAGS
260LOCAL_C_INCLUDES_Release := \
261	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
262	$(gyp_shared_intermediate_dir) \
263	$(LOCAL_PATH)/third_party/libxml/linux \
264	$(LOCAL_PATH)/third_party/libxml/linux/include \
265	$(LOCAL_PATH)/third_party/libxml/src/include \
266	$(PWD)/external/icu/icu4c/source/common \
267	$(PWD)/external/icu/icu4c/source/i18n \
268	$(LOCAL_PATH)/third_party/zlib \
269	$(PWD)/frameworks/wilhelm/include \
270	$(PWD)/bionic \
271	$(PWD)/external/stlport/stlport
272
273
274# Flags passed to only C++ (and not C) files.
275LOCAL_CPPFLAGS_Release := \
276	-fno-rtti \
277	-fno-threadsafe-statics \
278	-fvisibility-inlines-hidden \
279	-Wno-deprecated \
280	-Wno-uninitialized \
281	-Wno-non-virtual-dtor \
282	-Wno-sign-promo \
283	-Wno-non-virtual-dtor
284
285
286LOCAL_FDO_SUPPORT_Release := false
287
288LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
289LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
290LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
291LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
292LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
293### Rules for final target.
294
295LOCAL_LDFLAGS_Debug := \
296	-Wl,-z,now \
297	-Wl,-z,relro \
298	-Wl,--fatal-warnings \
299	-Wl,-z,noexecstack \
300	-fPIC \
301	-EL \
302	-Wl,--no-keep-memory \
303	-nostdlib \
304	-Wl,--no-undefined \
305	-Wl,--exclude-libs=ALL \
306	-Wl,--warn-shared-textrel \
307	-Wl,-O1 \
308	-Wl,--as-needed
309
310
311LOCAL_LDFLAGS_Release := \
312	-Wl,-z,now \
313	-Wl,-z,relro \
314	-Wl,--fatal-warnings \
315	-Wl,-z,noexecstack \
316	-fPIC \
317	-EL \
318	-Wl,--no-keep-memory \
319	-nostdlib \
320	-Wl,--no-undefined \
321	-Wl,--exclude-libs=ALL \
322	-Wl,-O1 \
323	-Wl,--as-needed \
324	-Wl,--gc-sections \
325	-Wl,--warn-shared-textrel
326
327
328LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
329
330LOCAL_STATIC_LIBRARIES :=
331
332# Enable grouping to fix circular references
333LOCAL_GROUP_STATIC_LIBRARIES := true
334
335LOCAL_SHARED_LIBRARIES := \
336	libstlport \
337	libdl
338
339# Add target alias to "gyp_all_modules" target.
340.PHONY: gyp_all_modules
341gyp_all_modules: third_party_libxml_libxml_gyp
342
343# Alias gyp target name.
344.PHONY: libxml
345libxml: third_party_libxml_libxml_gyp
346
347include $(BUILD_STATIC_LIBRARY)
348