libxslt.target.darwin-mips.mk revision 0529e5d033099cbfc42635f6f6183833b09dff6e
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libxslt_libxslt_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
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_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/libxslt/libxslt/attributes.c \
27	third_party/libxslt/libxslt/attrvt.c \
28	third_party/libxslt/libxslt/documents.c \
29	third_party/libxslt/libxslt/extensions.c \
30	third_party/libxslt/libxslt/extra.c \
31	third_party/libxslt/libxslt/functions.c \
32	third_party/libxslt/libxslt/imports.c \
33	third_party/libxslt/libxslt/keys.c \
34	third_party/libxslt/libxslt/namespaces.c \
35	third_party/libxslt/libxslt/numbers.c \
36	third_party/libxslt/libxslt/pattern.c \
37	third_party/libxslt/libxslt/preproc.c \
38	third_party/libxslt/libxslt/security.c \
39	third_party/libxslt/libxslt/templates.c \
40	third_party/libxslt/libxslt/transform.c \
41	third_party/libxslt/libxslt/variables.c \
42	third_party/libxslt/libxslt/xslt.c \
43	third_party/libxslt/libxslt/xsltlocale.c \
44	third_party/libxslt/libxslt/xsltutils.c
45
46
47# Flags passed to both C and C++ files.
48MY_CFLAGS_Debug := \
49	-fstack-protector \
50	--param=ssp-buffer-size=4 \
51	 \
52	-fno-exceptions \
53	-fno-strict-aliasing \
54	-Wno-unused-parameter \
55	-Wno-missing-field-initializers \
56	-fvisibility=hidden \
57	-pipe \
58	-fPIC \
59	-Wno-format \
60	-EL \
61	-mhard-float \
62	-ffunction-sections \
63	-funwind-tables \
64	-g \
65	-fstack-protector \
66	-fno-short-enums \
67	-finline-limit=64 \
68	-Wa,--noexecstack \
69	-U_FORTIFY_SOURCE \
70	-Wno-extra \
71	-Wno-ignored-qualifiers \
72	-Wno-type-limits \
73	-Wno-unused-but-set-variable \
74	-Wno-address \
75	-Wno-format-security \
76	-Wno-return-type \
77	-Wno-sequence-point \
78	-Os \
79	-g \
80	-fomit-frame-pointer \
81	-fdata-sections \
82	-ffunction-sections \
83	-funwind-tables
84
85MY_DEFS_Debug := \
86	'-DV8_DEPRECATION_WARNINGS' \
87	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
88	'-D_FILE_OFFSET_BITS=64' \
89	'-DNO_TCMALLOC' \
90	'-DDISABLE_NACL' \
91	'-DCHROMIUM_BUILD' \
92	'-DUSE_LIBJPEG_TURBO=1' \
93	'-DENABLE_WEBRTC=1' \
94	'-DUSE_PROPRIETARY_CODECS' \
95	'-DENABLE_CONFIGURATION_POLICY' \
96	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
97	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
98	'-DENABLE_EGLIMAGE=1' \
99	'-DCLD_VERSION=1' \
100	'-DENABLE_PRINTING=1' \
101	'-DENABLE_MANAGED_USERS=1' \
102	'-DLIBXSLT_STATIC' \
103	'-DLIBXML_STATIC' \
104	'-DU_USING_ICU_NAMESPACE=0' \
105	'-DUSE_OPENSSL=1' \
106	'-DUSE_OPENSSL_CERTS=1' \
107	'-DANDROID' \
108	'-D__GNU_SOURCE=1' \
109	'-DUSE_STLPORT=1' \
110	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
111	'-DCHROME_BUILD_ID=""' \
112	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
113	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
114	'-D_DEBUG'
115
116
117# Include paths placed before CFLAGS/CPPFLAGS
118LOCAL_C_INCLUDES_Debug := \
119	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
120	$(LOCAL_PATH)/third_party/libxslt/linux \
121	$(LOCAL_PATH)/third_party/libxslt \
122	$(LOCAL_PATH)/third_party/libxml/linux/include \
123	$(LOCAL_PATH)/third_party/libxml/src/include \
124	$(PWD)/external/icu4c/common \
125	$(PWD)/external/icu4c/i18n \
126	$(PWD)/frameworks/wilhelm/include \
127	$(PWD)/bionic \
128	$(PWD)/external/stlport/stlport
129
130
131# Flags passed to only C++ (and not C) files.
132LOCAL_CPPFLAGS_Debug := \
133	-fno-rtti \
134	-fno-threadsafe-statics \
135	-fvisibility-inlines-hidden \
136	-Wno-deprecated \
137	-Wno-uninitialized \
138	-Wno-non-virtual-dtor \
139	-Wno-sign-promo \
140	-Wno-non-virtual-dtor
141
142
143# Flags passed to both C and C++ files.
144MY_CFLAGS_Release := \
145	-fstack-protector \
146	--param=ssp-buffer-size=4 \
147	 \
148	-fno-exceptions \
149	-fno-strict-aliasing \
150	-Wno-unused-parameter \
151	-Wno-missing-field-initializers \
152	-fvisibility=hidden \
153	-pipe \
154	-fPIC \
155	-Wno-format \
156	-EL \
157	-mhard-float \
158	-ffunction-sections \
159	-funwind-tables \
160	-g \
161	-fstack-protector \
162	-fno-short-enums \
163	-finline-limit=64 \
164	-Wa,--noexecstack \
165	-U_FORTIFY_SOURCE \
166	-Wno-extra \
167	-Wno-ignored-qualifiers \
168	-Wno-type-limits \
169	-Wno-unused-but-set-variable \
170	-Wno-address \
171	-Wno-format-security \
172	-Wno-return-type \
173	-Wno-sequence-point \
174	-Os \
175	-fno-ident \
176	-fdata-sections \
177	-ffunction-sections \
178	-fomit-frame-pointer \
179	-funwind-tables
180
181MY_DEFS_Release := \
182	'-DV8_DEPRECATION_WARNINGS' \
183	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
184	'-D_FILE_OFFSET_BITS=64' \
185	'-DNO_TCMALLOC' \
186	'-DDISABLE_NACL' \
187	'-DCHROMIUM_BUILD' \
188	'-DUSE_LIBJPEG_TURBO=1' \
189	'-DENABLE_WEBRTC=1' \
190	'-DUSE_PROPRIETARY_CODECS' \
191	'-DENABLE_CONFIGURATION_POLICY' \
192	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
193	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
194	'-DENABLE_EGLIMAGE=1' \
195	'-DCLD_VERSION=1' \
196	'-DENABLE_PRINTING=1' \
197	'-DENABLE_MANAGED_USERS=1' \
198	'-DLIBXSLT_STATIC' \
199	'-DLIBXML_STATIC' \
200	'-DU_USING_ICU_NAMESPACE=0' \
201	'-DUSE_OPENSSL=1' \
202	'-DUSE_OPENSSL_CERTS=1' \
203	'-DANDROID' \
204	'-D__GNU_SOURCE=1' \
205	'-DUSE_STLPORT=1' \
206	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
207	'-DCHROME_BUILD_ID=""' \
208	'-DNDEBUG' \
209	'-DNVALGRIND' \
210	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
211
212
213# Include paths placed before CFLAGS/CPPFLAGS
214LOCAL_C_INCLUDES_Release := \
215	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
216	$(LOCAL_PATH)/third_party/libxslt/linux \
217	$(LOCAL_PATH)/third_party/libxslt \
218	$(LOCAL_PATH)/third_party/libxml/linux/include \
219	$(LOCAL_PATH)/third_party/libxml/src/include \
220	$(PWD)/external/icu4c/common \
221	$(PWD)/external/icu4c/i18n \
222	$(PWD)/frameworks/wilhelm/include \
223	$(PWD)/bionic \
224	$(PWD)/external/stlport/stlport
225
226
227# Flags passed to only C++ (and not C) files.
228LOCAL_CPPFLAGS_Release := \
229	-fno-rtti \
230	-fno-threadsafe-statics \
231	-fvisibility-inlines-hidden \
232	-Wno-deprecated \
233	-Wno-uninitialized \
234	-Wno-non-virtual-dtor \
235	-Wno-sign-promo \
236	-Wno-non-virtual-dtor
237
238
239LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
240LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
241LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
242LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
243### Rules for final target.
244
245LOCAL_LDFLAGS_Debug := \
246	-Wl,-z,now \
247	-Wl,-z,relro \
248	-Wl,--fatal-warnings \
249	-Wl,-z,noexecstack \
250	-fPIC \
251	-EL \
252	-Wl,--no-keep-memory \
253	-nostdlib \
254	-Wl,--no-undefined \
255	-Wl,--exclude-libs=ALL \
256	-Wl,--warn-shared-textrel \
257	-Wl,-O1 \
258	-Wl,--as-needed
259
260
261LOCAL_LDFLAGS_Release := \
262	-Wl,-z,now \
263	-Wl,-z,relro \
264	-Wl,--fatal-warnings \
265	-Wl,-z,noexecstack \
266	-fPIC \
267	-EL \
268	-Wl,--no-keep-memory \
269	-nostdlib \
270	-Wl,--no-undefined \
271	-Wl,--exclude-libs=ALL \
272	-Wl,-O1 \
273	-Wl,--as-needed \
274	-Wl,--gc-sections \
275	-Wl,--warn-shared-textrel
276
277
278LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
279
280LOCAL_STATIC_LIBRARIES :=
281
282# Enable grouping to fix circular references
283LOCAL_GROUP_STATIC_LIBRARIES := true
284
285LOCAL_SHARED_LIBRARIES := \
286	libstlport \
287	libdl
288
289# Add target alias to "gyp_all_modules" target.
290.PHONY: gyp_all_modules
291gyp_all_modules: third_party_libxslt_libxslt_gyp
292
293# Alias gyp target name.
294.PHONY: libxslt
295libxslt: third_party_libxslt_libxslt_gyp
296
297include $(BUILD_STATIC_LIBRARY)
298