libxslt.target.darwin-arm64.mk revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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	--param=ssp-buffer-size=4 \
50	-fno-exceptions \
51	-fno-strict-aliasing \
52	-Wno-unused-parameter \
53	-Wno-missing-field-initializers \
54	-fvisibility=hidden \
55	-pipe \
56	-fPIC \
57	-Wno-unused-local-typedefs \
58	-Wno-format \
59	-ffunction-sections \
60	-funwind-tables \
61	-g \
62	-fno-short-enums \
63	-finline-limit=64 \
64	-Wa,--noexecstack \
65	-U_FORTIFY_SOURCE \
66	-Wno-extra \
67	-Wno-ignored-qualifiers \
68	-Wno-type-limits \
69	-Wno-unused-but-set-variable \
70	-Wno-address \
71	-Wno-format-security \
72	-Wno-return-type \
73	-Wno-sequence-point \
74	-Os \
75	-g \
76	-fomit-frame-pointer \
77	-fdata-sections \
78	-ffunction-sections \
79	-funwind-tables
80
81MY_DEFS_Debug := \
82	'-DV8_DEPRECATION_WARNINGS' \
83	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
84	'-D_FILE_OFFSET_BITS=64' \
85	'-DNO_TCMALLOC' \
86	'-DDISABLE_NACL' \
87	'-DCHROMIUM_BUILD' \
88	'-DUSE_LIBJPEG_TURBO=1' \
89	'-DENABLE_WEBRTC=1' \
90	'-DUSE_PROPRIETARY_CODECS' \
91	'-DENABLE_CONFIGURATION_POLICY' \
92	'-DENABLE_NEW_GAMEPAD_API=1' \
93	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
94	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
95	'-DENABLE_EGLIMAGE=1' \
96	'-DCLD_VERSION=1' \
97	'-DENABLE_PRINTING=1' \
98	'-DENABLE_MANAGED_USERS=1' \
99	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
100	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
101	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
102	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
103	'-DVIDEO_HOLE=1' \
104	'-DLIBXSLT_STATIC' \
105	'-DLIBXML_STATIC' \
106	'-DU_USING_ICU_NAMESPACE=0' \
107	'-DUSE_OPENSSL=1' \
108	'-DUSE_OPENSSL_CERTS=1' \
109	'-DANDROID' \
110	'-D__GNU_SOURCE=1' \
111	'-DUSE_STLPORT=1' \
112	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
113	'-DCHROME_BUILD_ID=""' \
114	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
115	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
116	'-D_DEBUG'
117
118
119# Include paths placed before CFLAGS/CPPFLAGS
120LOCAL_C_INCLUDES_Debug := \
121	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
122	$(LOCAL_PATH)/third_party/libxslt/linux \
123	$(LOCAL_PATH)/third_party/libxslt \
124	$(LOCAL_PATH)/third_party/libxml/linux/include \
125	$(LOCAL_PATH)/third_party/libxml/src/include \
126	$(PWD)/external/icu4c/common \
127	$(PWD)/external/icu4c/i18n \
128	$(PWD)/frameworks/wilhelm/include \
129	$(PWD)/bionic \
130	$(PWD)/external/stlport/stlport
131
132
133# Flags passed to only C++ (and not C) files.
134LOCAL_CPPFLAGS_Debug := \
135	-fno-rtti \
136	-fno-threadsafe-statics \
137	-fvisibility-inlines-hidden \
138	-Wno-deprecated \
139	-Wno-non-virtual-dtor \
140	-Wno-sign-promo \
141	-Wno-non-virtual-dtor
142
143
144# Flags passed to both C and C++ files.
145MY_CFLAGS_Release := \
146	--param=ssp-buffer-size=4 \
147	-fno-exceptions \
148	-fno-strict-aliasing \
149	-Wno-unused-parameter \
150	-Wno-missing-field-initializers \
151	-fvisibility=hidden \
152	-pipe \
153	-fPIC \
154	-Wno-unused-local-typedefs \
155	-Wno-format \
156	-ffunction-sections \
157	-funwind-tables \
158	-g \
159	-fno-short-enums \
160	-finline-limit=64 \
161	-Wa,--noexecstack \
162	-U_FORTIFY_SOURCE \
163	-Wno-extra \
164	-Wno-ignored-qualifiers \
165	-Wno-type-limits \
166	-Wno-unused-but-set-variable \
167	-Wno-address \
168	-Wno-format-security \
169	-Wno-return-type \
170	-Wno-sequence-point \
171	-Os \
172	-fno-ident \
173	-fdata-sections \
174	-ffunction-sections \
175	-fomit-frame-pointer \
176	-funwind-tables
177
178MY_DEFS_Release := \
179	'-DV8_DEPRECATION_WARNINGS' \
180	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
181	'-D_FILE_OFFSET_BITS=64' \
182	'-DNO_TCMALLOC' \
183	'-DDISABLE_NACL' \
184	'-DCHROMIUM_BUILD' \
185	'-DUSE_LIBJPEG_TURBO=1' \
186	'-DENABLE_WEBRTC=1' \
187	'-DUSE_PROPRIETARY_CODECS' \
188	'-DENABLE_CONFIGURATION_POLICY' \
189	'-DENABLE_NEW_GAMEPAD_API=1' \
190	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
191	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
192	'-DENABLE_EGLIMAGE=1' \
193	'-DCLD_VERSION=1' \
194	'-DENABLE_PRINTING=1' \
195	'-DENABLE_MANAGED_USERS=1' \
196	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
197	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
198	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
199	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
200	'-DVIDEO_HOLE=1' \
201	'-DLIBXSLT_STATIC' \
202	'-DLIBXML_STATIC' \
203	'-DU_USING_ICU_NAMESPACE=0' \
204	'-DUSE_OPENSSL=1' \
205	'-DUSE_OPENSSL_CERTS=1' \
206	'-DANDROID' \
207	'-D__GNU_SOURCE=1' \
208	'-DUSE_STLPORT=1' \
209	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
210	'-DCHROME_BUILD_ID=""' \
211	'-DNDEBUG' \
212	'-DNVALGRIND' \
213	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
214
215
216# Include paths placed before CFLAGS/CPPFLAGS
217LOCAL_C_INCLUDES_Release := \
218	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
219	$(LOCAL_PATH)/third_party/libxslt/linux \
220	$(LOCAL_PATH)/third_party/libxslt \
221	$(LOCAL_PATH)/third_party/libxml/linux/include \
222	$(LOCAL_PATH)/third_party/libxml/src/include \
223	$(PWD)/external/icu4c/common \
224	$(PWD)/external/icu4c/i18n \
225	$(PWD)/frameworks/wilhelm/include \
226	$(PWD)/bionic \
227	$(PWD)/external/stlport/stlport
228
229
230# Flags passed to only C++ (and not C) files.
231LOCAL_CPPFLAGS_Release := \
232	-fno-rtti \
233	-fno-threadsafe-statics \
234	-fvisibility-inlines-hidden \
235	-Wno-deprecated \
236	-Wno-non-virtual-dtor \
237	-Wno-sign-promo \
238	-Wno-non-virtual-dtor
239
240
241LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
242LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
243LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
244LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
245### Rules for final target.
246
247LOCAL_LDFLAGS_Debug := \
248	-Wl,-z,now \
249	-Wl,-z,relro \
250	-Wl,--fatal-warnings \
251	-Wl,-z,noexecstack \
252	-fPIC \
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	-nostdlib \
268	-Wl,--no-undefined \
269	-Wl,--exclude-libs=ALL \
270	-Wl,-O1 \
271	-Wl,--as-needed \
272	-Wl,--gc-sections \
273	-Wl,--warn-shared-textrel
274
275
276LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
277
278LOCAL_STATIC_LIBRARIES :=
279
280# Enable grouping to fix circular references
281LOCAL_GROUP_STATIC_LIBRARIES := true
282
283LOCAL_SHARED_LIBRARIES := \
284	libstlport \
285	libdl
286
287# Add target alias to "gyp_all_modules" target.
288.PHONY: gyp_all_modules
289gyp_all_modules: third_party_libxslt_libxslt_gyp
290
291# Alias gyp target name.
292.PHONY: libxslt
293libxslt: third_party_libxslt_libxslt_gyp
294
295include $(BUILD_STATIC_LIBRARY)
296