1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libphonenumber_libphonenumber_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,STATIC_LIBRARIES,third_party_libphonenumber_libphonenumber_without_metadata_gyp,,,$(GYP_VAR_PREFIX))/third_party_libphonenumber_libphonenumber_without_metadata_gyp.a
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_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/libphonenumber/src/phonenumbers/lite_metadata.cc
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS_Debug := \
32	--param=ssp-buffer-size=4 \
33	-fno-strict-aliasing \
34	-Wno-unused-parameter \
35	-Wno-missing-field-initializers \
36	-fvisibility=hidden \
37	-pipe \
38	-fPIC \
39	-Wno-unused-local-typedefs \
40	-Wno-format \
41	-msse2 \
42	-mfpmath=sse \
43	-mmmx \
44	-m32 \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fno-short-enums \
49	-finline-limit=64 \
50	-Wa,--noexecstack \
51	-U_FORTIFY_SOURCE \
52	-Wno-extra \
53	-Wno-ignored-qualifiers \
54	-Wno-type-limits \
55	-Wno-unused-but-set-variable \
56	-fno-stack-protector \
57	-Wno-address \
58	-Wno-format-security \
59	-Wno-return-type \
60	-Wno-sequence-point \
61	-Os \
62	-g \
63	-gdwarf-4 \
64	-fdata-sections \
65	-ffunction-sections \
66	-fomit-frame-pointer \
67	-funwind-tables
68
69MY_DEFS_Debug := \
70	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
71	'-DV8_DEPRECATION_WARNINGS' \
72	'-D_FILE_OFFSET_BITS=64' \
73	'-DNO_TCMALLOC' \
74	'-DDISABLE_NACL' \
75	'-DCHROMIUM_BUILD' \
76	'-DUSE_LIBJPEG_TURBO=1' \
77	'-DENABLE_WEBRTC=1' \
78	'-DUSE_PROPRIETARY_CODECS' \
79	'-DENABLE_BROWSER_CDMS' \
80	'-DENABLE_CONFIGURATION_POLICY' \
81	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
82	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
83	'-DENABLE_EGLIMAGE=1' \
84	'-DCLD_VERSION=1' \
85	'-DENABLE_PRINTING=1' \
86	'-DENABLE_MANAGED_USERS=1' \
87	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
88	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
89	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
90	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
91	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
92	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
93	'-DVIDEO_HOLE=1' \
94	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
95	'-DPROTOBUF_USE_DLLS' \
96	'-DGOOGLE_PROTOBUF_NO_RTTI' \
97	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
98	'-DUSE_OPENSSL=1' \
99	'-DUSE_OPENSSL_CERTS=1' \
100	'-DANDROID' \
101	'-D__GNU_SOURCE=1' \
102	'-DUSE_STLPORT=1' \
103	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
104	'-DCHROME_BUILD_ID=""' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG'
108
109
110# Include paths placed before CFLAGS/CPPFLAGS
111LOCAL_C_INCLUDES_Debug := \
112	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
113	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
114	$(LOCAL_PATH)/third_party/libphonenumber/src \
115	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
116	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
117	$(gyp_shared_intermediate_dir) \
118	$(gyp_shared_intermediate_dir)/protoc_out \
119	$(LOCAL_PATH) \
120	$(LOCAL_PATH)/third_party/protobuf \
121	$(LOCAL_PATH)/third_party/protobuf/src \
122	$(PWD)/frameworks/wilhelm/include \
123	$(PWD)/bionic \
124	$(PWD)/external/stlport/stlport
125
126
127# Flags passed to only C++ (and not C) files.
128LOCAL_CPPFLAGS_Debug := \
129	-fno-exceptions \
130	-fno-rtti \
131	-fno-threadsafe-statics \
132	-fvisibility-inlines-hidden \
133	-Wno-deprecated \
134	-std=gnu++11 \
135	-Wno-narrowing \
136	-Wno-literal-suffix \
137	-Wno-non-virtual-dtor \
138	-Wno-sign-promo \
139	-Wno-non-virtual-dtor
140
141
142# Flags passed to both C and C++ files.
143MY_CFLAGS_Release := \
144	--param=ssp-buffer-size=4 \
145	-fno-strict-aliasing \
146	-Wno-unused-parameter \
147	-Wno-missing-field-initializers \
148	-fvisibility=hidden \
149	-pipe \
150	-fPIC \
151	-Wno-unused-local-typedefs \
152	-Wno-format \
153	-msse2 \
154	-mfpmath=sse \
155	-mmmx \
156	-m32 \
157	-ffunction-sections \
158	-funwind-tables \
159	-g \
160	-fno-short-enums \
161	-finline-limit=64 \
162	-Wa,--noexecstack \
163	-U_FORTIFY_SOURCE \
164	-Wno-extra \
165	-Wno-ignored-qualifiers \
166	-Wno-type-limits \
167	-Wno-unused-but-set-variable \
168	-fno-stack-protector \
169	-Wno-address \
170	-Wno-format-security \
171	-Wno-return-type \
172	-Wno-sequence-point \
173	-Os \
174	-fno-ident \
175	-fdata-sections \
176	-ffunction-sections \
177	-fomit-frame-pointer \
178	-funwind-tables
179
180MY_DEFS_Release := \
181	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
182	'-DV8_DEPRECATION_WARNINGS' \
183	'-D_FILE_OFFSET_BITS=64' \
184	'-DNO_TCMALLOC' \
185	'-DDISABLE_NACL' \
186	'-DCHROMIUM_BUILD' \
187	'-DUSE_LIBJPEG_TURBO=1' \
188	'-DENABLE_WEBRTC=1' \
189	'-DUSE_PROPRIETARY_CODECS' \
190	'-DENABLE_BROWSER_CDMS' \
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	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
199	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
200	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
201	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
202	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
203	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
204	'-DVIDEO_HOLE=1' \
205	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
206	'-DPROTOBUF_USE_DLLS' \
207	'-DGOOGLE_PROTOBUF_NO_RTTI' \
208	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
209	'-DUSE_OPENSSL=1' \
210	'-DUSE_OPENSSL_CERTS=1' \
211	'-DANDROID' \
212	'-D__GNU_SOURCE=1' \
213	'-DUSE_STLPORT=1' \
214	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
215	'-DCHROME_BUILD_ID=""' \
216	'-DNDEBUG' \
217	'-DNVALGRIND' \
218	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
219
220
221# Include paths placed before CFLAGS/CPPFLAGS
222LOCAL_C_INCLUDES_Release := \
223	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
224	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
225	$(LOCAL_PATH)/third_party/libphonenumber/src \
226	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
227	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
228	$(gyp_shared_intermediate_dir) \
229	$(gyp_shared_intermediate_dir)/protoc_out \
230	$(LOCAL_PATH) \
231	$(LOCAL_PATH)/third_party/protobuf \
232	$(LOCAL_PATH)/third_party/protobuf/src \
233	$(PWD)/frameworks/wilhelm/include \
234	$(PWD)/bionic \
235	$(PWD)/external/stlport/stlport
236
237
238# Flags passed to only C++ (and not C) files.
239LOCAL_CPPFLAGS_Release := \
240	-fno-exceptions \
241	-fno-rtti \
242	-fno-threadsafe-statics \
243	-fvisibility-inlines-hidden \
244	-Wno-deprecated \
245	-std=gnu++11 \
246	-Wno-narrowing \
247	-Wno-literal-suffix \
248	-Wno-non-virtual-dtor \
249	-Wno-sign-promo \
250	-Wno-non-virtual-dtor
251
252
253LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
254LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
255LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
256LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
257### Rules for final target.
258
259LOCAL_SHARED_LIBRARIES := \
260	libstlport \
261	libdl
262
263# Add target alias to "gyp_all_modules" target.
264.PHONY: gyp_all_modules
265gyp_all_modules: third_party_libphonenumber_libphonenumber_gyp
266
267# Alias gyp target name.
268.PHONY: libphonenumber
269libphonenumber: third_party_libphonenumber_libphonenumber_gyp
270
271include $(BUILD_STATIC_LIBRARY)
272