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	--param=ssp-buffer-size=4 \
76	-fno-strict-aliasing \
77	-Wno-unused-parameter \
78	-Wno-missing-field-initializers \
79	-fvisibility=hidden \
80	-pipe \
81	-fPIC \
82	-Wno-unused-local-typedefs \
83	-Wno-format \
84	-msse2 \
85	-mfpmath=sse \
86	-mmmx \
87	-m32 \
88	-ffunction-sections \
89	-funwind-tables \
90	-g \
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	-fno-stack-protector \
100	-Wno-address \
101	-Wno-format-security \
102	-Wno-return-type \
103	-Wno-sequence-point \
104	-Os \
105	-g \
106	-gdwarf-4 \
107	-fdata-sections \
108	-ffunction-sections \
109	-fomit-frame-pointer \
110	-funwind-tables
111
112MY_DEFS_Debug := \
113	'-DV8_DEPRECATION_WARNINGS' \
114	'-D_FILE_OFFSET_BITS=64' \
115	'-DNO_TCMALLOC' \
116	'-DDISABLE_NACL' \
117	'-DCHROMIUM_BUILD' \
118	'-DUSE_LIBJPEG_TURBO=1' \
119	'-DENABLE_WEBRTC=1' \
120	'-DUSE_PROPRIETARY_CODECS' \
121	'-DENABLE_BROWSER_CDMS' \
122	'-DENABLE_CONFIGURATION_POLICY' \
123	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
124	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
125	'-DENABLE_EGLIMAGE=1' \
126	'-DCLD_VERSION=1' \
127	'-DENABLE_PRINTING=1' \
128	'-DENABLE_MANAGED_USERS=1' \
129	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
130	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
131	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
132	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
133	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
134	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
135	'-DVIDEO_HOLE=1' \
136	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
137	'-DLIBXML_STATIC=' \
138	'-D_REENTRANT' \
139	'-DU_USING_ICU_NAMESPACE=0' \
140	'-DU_ENABLE_DYLOAD=0' \
141	'-DUSE_OPENSSL=1' \
142	'-DUSE_OPENSSL_CERTS=1' \
143	'-DANDROID' \
144	'-D__GNU_SOURCE=1' \
145	'-DUSE_STLPORT=1' \
146	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
147	'-DCHROME_BUILD_ID=""' \
148	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
149	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
150	'-D_DEBUG'
151
152
153# Include paths placed before CFLAGS/CPPFLAGS
154LOCAL_C_INCLUDES_Debug := \
155	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
156	$(gyp_shared_intermediate_dir) \
157	$(LOCAL_PATH)/third_party/libxml/linux \
158	$(LOCAL_PATH)/third_party/libxml/linux/include \
159	$(LOCAL_PATH)/third_party/libxml/src/include \
160	$(PWD)/external/icu/icu4c/source/common \
161	$(PWD)/external/icu/icu4c/source/i18n \
162	$(LOCAL_PATH)/third_party/zlib \
163	$(PWD)/frameworks/wilhelm/include \
164	$(PWD)/bionic \
165	$(PWD)/external/stlport/stlport
166
167
168# Flags passed to only C++ (and not C) files.
169LOCAL_CPPFLAGS_Debug := \
170	-fno-exceptions \
171	-fno-rtti \
172	-fno-threadsafe-statics \
173	-fvisibility-inlines-hidden \
174	-Wno-deprecated \
175	-std=gnu++11 \
176	-Wno-narrowing \
177	-Wno-literal-suffix \
178	-Wno-non-virtual-dtor \
179	-Wno-sign-promo \
180	-Wno-non-virtual-dtor
181
182
183# Flags passed to both C and C++ files.
184MY_CFLAGS_Release := \
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	-msse2 \
195	-mfpmath=sse \
196	-mmmx \
197	-m32 \
198	-ffunction-sections \
199	-funwind-tables \
200	-g \
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	-fno-stack-protector \
210	-Wno-address \
211	-Wno-format-security \
212	-Wno-return-type \
213	-Wno-sequence-point \
214	-Os \
215	-fno-ident \
216	-fdata-sections \
217	-ffunction-sections \
218	-fomit-frame-pointer \
219	-funwind-tables
220
221MY_DEFS_Release := \
222	'-DV8_DEPRECATION_WARNINGS' \
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="https://proxy-dev.googlezip.net:443/"' \
240	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
241	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
242	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
243	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
244	'-DVIDEO_HOLE=1' \
245	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
246	'-DLIBXML_STATIC=' \
247	'-D_REENTRANT' \
248	'-DU_USING_ICU_NAMESPACE=0' \
249	'-DU_ENABLE_DYLOAD=0' \
250	'-DUSE_OPENSSL=1' \
251	'-DUSE_OPENSSL_CERTS=1' \
252	'-DANDROID' \
253	'-D__GNU_SOURCE=1' \
254	'-DUSE_STLPORT=1' \
255	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
256	'-DCHROME_BUILD_ID=""' \
257	'-DNDEBUG' \
258	'-DNVALGRIND' \
259	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
260
261
262# Include paths placed before CFLAGS/CPPFLAGS
263LOCAL_C_INCLUDES_Release := \
264	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
265	$(gyp_shared_intermediate_dir) \
266	$(LOCAL_PATH)/third_party/libxml/linux \
267	$(LOCAL_PATH)/third_party/libxml/linux/include \
268	$(LOCAL_PATH)/third_party/libxml/src/include \
269	$(PWD)/external/icu/icu4c/source/common \
270	$(PWD)/external/icu/icu4c/source/i18n \
271	$(LOCAL_PATH)/third_party/zlib \
272	$(PWD)/frameworks/wilhelm/include \
273	$(PWD)/bionic \
274	$(PWD)/external/stlport/stlport
275
276
277# Flags passed to only C++ (and not C) files.
278LOCAL_CPPFLAGS_Release := \
279	-fno-exceptions \
280	-fno-rtti \
281	-fno-threadsafe-statics \
282	-fvisibility-inlines-hidden \
283	-Wno-deprecated \
284	-std=gnu++11 \
285	-Wno-narrowing \
286	-Wno-literal-suffix \
287	-Wno-non-virtual-dtor \
288	-Wno-sign-promo \
289	-Wno-non-virtual-dtor
290
291
292LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
293LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
294LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
295LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
296### Rules for final target.
297
298LOCAL_SHARED_LIBRARIES := \
299	libstlport \
300	libdl
301
302# Add target alias to "gyp_all_modules" target.
303.PHONY: gyp_all_modules
304gyp_all_modules: third_party_libxml_libxml_gyp
305
306# Alias gyp target name.
307.PHONY: libxml
308libxml: third_party_libxml_libxml_gyp
309
310include $(BUILD_STATIC_LIBRARY)
311