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