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_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
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)/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	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	-fno-exceptions \
35	-fno-strict-aliasing \
36	-Wno-unused-parameter \
37	-Wno-missing-field-initializers \
38	-fvisibility=hidden \
39	-pipe \
40	-fPIC \
41	-Wno-format \
42	-fno-tree-sra \
43	-fuse-ld=gold \
44	-Wno-psabi \
45	-ffunction-sections \
46	-funwind-tables \
47	-g \
48	-fstack-protector \
49	-fno-short-enums \
50	-finline-limit=64 \
51	-Wa,--noexecstack \
52	-U_FORTIFY_SOURCE \
53	-Wno-extra \
54	-Wno-ignored-qualifiers \
55	-Wno-type-limits \
56	-Wno-address \
57	-Wno-format-security \
58	-Wno-return-type \
59	-Wno-sequence-point \
60	-Os \
61	-g \
62	-fomit-frame-pointer \
63	-fdata-sections \
64	-ffunction-sections
65
66MY_DEFS_Debug := \
67	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
68	'-DV8_DEPRECATION_WARNINGS' \
69	'-D_FILE_OFFSET_BITS=64' \
70	'-DNO_TCMALLOC' \
71	'-DDISABLE_NACL' \
72	'-DCHROMIUM_BUILD' \
73	'-DUSE_LIBJPEG_TURBO=1' \
74	'-DUSE_PROPRIETARY_CODECS' \
75	'-DENABLE_CONFIGURATION_POLICY' \
76	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
77	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
78	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
79	'-DUSE_OPENSSL=1' \
80	'-DENABLE_EGLIMAGE=1' \
81	'-DCLD_VERSION=1' \
82	'-DENABLE_PRINTING=1' \
83	'-DENABLE_MANAGED_USERS=1' \
84	'-DPROTOBUF_USE_DLLS' \
85	'-DGOOGLE_PROTOBUF_NO_RTTI' \
86	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
87	'-DANDROID' \
88	'-D__GNU_SOURCE=1' \
89	'-DUSE_STLPORT=1' \
90	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
91	'-DCHROME_BUILD_ID=""' \
92	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
93	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
94	'-D_DEBUG'
95
96
97# Include paths placed before CFLAGS/CPPFLAGS
98LOCAL_C_INCLUDES_Debug := \
99	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
100	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
101	$(LOCAL_PATH)/third_party/libphonenumber/src \
102	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
103	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
104	$(gyp_shared_intermediate_dir)/protoc_out \
105	$(LOCAL_PATH) \
106	$(LOCAL_PATH)/third_party/protobuf \
107	$(LOCAL_PATH)/third_party/protobuf/src \
108	$(PWD)/frameworks/wilhelm/include \
109	$(PWD)/bionic \
110	$(PWD)/external/stlport/stlport
111
112
113# Flags passed to only C++ (and not C) files.
114LOCAL_CPPFLAGS_Debug := \
115	-fno-rtti \
116	-fno-threadsafe-statics \
117	-fvisibility-inlines-hidden \
118	-Wno-deprecated \
119	-Wno-abi \
120	-Wno-error=c++0x-compat \
121	-Wno-non-virtual-dtor \
122	-Wno-sign-promo \
123	-Wno-non-virtual-dtor
124
125
126# Flags passed to both C and C++ files.
127MY_CFLAGS_Release := \
128	-fstack-protector \
129	--param=ssp-buffer-size=4 \
130	-fno-exceptions \
131	-fno-strict-aliasing \
132	-Wno-unused-parameter \
133	-Wno-missing-field-initializers \
134	-fvisibility=hidden \
135	-pipe \
136	-fPIC \
137	-Wno-format \
138	-fno-tree-sra \
139	-fuse-ld=gold \
140	-Wno-psabi \
141	-ffunction-sections \
142	-funwind-tables \
143	-g \
144	-fstack-protector \
145	-fno-short-enums \
146	-finline-limit=64 \
147	-Wa,--noexecstack \
148	-U_FORTIFY_SOURCE \
149	-Wno-extra \
150	-Wno-ignored-qualifiers \
151	-Wno-type-limits \
152	-Wno-address \
153	-Wno-format-security \
154	-Wno-return-type \
155	-Wno-sequence-point \
156	-Os \
157	-fno-ident \
158	-fdata-sections \
159	-ffunction-sections \
160	-fomit-frame-pointer
161
162MY_DEFS_Release := \
163	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
164	'-DV8_DEPRECATION_WARNINGS' \
165	'-D_FILE_OFFSET_BITS=64' \
166	'-DNO_TCMALLOC' \
167	'-DDISABLE_NACL' \
168	'-DCHROMIUM_BUILD' \
169	'-DUSE_LIBJPEG_TURBO=1' \
170	'-DUSE_PROPRIETARY_CODECS' \
171	'-DENABLE_CONFIGURATION_POLICY' \
172	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
173	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
174	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
175	'-DUSE_OPENSSL=1' \
176	'-DENABLE_EGLIMAGE=1' \
177	'-DCLD_VERSION=1' \
178	'-DENABLE_PRINTING=1' \
179	'-DENABLE_MANAGED_USERS=1' \
180	'-DPROTOBUF_USE_DLLS' \
181	'-DGOOGLE_PROTOBUF_NO_RTTI' \
182	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
183	'-DANDROID' \
184	'-D__GNU_SOURCE=1' \
185	'-DUSE_STLPORT=1' \
186	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
187	'-DCHROME_BUILD_ID=""' \
188	'-DNDEBUG' \
189	'-DNVALGRIND' \
190	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
191
192
193# Include paths placed before CFLAGS/CPPFLAGS
194LOCAL_C_INCLUDES_Release := \
195	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
196	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
197	$(LOCAL_PATH)/third_party/libphonenumber/src \
198	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
199	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
200	$(gyp_shared_intermediate_dir)/protoc_out \
201	$(LOCAL_PATH) \
202	$(LOCAL_PATH)/third_party/protobuf \
203	$(LOCAL_PATH)/third_party/protobuf/src \
204	$(PWD)/frameworks/wilhelm/include \
205	$(PWD)/bionic \
206	$(PWD)/external/stlport/stlport
207
208
209# Flags passed to only C++ (and not C) files.
210LOCAL_CPPFLAGS_Release := \
211	-fno-rtti \
212	-fno-threadsafe-statics \
213	-fvisibility-inlines-hidden \
214	-Wno-deprecated \
215	-Wno-abi \
216	-Wno-error=c++0x-compat \
217	-Wno-non-virtual-dtor \
218	-Wno-sign-promo \
219	-Wno-non-virtual-dtor
220
221
222LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
223LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
224LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
225### Rules for final target.
226
227LOCAL_LDFLAGS_Debug := \
228	-Wl,-z,now \
229	-Wl,-z,relro \
230	-Wl,-z,noexecstack \
231	-fPIC \
232	-Wl,-z,relro \
233	-Wl,-z,now \
234	-fuse-ld=gold \
235	-nostdlib \
236	-Wl,--no-undefined \
237	-Wl,--exclude-libs=ALL \
238	-Wl,--icf=safe \
239	-Wl,--fatal-warnings \
240	-Wl,--gc-sections \
241	-Wl,--warn-shared-textrel \
242	-Wl,-O1 \
243	-Wl,--as-needed
244
245
246LOCAL_LDFLAGS_Release := \
247	-Wl,-z,now \
248	-Wl,-z,relro \
249	-Wl,-z,noexecstack \
250	-fPIC \
251	-Wl,-z,relro \
252	-Wl,-z,now \
253	-fuse-ld=gold \
254	-nostdlib \
255	-Wl,--no-undefined \
256	-Wl,--exclude-libs=ALL \
257	-Wl,--icf=safe \
258	-Wl,-O1 \
259	-Wl,--as-needed \
260	-Wl,--gc-sections \
261	-Wl,--fatal-warnings \
262	-Wl,--warn-shared-textrel
263
264
265LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
266
267LOCAL_STATIC_LIBRARIES := \
268	third_party_libphonenumber_libphonenumber_without_metadata_gyp
269
270# Enable grouping to fix circular references
271LOCAL_GROUP_STATIC_LIBRARIES := true
272
273LOCAL_SHARED_LIBRARIES := \
274	libstlport \
275	libdl
276
277# Add target alias to "gyp_all_modules" target.
278.PHONY: gyp_all_modules
279gyp_all_modules: third_party_libphonenumber_libphonenumber_gyp
280
281# Alias gyp target name.
282.PHONY: libphonenumber
283libphonenumber: third_party_libphonenumber_libphonenumber_gyp
284
285include $(BUILD_STATIC_LIBRARY)
286