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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.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_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/libxml/chromium/libxml_utils.cc \
28	third_party/libxml/src/c14n.c \
29	third_party/libxml/src/catalog.c \
30	third_party/libxml/src/chvalid.c \
31	third_party/libxml/src/debugXML.c \
32	third_party/libxml/src/dict.c \
33	third_party/libxml/src/DOCBparser.c \
34	third_party/libxml/src/encoding.c \
35	third_party/libxml/src/entities.c \
36	third_party/libxml/src/error.c \
37	third_party/libxml/src/globals.c \
38	third_party/libxml/src/hash.c \
39	third_party/libxml/src/HTMLparser.c \
40	third_party/libxml/src/HTMLtree.c \
41	third_party/libxml/src/legacy.c \
42	third_party/libxml/src/list.c \
43	third_party/libxml/src/nanoftp.c \
44	third_party/libxml/src/nanohttp.c \
45	third_party/libxml/src/parser.c \
46	third_party/libxml/src/parserInternals.c \
47	third_party/libxml/src/pattern.c \
48	third_party/libxml/src/relaxng.c \
49	third_party/libxml/src/SAX.c \
50	third_party/libxml/src/SAX2.c \
51	third_party/libxml/src/schematron.c \
52	third_party/libxml/src/threads.c \
53	third_party/libxml/src/tree.c \
54	third_party/libxml/src/uri.c \
55	third_party/libxml/src/valid.c \
56	third_party/libxml/src/xinclude.c \
57	third_party/libxml/src/xlink.c \
58	third_party/libxml/src/xmlIO.c \
59	third_party/libxml/src/xmlmemory.c \
60	third_party/libxml/src/xmlmodule.c \
61	third_party/libxml/src/xmlreader.c \
62	third_party/libxml/src/xmlregexp.c \
63	third_party/libxml/src/xmlsave.c \
64	third_party/libxml/src/xmlschemas.c \
65	third_party/libxml/src/xmlschemastypes.c \
66	third_party/libxml/src/xmlstring.c \
67	third_party/libxml/src/xmlunicode.c \
68	third_party/libxml/src/xmlwriter.c \
69	third_party/libxml/src/xpath.c \
70	third_party/libxml/src/xpointer.c
71
72
73# Flags passed to both C and C++ files.
74MY_CFLAGS_Debug := \
75	-fstack-protector \
76	--param=ssp-buffer-size=4 \
77	-fno-strict-aliasing \
78	-Wno-unused-parameter \
79	-Wno-missing-field-initializers \
80	-fvisibility=hidden \
81	-pipe \
82	-fPIC \
83	-Wno-unused-local-typedefs \
84	-Wno-format \
85	-m64 \
86	-march=x86-64 \
87	-ffunction-sections \
88	-funwind-tables \
89	-g \
90	-fstack-protector \
91	-fno-short-enums \
92	-finline-limit=64 \
93	-Wa,--noexecstack \
94	-U_FORTIFY_SOURCE \
95	-Wno-extra \
96	-Wno-ignored-qualifiers \
97	-Wno-type-limits \
98	-Wno-unused-but-set-variable \
99	-Wno-address \
100	-Wno-format-security \
101	-Wno-return-type \
102	-Wno-sequence-point \
103	-Os \
104	-g \
105	-gdwarf-4 \
106	-fdata-sections \
107	-ffunction-sections \
108	-fomit-frame-pointer \
109	-funwind-tables
110
111MY_DEFS_Debug := \
112	'-DV8_DEPRECATION_WARNINGS' \
113	'-D_FILE_OFFSET_BITS=64' \
114	'-DNO_TCMALLOC' \
115	'-DDISABLE_NACL' \
116	'-DCHROMIUM_BUILD' \
117	'-DUSE_LIBJPEG_TURBO=1' \
118	'-DENABLE_WEBRTC=1' \
119	'-DUSE_PROPRIETARY_CODECS' \
120	'-DENABLE_BROWSER_CDMS' \
121	'-DENABLE_CONFIGURATION_POLICY' \
122	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
123	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
124	'-DENABLE_EGLIMAGE=1' \
125	'-DCLD_VERSION=1' \
126	'-DENABLE_PRINTING=1' \
127	'-DENABLE_MANAGED_USERS=1' \
128	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
129	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
130	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
131	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
132	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
133	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
134	'-DVIDEO_HOLE=1' \
135	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
136	'-DLIBXML_STATIC=' \
137	'-D_REENTRANT' \
138	'-DU_USING_ICU_NAMESPACE=0' \
139	'-DU_ENABLE_DYLOAD=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-exceptions \
170	-fno-rtti \
171	-fno-threadsafe-statics \
172	-fvisibility-inlines-hidden \
173	-Wno-deprecated \
174	-std=gnu++11 \
175	-Wno-narrowing \
176	-Wno-literal-suffix \
177	-Wno-non-virtual-dtor \
178	-Wno-sign-promo \
179	-Wno-non-virtual-dtor
180
181
182# Flags passed to both C and C++ files.
183MY_CFLAGS_Release := \
184	-fstack-protector \
185	--param=ssp-buffer-size=4 \
186	-fno-strict-aliasing \
187	-Wno-unused-parameter \
188	-Wno-missing-field-initializers \
189	-fvisibility=hidden \
190	-pipe \
191	-fPIC \
192	-Wno-unused-local-typedefs \
193	-Wno-format \
194	-m64 \
195	-march=x86-64 \
196	-ffunction-sections \
197	-funwind-tables \
198	-g \
199	-fstack-protector \
200	-fno-short-enums \
201	-finline-limit=64 \
202	-Wa,--noexecstack \
203	-U_FORTIFY_SOURCE \
204	-Wno-extra \
205	-Wno-ignored-qualifiers \
206	-Wno-type-limits \
207	-Wno-unused-but-set-variable \
208	-Wno-address \
209	-Wno-format-security \
210	-Wno-return-type \
211	-Wno-sequence-point \
212	-Os \
213	-fno-ident \
214	-fdata-sections \
215	-ffunction-sections \
216	-fomit-frame-pointer \
217	-funwind-tables
218
219MY_DEFS_Release := \
220	'-DV8_DEPRECATION_WARNINGS' \
221	'-D_FILE_OFFSET_BITS=64' \
222	'-DNO_TCMALLOC' \
223	'-DDISABLE_NACL' \
224	'-DCHROMIUM_BUILD' \
225	'-DUSE_LIBJPEG_TURBO=1' \
226	'-DENABLE_WEBRTC=1' \
227	'-DUSE_PROPRIETARY_CODECS' \
228	'-DENABLE_BROWSER_CDMS' \
229	'-DENABLE_CONFIGURATION_POLICY' \
230	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
231	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
232	'-DENABLE_EGLIMAGE=1' \
233	'-DCLD_VERSION=1' \
234	'-DENABLE_PRINTING=1' \
235	'-DENABLE_MANAGED_USERS=1' \
236	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
237	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
238	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
239	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
240	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
241	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
242	'-DVIDEO_HOLE=1' \
243	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
244	'-DLIBXML_STATIC=' \
245	'-D_REENTRANT' \
246	'-DU_USING_ICU_NAMESPACE=0' \
247	'-DU_ENABLE_DYLOAD=0' \
248	'-DUSE_OPENSSL=1' \
249	'-DUSE_OPENSSL_CERTS=1' \
250	'-DANDROID' \
251	'-D__GNU_SOURCE=1' \
252	'-DUSE_STLPORT=1' \
253	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
254	'-DCHROME_BUILD_ID=""' \
255	'-DNDEBUG' \
256	'-DNVALGRIND' \
257	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
258
259
260# Include paths placed before CFLAGS/CPPFLAGS
261LOCAL_C_INCLUDES_Release := \
262	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
263	$(gyp_shared_intermediate_dir) \
264	$(LOCAL_PATH)/third_party/libxml/linux \
265	$(LOCAL_PATH)/third_party/libxml/linux/include \
266	$(LOCAL_PATH)/third_party/libxml/src/include \
267	$(PWD)/external/icu/icu4c/source/common \
268	$(PWD)/external/icu/icu4c/source/i18n \
269	$(LOCAL_PATH)/third_party/zlib \
270	$(PWD)/frameworks/wilhelm/include \
271	$(PWD)/bionic \
272	$(PWD)/external/stlport/stlport
273
274
275# Flags passed to only C++ (and not C) files.
276LOCAL_CPPFLAGS_Release := \
277	-fno-exceptions \
278	-fno-rtti \
279	-fno-threadsafe-statics \
280	-fvisibility-inlines-hidden \
281	-Wno-deprecated \
282	-std=gnu++11 \
283	-Wno-narrowing \
284	-Wno-literal-suffix \
285	-Wno-non-virtual-dtor \
286	-Wno-sign-promo \
287	-Wno-non-virtual-dtor
288
289
290LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
291LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
292LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
293LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
294### Rules for final target.
295
296LOCAL_SHARED_LIBRARIES := \
297	libstlport \
298	libdl
299
300# Add target alias to "gyp_all_modules" target.
301.PHONY: gyp_all_modules
302gyp_all_modules: third_party_libxml_libxml_gyp
303
304# Alias gyp target name.
305.PHONY: libxml
306libxml: third_party_libxml_libxml_gyp
307
308include $(BUILD_STATIC_LIBRARY)
309