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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/libxslt/libxslt/attributes.c \
26	third_party/libxslt/libxslt/attrvt.c \
27	third_party/libxslt/libxslt/documents.c \
28	third_party/libxslt/libxslt/extensions.c \
29	third_party/libxslt/libxslt/extra.c \
30	third_party/libxslt/libxslt/functions.c \
31	third_party/libxslt/libxslt/imports.c \
32	third_party/libxslt/libxslt/keys.c \
33	third_party/libxslt/libxslt/namespaces.c \
34	third_party/libxslt/libxslt/numbers.c \
35	third_party/libxslt/libxslt/pattern.c \
36	third_party/libxslt/libxslt/preproc.c \
37	third_party/libxslt/libxslt/security.c \
38	third_party/libxslt/libxslt/templates.c \
39	third_party/libxslt/libxslt/transform.c \
40	third_party/libxslt/libxslt/variables.c \
41	third_party/libxslt/libxslt/xslt.c \
42	third_party/libxslt/libxslt/xsltlocale.c \
43	third_party/libxslt/libxslt/xsltutils.c
44
45
46# Flags passed to both C and C++ files.
47MY_CFLAGS_Debug := \
48	-fstack-protector \
49	--param=ssp-buffer-size=4 \
50	-fno-strict-aliasing \
51	-Wno-unused-parameter \
52	-Wno-missing-field-initializers \
53	-fvisibility=hidden \
54	-pipe \
55	-fPIC \
56	-Wno-unused-local-typedefs \
57	-Wno-format \
58	-fno-tree-sra \
59	-fno-caller-saves \
60	-Wno-psabi \
61	-fno-partial-inlining \
62	-fno-early-inlining \
63	-fno-tree-copy-prop \
64	-fno-tree-loop-optimize \
65	-fno-move-loop-invariants \
66	-ffunction-sections \
67	-funwind-tables \
68	-g \
69	-fstack-protector \
70	-fno-short-enums \
71	-finline-limit=64 \
72	-Wa,--noexecstack \
73	-U_FORTIFY_SOURCE \
74	-Wno-extra \
75	-Wno-ignored-qualifiers \
76	-Wno-type-limits \
77	-Wno-unused-but-set-variable \
78	-Wno-address \
79	-Wno-format-security \
80	-Wno-return-type \
81	-Wno-sequence-point \
82	-Os \
83	-g \
84	-gdwarf-4 \
85	-fdata-sections \
86	-ffunction-sections \
87	-fomit-frame-pointer \
88	-funwind-tables
89
90MY_DEFS_Debug := \
91	'-DV8_DEPRECATION_WARNINGS' \
92	'-D_FILE_OFFSET_BITS=64' \
93	'-DNO_TCMALLOC' \
94	'-DDISABLE_NACL' \
95	'-DCHROMIUM_BUILD' \
96	'-DUSE_LIBJPEG_TURBO=1' \
97	'-DENABLE_WEBRTC=1' \
98	'-DUSE_PROPRIETARY_CODECS' \
99	'-DENABLE_BROWSER_CDMS' \
100	'-DENABLE_CONFIGURATION_POLICY' \
101	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
102	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
103	'-DENABLE_EGLIMAGE=1' \
104	'-DCLD_VERSION=1' \
105	'-DENABLE_PRINTING=1' \
106	'-DENABLE_MANAGED_USERS=1' \
107	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
108	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
109	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
110	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
111	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
112	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
113	'-DVIDEO_HOLE=1' \
114	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
115	'-DLIBXSLT_STATIC' \
116	'-DLIBXML_STATIC' \
117	'-DU_USING_ICU_NAMESPACE=0' \
118	'-DU_ENABLE_DYLOAD=0' \
119	'-DUSE_OPENSSL=1' \
120	'-DUSE_OPENSSL_CERTS=1' \
121	'-DANDROID' \
122	'-D__GNU_SOURCE=1' \
123	'-DUSE_STLPORT=1' \
124	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
125	'-DCHROME_BUILD_ID=""' \
126	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
127	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
128	'-D_DEBUG'
129
130
131# Include paths placed before CFLAGS/CPPFLAGS
132LOCAL_C_INCLUDES_Debug := \
133	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
134	$(gyp_shared_intermediate_dir) \
135	$(LOCAL_PATH)/third_party/libxslt/linux \
136	$(LOCAL_PATH)/third_party/libxslt \
137	$(LOCAL_PATH)/third_party/libxml/linux/include \
138	$(LOCAL_PATH)/third_party/libxml/src/include \
139	$(PWD)/external/icu/icu4c/source/common \
140	$(PWD)/external/icu/icu4c/source/i18n \
141	$(PWD)/frameworks/wilhelm/include \
142	$(PWD)/bionic \
143	$(PWD)/external/stlport/stlport
144
145
146# Flags passed to only C++ (and not C) files.
147LOCAL_CPPFLAGS_Debug := \
148	-fno-exceptions \
149	-fno-rtti \
150	-fno-threadsafe-statics \
151	-fvisibility-inlines-hidden \
152	-Wno-deprecated \
153	-Wno-abi \
154	-std=gnu++11 \
155	-Wno-narrowing \
156	-Wno-literal-suffix \
157	-Wno-non-virtual-dtor \
158	-Wno-sign-promo \
159	-Wno-non-virtual-dtor
160
161
162# Flags passed to both C and C++ files.
163MY_CFLAGS_Release := \
164	-fstack-protector \
165	--param=ssp-buffer-size=4 \
166	-fno-strict-aliasing \
167	-Wno-unused-parameter \
168	-Wno-missing-field-initializers \
169	-fvisibility=hidden \
170	-pipe \
171	-fPIC \
172	-Wno-unused-local-typedefs \
173	-Wno-format \
174	-fno-tree-sra \
175	-fno-caller-saves \
176	-Wno-psabi \
177	-fno-partial-inlining \
178	-fno-early-inlining \
179	-fno-tree-copy-prop \
180	-fno-tree-loop-optimize \
181	-fno-move-loop-invariants \
182	-ffunction-sections \
183	-funwind-tables \
184	-g \
185	-fstack-protector \
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-unused-but-set-variable \
194	-Wno-address \
195	-Wno-format-security \
196	-Wno-return-type \
197	-Wno-sequence-point \
198	-Os \
199	-fno-ident \
200	-fdata-sections \
201	-ffunction-sections \
202	-fomit-frame-pointer \
203	-funwind-tables
204
205MY_DEFS_Release := \
206	'-DV8_DEPRECATION_WARNINGS' \
207	'-D_FILE_OFFSET_BITS=64' \
208	'-DNO_TCMALLOC' \
209	'-DDISABLE_NACL' \
210	'-DCHROMIUM_BUILD' \
211	'-DUSE_LIBJPEG_TURBO=1' \
212	'-DENABLE_WEBRTC=1' \
213	'-DUSE_PROPRIETARY_CODECS' \
214	'-DENABLE_BROWSER_CDMS' \
215	'-DENABLE_CONFIGURATION_POLICY' \
216	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
217	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
218	'-DENABLE_EGLIMAGE=1' \
219	'-DCLD_VERSION=1' \
220	'-DENABLE_PRINTING=1' \
221	'-DENABLE_MANAGED_USERS=1' \
222	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
223	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
224	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
225	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
226	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
227	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
228	'-DVIDEO_HOLE=1' \
229	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
230	'-DLIBXSLT_STATIC' \
231	'-DLIBXML_STATIC' \
232	'-DU_USING_ICU_NAMESPACE=0' \
233	'-DU_ENABLE_DYLOAD=0' \
234	'-DUSE_OPENSSL=1' \
235	'-DUSE_OPENSSL_CERTS=1' \
236	'-DANDROID' \
237	'-D__GNU_SOURCE=1' \
238	'-DUSE_STLPORT=1' \
239	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
240	'-DCHROME_BUILD_ID=""' \
241	'-DNDEBUG' \
242	'-DNVALGRIND' \
243	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
244
245
246# Include paths placed before CFLAGS/CPPFLAGS
247LOCAL_C_INCLUDES_Release := \
248	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
249	$(gyp_shared_intermediate_dir) \
250	$(LOCAL_PATH)/third_party/libxslt/linux \
251	$(LOCAL_PATH)/third_party/libxslt \
252	$(LOCAL_PATH)/third_party/libxml/linux/include \
253	$(LOCAL_PATH)/third_party/libxml/src/include \
254	$(PWD)/external/icu/icu4c/source/common \
255	$(PWD)/external/icu/icu4c/source/i18n \
256	$(PWD)/frameworks/wilhelm/include \
257	$(PWD)/bionic \
258	$(PWD)/external/stlport/stlport
259
260
261# Flags passed to only C++ (and not C) files.
262LOCAL_CPPFLAGS_Release := \
263	-fno-exceptions \
264	-fno-rtti \
265	-fno-threadsafe-statics \
266	-fvisibility-inlines-hidden \
267	-Wno-deprecated \
268	-Wno-abi \
269	-std=gnu++11 \
270	-Wno-narrowing \
271	-Wno-literal-suffix \
272	-Wno-non-virtual-dtor \
273	-Wno-sign-promo \
274	-Wno-non-virtual-dtor
275
276
277LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
278LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
279LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
280LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
281### Rules for final target.
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