1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := base_base_i18n_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	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
15	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	base/i18n/bidi_line_iterator.cc \
29	base/i18n/break_iterator.cc \
30	base/i18n/case_conversion.cc \
31	base/i18n/char_iterator.cc \
32	base/i18n/file_util_icu.cc \
33	base/i18n/i18n_constants.cc \
34	base/i18n/icu_encoding_detection.cc \
35	base/i18n/icu_string_conversions.cc \
36	base/i18n/icu_util.cc \
37	base/i18n/number_formatting.cc \
38	base/i18n/rtl.cc \
39	base/i18n/streaming_utf8_validator.cc \
40	base/i18n/string_compare.cc \
41	base/i18n/string_search.cc \
42	base/i18n/time_formatting.cc \
43	base/i18n/timezone.cc \
44	base/i18n/utf8_validator_tables.cc
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-strict-aliasing \
53	-Wall \
54	-Wno-unused-parameter \
55	-Wno-missing-field-initializers \
56	-fvisibility=hidden \
57	-pipe \
58	-fPIC \
59	-Wno-unused-local-typedefs \
60	-ffunction-sections \
61	-funwind-tables \
62	-g \
63	-fstack-protector \
64	-fno-short-enums \
65	-finline-limit=64 \
66	-Wa,--noexecstack \
67	-U_FORTIFY_SOURCE \
68	-Wno-extra \
69	-Wno-ignored-qualifiers \
70	-Wno-type-limits \
71	-Wno-unused-but-set-variable \
72	-Os \
73	-g \
74	-gdwarf-4 \
75	-fdata-sections \
76	-ffunction-sections \
77	-fomit-frame-pointer \
78	-funwind-tables
79
80MY_DEFS_Debug := \
81	'-DV8_DEPRECATION_WARNINGS' \
82	'-D_FILE_OFFSET_BITS=64' \
83	'-DNO_TCMALLOC' \
84	'-DDISABLE_NACL' \
85	'-DCHROMIUM_BUILD' \
86	'-DUSE_LIBJPEG_TURBO=1' \
87	'-DENABLE_WEBRTC=1' \
88	'-DUSE_PROPRIETARY_CODECS' \
89	'-DENABLE_BROWSER_CDMS' \
90	'-DENABLE_CONFIGURATION_POLICY' \
91	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
92	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
93	'-DENABLE_EGLIMAGE=1' \
94	'-DCLD_VERSION=1' \
95	'-DENABLE_PRINTING=1' \
96	'-DENABLE_MANAGED_USERS=1' \
97	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
98	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
99	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
100	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
101	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
102	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
103	'-DVIDEO_HOLE=1' \
104	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
105	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
106	'-DU_USING_ICU_NAMESPACE=0' \
107	'-DU_ENABLE_DYLOAD=0' \
108	'-DUSE_OPENSSL=1' \
109	'-DUSE_OPENSSL_CERTS=1' \
110	'-D__STDC_CONSTANT_MACROS' \
111	'-D__STDC_FORMAT_MACROS' \
112	'-DBASE_I18N_IMPLEMENTATION' \
113	'-DANDROID' \
114	'-D__GNU_SOURCE=1' \
115	'-DUSE_STLPORT=1' \
116	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
117	'-DCHROME_BUILD_ID=""' \
118	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
119	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
120	'-D_DEBUG'
121
122
123# Include paths placed before CFLAGS/CPPFLAGS
124LOCAL_C_INCLUDES_Debug := \
125	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
126	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
127	$(gyp_shared_intermediate_dir) \
128	$(LOCAL_PATH) \
129	$(PWD)/external/icu/icu4c/source/common \
130	$(PWD)/external/icu/icu4c/source/i18n \
131	$(PWD)/frameworks/wilhelm/include \
132	$(PWD)/bionic \
133	$(PWD)/external/stlport/stlport
134
135
136# Flags passed to only C++ (and not C) files.
137LOCAL_CPPFLAGS_Debug := \
138	-fno-exceptions \
139	-fno-rtti \
140	-fno-threadsafe-statics \
141	-fvisibility-inlines-hidden \
142	-Wsign-compare \
143	-Wno-uninitialized \
144	-std=gnu++11 \
145	-Wno-narrowing \
146	-Wno-literal-suffix \
147	-Wno-non-virtual-dtor \
148	-Wno-sign-promo
149
150
151# Flags passed to both C and C++ files.
152MY_CFLAGS_Release := \
153	-fstack-protector \
154	--param=ssp-buffer-size=4 \
155	 \
156	-fno-strict-aliasing \
157	-Wall \
158	-Wno-unused-parameter \
159	-Wno-missing-field-initializers \
160	-fvisibility=hidden \
161	-pipe \
162	-fPIC \
163	-Wno-unused-local-typedefs \
164	-ffunction-sections \
165	-funwind-tables \
166	-g \
167	-fstack-protector \
168	-fno-short-enums \
169	-finline-limit=64 \
170	-Wa,--noexecstack \
171	-U_FORTIFY_SOURCE \
172	-Wno-extra \
173	-Wno-ignored-qualifiers \
174	-Wno-type-limits \
175	-Wno-unused-but-set-variable \
176	-fno-ident \
177	-fdata-sections \
178	-ffunction-sections \
179	-fomit-frame-pointer \
180	-funwind-tables \
181	-O2
182
183MY_DEFS_Release := \
184	'-DV8_DEPRECATION_WARNINGS' \
185	'-D_FILE_OFFSET_BITS=64' \
186	'-DNO_TCMALLOC' \
187	'-DDISABLE_NACL' \
188	'-DCHROMIUM_BUILD' \
189	'-DUSE_LIBJPEG_TURBO=1' \
190	'-DENABLE_WEBRTC=1' \
191	'-DUSE_PROPRIETARY_CODECS' \
192	'-DENABLE_BROWSER_CDMS' \
193	'-DENABLE_CONFIGURATION_POLICY' \
194	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
195	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
196	'-DENABLE_EGLIMAGE=1' \
197	'-DCLD_VERSION=1' \
198	'-DENABLE_PRINTING=1' \
199	'-DENABLE_MANAGED_USERS=1' \
200	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
201	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
202	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
203	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
204	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
205	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
206	'-DVIDEO_HOLE=1' \
207	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
208	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
209	'-DU_USING_ICU_NAMESPACE=0' \
210	'-DU_ENABLE_DYLOAD=0' \
211	'-DUSE_OPENSSL=1' \
212	'-DUSE_OPENSSL_CERTS=1' \
213	'-D__STDC_CONSTANT_MACROS' \
214	'-D__STDC_FORMAT_MACROS' \
215	'-DBASE_I18N_IMPLEMENTATION' \
216	'-DANDROID' \
217	'-D__GNU_SOURCE=1' \
218	'-DUSE_STLPORT=1' \
219	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
220	'-DCHROME_BUILD_ID=""' \
221	'-DNDEBUG' \
222	'-DNVALGRIND' \
223	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
224	'-D_FORTIFY_SOURCE=2'
225
226
227# Include paths placed before CFLAGS/CPPFLAGS
228LOCAL_C_INCLUDES_Release := \
229	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
230	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
231	$(gyp_shared_intermediate_dir) \
232	$(LOCAL_PATH) \
233	$(PWD)/external/icu/icu4c/source/common \
234	$(PWD)/external/icu/icu4c/source/i18n \
235	$(PWD)/frameworks/wilhelm/include \
236	$(PWD)/bionic \
237	$(PWD)/external/stlport/stlport
238
239
240# Flags passed to only C++ (and not C) files.
241LOCAL_CPPFLAGS_Release := \
242	-fno-exceptions \
243	-fno-rtti \
244	-fno-threadsafe-statics \
245	-fvisibility-inlines-hidden \
246	-Wsign-compare \
247	-Wno-uninitialized \
248	-std=gnu++11 \
249	-Wno-narrowing \
250	-Wno-literal-suffix \
251	-Wno-non-virtual-dtor \
252	-Wno-sign-promo
253
254
255LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
256LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
257LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
258LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
259### Rules for final target.
260
261LOCAL_SHARED_LIBRARIES := \
262	libstlport \
263	libdl
264
265# Add target alias to "gyp_all_modules" target.
266.PHONY: gyp_all_modules
267gyp_all_modules: base_base_i18n_gyp
268
269# Alias gyp target name.
270.PHONY: base_i18n
271base_i18n: base_base_i18n_gyp
272
273include $(BUILD_STATIC_LIBRARY)
274