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