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
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	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/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-exceptions \
77	-fno-strict-aliasing \
78	-Wno-unused-parameter \
79	-Wno-missing-field-initializers \
80	-fvisibility=hidden \
81	-pipe \
82	-fPIC \
83	-Wno-format \
84	-m32 \
85	-mmmx \
86	-march=pentium4 \
87	-msse2 \
88	-mfpmath=sse \
89	-fuse-ld=gold \
90	-ffunction-sections \
91	-funwind-tables \
92	-g \
93	-fno-short-enums \
94	-finline-limit=64 \
95	-Wa,--noexecstack \
96	-U_FORTIFY_SOURCE \
97	-Wno-extra \
98	-Wno-ignored-qualifiers \
99	-Wno-type-limits \
100	-Wno-address \
101	-Wno-format-security \
102	-Wno-return-type \
103	-Wno-sequence-point \
104	-fno-stack-protector \
105	-Os \
106	-g \
107	-fomit-frame-pointer \
108	-fdata-sections \
109	-ffunction-sections
110
111MY_DEFS_Debug := \
112	'-DANGLE_DX11' \
113	'-D_FILE_OFFSET_BITS=64' \
114	'-DNO_TCMALLOC' \
115	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
116	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
117	'-DDISABLE_NACL' \
118	'-DCHROMIUM_BUILD' \
119	'-DUSE_LIBJPEG_TURBO=1' \
120	'-DUSE_PROPRIETARY_CODECS' \
121	'-DENABLE_CONFIGURATION_POLICY' \
122	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
123	'-DTRACING_IS_OFFICIAL_BUILD=1' \
124	'-DENABLE_GPU=1' \
125	'-DUSE_OPENSSL=1' \
126	'-DENABLE_EGLIMAGE=1' \
127	'-DENABLE_PRINTING=1' \
128	'-DLIBXML_STATIC=' \
129	'-D_REENTRANT' \
130	'-DU_USING_ICU_NAMESPACE=0' \
131	'-DANDROID' \
132	'-D__GNU_SOURCE=1' \
133	'-DUSE_STLPORT=1' \
134	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
135	'-DCHROME_BUILD_ID=""' \
136	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
137	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
138	'-D_DEBUG'
139
140
141# Include paths placed before CFLAGS/CPPFLAGS
142LOCAL_C_INCLUDES_Debug := \
143	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
144	$(LOCAL_PATH)/third_party/libxml/linux \
145	$(LOCAL_PATH)/third_party/libxml/linux/include \
146	$(LOCAL_PATH)/third_party/libxml/src/include \
147	$(PWD)/external/icu4c/common \
148	$(PWD)/external/icu4c/i18n \
149	$(LOCAL_PATH)/third_party/zlib \
150	$(PWD)/frameworks/wilhelm/include \
151	$(PWD)/bionic \
152	$(PWD)/external/stlport/stlport
153
154
155# Flags passed to only C++ (and not C) files.
156LOCAL_CPPFLAGS_Debug := \
157	-fno-rtti \
158	-fno-threadsafe-statics \
159	-fvisibility-inlines-hidden \
160	-Wno-deprecated \
161	-Wno-error=c++0x-compat \
162	-Wno-non-virtual-dtor \
163	-Wno-sign-promo \
164	-Wno-non-virtual-dtor
165
166
167# Flags passed to both C and C++ files.
168MY_CFLAGS_Release := \
169	--param=ssp-buffer-size=4 \
170	-fno-exceptions \
171	-fno-strict-aliasing \
172	-Wno-unused-parameter \
173	-Wno-missing-field-initializers \
174	-fvisibility=hidden \
175	-pipe \
176	-fPIC \
177	-Wno-format \
178	-m32 \
179	-mmmx \
180	-march=pentium4 \
181	-msse2 \
182	-mfpmath=sse \
183	-fuse-ld=gold \
184	-ffunction-sections \
185	-funwind-tables \
186	-g \
187	-fno-short-enums \
188	-finline-limit=64 \
189	-Wa,--noexecstack \
190	-U_FORTIFY_SOURCE \
191	-Wno-extra \
192	-Wno-ignored-qualifiers \
193	-Wno-type-limits \
194	-Wno-address \
195	-Wno-format-security \
196	-Wno-return-type \
197	-Wno-sequence-point \
198	-fno-stack-protector \
199	-Os \
200	-fno-ident \
201	-fdata-sections \
202	-ffunction-sections \
203	-fomit-frame-pointer \
204	-fno-unwind-tables \
205	-fno-asynchronous-unwind-tables
206
207MY_DEFS_Release := \
208	'-DANGLE_DX11' \
209	'-D_FILE_OFFSET_BITS=64' \
210	'-DNO_TCMALLOC' \
211	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
212	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
213	'-DDISABLE_NACL' \
214	'-DCHROMIUM_BUILD' \
215	'-DUSE_LIBJPEG_TURBO=1' \
216	'-DUSE_PROPRIETARY_CODECS' \
217	'-DENABLE_CONFIGURATION_POLICY' \
218	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
219	'-DTRACING_IS_OFFICIAL_BUILD=1' \
220	'-DENABLE_GPU=1' \
221	'-DUSE_OPENSSL=1' \
222	'-DENABLE_EGLIMAGE=1' \
223	'-DENABLE_PRINTING=1' \
224	'-DLIBXML_STATIC=' \
225	'-D_REENTRANT' \
226	'-DU_USING_ICU_NAMESPACE=0' \
227	'-DANDROID' \
228	'-D__GNU_SOURCE=1' \
229	'-DUSE_STLPORT=1' \
230	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
231	'-DCHROME_BUILD_ID=""' \
232	'-DNDEBUG' \
233	'-DNVALGRIND' \
234	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
235
236
237# Include paths placed before CFLAGS/CPPFLAGS
238LOCAL_C_INCLUDES_Release := \
239	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
240	$(LOCAL_PATH)/third_party/libxml/linux \
241	$(LOCAL_PATH)/third_party/libxml/linux/include \
242	$(LOCAL_PATH)/third_party/libxml/src/include \
243	$(PWD)/external/icu4c/common \
244	$(PWD)/external/icu4c/i18n \
245	$(LOCAL_PATH)/third_party/zlib \
246	$(PWD)/frameworks/wilhelm/include \
247	$(PWD)/bionic \
248	$(PWD)/external/stlport/stlport
249
250
251# Flags passed to only C++ (and not C) files.
252LOCAL_CPPFLAGS_Release := \
253	-fno-rtti \
254	-fno-threadsafe-statics \
255	-fvisibility-inlines-hidden \
256	-Wno-deprecated \
257	-Wno-error=c++0x-compat \
258	-Wno-non-virtual-dtor \
259	-Wno-sign-promo \
260	-Wno-non-virtual-dtor
261
262
263LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
264LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
265LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
266### Rules for final target.
267
268LOCAL_LDFLAGS_Debug := \
269	-Wl,-z,now \
270	-Wl,-z,relro \
271	-Wl,-z,noexecstack \
272	-fPIC \
273	-m32 \
274	-fuse-ld=gold \
275	-nostdlib \
276	-Wl,--no-undefined \
277	-Wl,--exclude-libs=ALL \
278	-Wl,--fatal-warnings \
279	-Wl,--gc-sections \
280	-Wl,--warn-shared-textrel \
281	-Wl,-O1 \
282	-Wl,--as-needed
283
284
285LOCAL_LDFLAGS_Release := \
286	-Wl,-z,now \
287	-Wl,-z,relro \
288	-Wl,-z,noexecstack \
289	-fPIC \
290	-m32 \
291	-fuse-ld=gold \
292	-nostdlib \
293	-Wl,--no-undefined \
294	-Wl,--exclude-libs=ALL \
295	-Wl,-O1 \
296	-Wl,--as-needed \
297	-Wl,--gc-sections \
298	-Wl,--fatal-warnings \
299	-Wl,--warn-shared-textrel
300
301
302LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
303
304LOCAL_STATIC_LIBRARIES :=
305
306# Enable grouping to fix circular references
307LOCAL_GROUP_STATIC_LIBRARIES := true
308
309LOCAL_SHARED_LIBRARIES := \
310	libstlport \
311	libdl
312
313# Add target alias to "gyp_all_modules" target.
314.PHONY: gyp_all_modules
315gyp_all_modules: third_party_libxml_libxml_gyp
316
317# Alias gyp target name.
318.PHONY: libxml
319libxml: third_party_libxml_libxml_gyp
320
321include $(BUILD_STATIC_LIBRARY)
322