libxml.target.linux-x86.mk revision 6d86b77056ed63eb6871182f42a9fd5f07550f90
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	--param=ssp-buffer-size=4 \
77	-fno-exceptions \
78	-fno-strict-aliasing \
79	-Wno-unused-parameter \
80	-Wno-missing-field-initializers \
81	-fvisibility=hidden \
82	-pipe \
83	-fPIC \
84	-Wno-unused-local-typedefs \
85	-Wno-format \
86	-msse2 \
87	-mfpmath=sse \
88	-mmmx \
89	-m32 \
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-unused-but-set-variable \
101	-fno-stack-protector \
102	-Wno-address \
103	-Wno-format-security \
104	-Wno-return-type \
105	-Wno-sequence-point \
106	-Os \
107	-g \
108	-fomit-frame-pointer \
109	-fdata-sections \
110	-ffunction-sections \
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/icu4c/common \
160	$(PWD)/external/icu4c/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-non-virtual-dtor \
174	-Wno-sign-promo \
175	-Wno-non-virtual-dtor
176
177
178# Flags passed to both C and C++ files.
179MY_CFLAGS_Release := \
180	--param=ssp-buffer-size=4 \
181	-fno-exceptions \
182	-fno-strict-aliasing \
183	-Wno-unused-parameter \
184	-Wno-missing-field-initializers \
185	-fvisibility=hidden \
186	-pipe \
187	-fPIC \
188	-Wno-unused-local-typedefs \
189	-Wno-format \
190	-msse2 \
191	-mfpmath=sse \
192	-mmmx \
193	-m32 \
194	-ffunction-sections \
195	-funwind-tables \
196	-g \
197	-fno-short-enums \
198	-finline-limit=64 \
199	-Wa,--noexecstack \
200	-U_FORTIFY_SOURCE \
201	-Wno-extra \
202	-Wno-ignored-qualifiers \
203	-Wno-type-limits \
204	-Wno-unused-but-set-variable \
205	-fno-stack-protector \
206	-Wno-address \
207	-Wno-format-security \
208	-Wno-return-type \
209	-Wno-sequence-point \
210	-Os \
211	-fno-ident \
212	-fdata-sections \
213	-ffunction-sections \
214	-fomit-frame-pointer \
215	-funwind-tables
216
217MY_DEFS_Release := \
218	'-DV8_DEPRECATION_WARNINGS' \
219	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
220	'-D_FILE_OFFSET_BITS=64' \
221	'-DNO_TCMALLOC' \
222	'-DDISABLE_NACL' \
223	'-DCHROMIUM_BUILD' \
224	'-DUSE_LIBJPEG_TURBO=1' \
225	'-DENABLE_WEBRTC=1' \
226	'-DUSE_PROPRIETARY_CODECS' \
227	'-DENABLE_BROWSER_CDMS' \
228	'-DENABLE_CONFIGURATION_POLICY' \
229	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
230	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
231	'-DENABLE_EGLIMAGE=1' \
232	'-DCLD_VERSION=1' \
233	'-DENABLE_PRINTING=1' \
234	'-DENABLE_MANAGED_USERS=1' \
235	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
236	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
237	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
238	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
239	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
240	'-DVIDEO_HOLE=1' \
241	'-DLIBXML_STATIC=' \
242	'-D_REENTRANT' \
243	'-DU_USING_ICU_NAMESPACE=0' \
244	'-DUSE_OPENSSL=1' \
245	'-DUSE_OPENSSL_CERTS=1' \
246	'-DANDROID' \
247	'-D__GNU_SOURCE=1' \
248	'-DUSE_STLPORT=1' \
249	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
250	'-DCHROME_BUILD_ID=""' \
251	'-DNDEBUG' \
252	'-DNVALGRIND' \
253	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
254
255
256# Include paths placed before CFLAGS/CPPFLAGS
257LOCAL_C_INCLUDES_Release := \
258	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
259	$(gyp_shared_intermediate_dir) \
260	$(LOCAL_PATH)/third_party/libxml/linux \
261	$(LOCAL_PATH)/third_party/libxml/linux/include \
262	$(LOCAL_PATH)/third_party/libxml/src/include \
263	$(PWD)/external/icu4c/common \
264	$(PWD)/external/icu4c/i18n \
265	$(LOCAL_PATH)/third_party/zlib \
266	$(PWD)/frameworks/wilhelm/include \
267	$(PWD)/bionic \
268	$(PWD)/external/stlport/stlport
269
270
271# Flags passed to only C++ (and not C) files.
272LOCAL_CPPFLAGS_Release := \
273	-fno-rtti \
274	-fno-threadsafe-statics \
275	-fvisibility-inlines-hidden \
276	-Wno-deprecated \
277	-Wno-non-virtual-dtor \
278	-Wno-sign-promo \
279	-Wno-non-virtual-dtor
280
281
282LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
283LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
284LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
285LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
286### Rules for final target.
287
288LOCAL_LDFLAGS_Debug := \
289	-Wl,-z,now \
290	-Wl,-z,relro \
291	-Wl,--fatal-warnings \
292	-Wl,-z,noexecstack \
293	-fPIC \
294	-m32 \
295	-fuse-ld=gold \
296	-nostdlib \
297	-Wl,--no-undefined \
298	-Wl,--exclude-libs=ALL \
299	-Wl,--warn-shared-textrel \
300	-Wl,-O1 \
301	-Wl,--as-needed
302
303
304LOCAL_LDFLAGS_Release := \
305	-Wl,-z,now \
306	-Wl,-z,relro \
307	-Wl,--fatal-warnings \
308	-Wl,-z,noexecstack \
309	-fPIC \
310	-m32 \
311	-fuse-ld=gold \
312	-nostdlib \
313	-Wl,--no-undefined \
314	-Wl,--exclude-libs=ALL \
315	-Wl,-O1 \
316	-Wl,--as-needed \
317	-Wl,--gc-sections \
318	-Wl,--warn-shared-textrel
319
320
321LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
322
323LOCAL_STATIC_LIBRARIES :=
324
325# Enable grouping to fix circular references
326LOCAL_GROUP_STATIC_LIBRARIES := true
327
328LOCAL_SHARED_LIBRARIES := \
329	libstlport \
330	libdl
331
332# Add target alias to "gyp_all_modules" target.
333.PHONY: gyp_all_modules
334gyp_all_modules: third_party_libxml_libxml_gyp
335
336# Alias gyp target name.
337.PHONY: libxml
338libxml: third_party_libxml_libxml_gyp
339
340include $(BUILD_STATIC_LIBRARY)
341