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