libphonenumber_without_metadata.target.linux-arm.mk revision 845ed6b237087326efa8302fe2b3384aa65b1212
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_without_metadata_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,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
15	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
16	$(gyp_shared_intermediate_dir)/protoc
17
18
19### Generated for rule "third_party_libphonenumber_libphonenumber_gyp_libphonenumber_without_metadata_target_genproto":
20# "{'inputs': ['../../tools/protoc_wrapper/protoc_wrapper.py', '$(gyp_shared_intermediate_dir)/protoc'], 'msvs_cygwin_shell': '0', 'extension': 'proto', 'outputs': ['$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/%(INPUT_ROOT)s_pb2.py', '$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/%(INPUT_ROOT)s.pb.cc', '$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/%(INPUT_ROOT)s.pb.h'], 'rule_name': 'genproto', 'rule_sources': ['src/resources/phonemetadata.proto', 'src/resources/phonenumber.proto'], 'action': ['python', '../../tools/protoc_wrapper/protoc_wrapper.py', '--include', '', '--protobuf', '$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/%(INPUT_ROOT)s.pb.h', '--proto-in-dir', 'src/resources', '--proto-in-file', '%(INPUT_ROOT)s$(suffix $<)', '--use-system-protobuf=0', '--', '$(gyp_shared_intermediate_dir)/protoc', '--cpp_out', '$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers', '--python_out', '$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers'], 'message': 'Generating C++ and Python code from $(RULE_SOURCES)', 'process_outputs_as_sources': '1'}":
21$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py: gyp_local_path := $(LOCAL_PATH)
22$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
23$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
24$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
25$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py: $(LOCAL_PATH)/third_party/libphonenumber/src/resources/phonemetadata.proto $(LOCAL_PATH)/tools/protoc_wrapper/protoc_wrapper.py $(gyp_shared_intermediate_dir)/protoc $(GYP_TARGET_DEPENDENCIES)
26	mkdir -p $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers; cd $(gyp_local_path)/third_party/libphonenumber; python ../../tools/protoc_wrapper/protoc_wrapper.py --include "" --protobuf "$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h" --proto-in-dir src/resources --proto-in-file "phonemetadata$(suffix $<)" "--use-system-protobuf=0" -- "$(gyp_shared_intermediate_dir)/protoc" --cpp_out "$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers" --python_out "$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers"
27
28$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.cc: $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py ;
29$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h: $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py ;
30.PHONY: third_party_libphonenumber_libphonenumber_without_metadata_gyp_rule_trigger
31third_party_libphonenumber_libphonenumber_without_metadata_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py
32
33$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py: gyp_local_path := $(LOCAL_PATH)
34$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
35$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
36$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
37$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py: $(LOCAL_PATH)/third_party/libphonenumber/src/resources/phonenumber.proto $(LOCAL_PATH)/tools/protoc_wrapper/protoc_wrapper.py $(gyp_shared_intermediate_dir)/protoc $(GYP_TARGET_DEPENDENCIES)
38	mkdir -p $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers; cd $(gyp_local_path)/third_party/libphonenumber; python ../../tools/protoc_wrapper/protoc_wrapper.py --include "" --protobuf "$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.h" --proto-in-dir src/resources --proto-in-file "phonenumber$(suffix $<)" "--use-system-protobuf=0" -- "$(gyp_shared_intermediate_dir)/protoc" --cpp_out "$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers" --python_out "$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers"
39
40$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.cc: $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py ;
41$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.h: $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py ;
42.PHONY: third_party_libphonenumber_libphonenumber_without_metadata_gyp_rule_trigger
43third_party_libphonenumber_libphonenumber_without_metadata_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py
44
45### Finished generating for all rules
46
47GYP_GENERATED_OUTPUTS := \
48	$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py \
49	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.cc \
50	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h \
51	$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py \
52	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.cc \
53	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.h
54
55# Make sure our deps and generated files are built first.
56LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
57
58LOCAL_CPP_EXTENSION := .cc
59$(gyp_intermediate_dir)/phonemetadata.pb.cc: $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.cc
60	mkdir -p $(@D); cp $< $@
61$(gyp_intermediate_dir)/phonenumber.pb.cc: $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.cc
62	mkdir -p $(@D); cp $< $@
63LOCAL_GENERATED_SOURCES := \
64	$(gyp_intermediate_dir)/phonemetadata.pb.cc \
65	$(gyp_intermediate_dir)/phonenumber.pb.cc \
66	$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonemetadata_pb2.py \
67	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h \
68	$(gyp_shared_intermediate_dir)/pyproto/third_party/libphonenumber/phonenumbers/phonenumber_pb2.py \
69	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.h \
70	third_party_libphonenumber_libphonenumber_without_metadata_gyp_rule_trigger
71
72GYP_COPIED_SOURCE_ORIGIN_DIRS := \
73	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers
74
75LOCAL_SRC_FILES := \
76	third_party/libphonenumber/src/phonenumbers/asyoutypeformatter.cc \
77	third_party/libphonenumber/src/phonenumbers/base/strings/string_piece.cc \
78	third_party/libphonenumber/src/phonenumbers/default_logger.cc \
79	third_party/libphonenumber/src/phonenumbers/logger.cc \
80	third_party/libphonenumber/src/phonenumbers/phonenumber.cc \
81	third_party/libphonenumber/src/phonenumbers/phonenumbermatch.cc \
82	third_party/libphonenumber/src/phonenumbers/phonenumbermatcher.cc \
83	third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc \
84	third_party/libphonenumber/src/phonenumbers/regexp_adapter_icu.cc \
85	third_party/libphonenumber/src/phonenumbers/regexp_cache.cc \
86	third_party/libphonenumber/src/phonenumbers/string_byte_sink.cc \
87	third_party/libphonenumber/src/phonenumbers/stringutil.cc \
88	third_party/libphonenumber/src/phonenumbers/unicodestring.cc \
89	third_party/libphonenumber/src/phonenumbers/utf/rune.c \
90	third_party/libphonenumber/src/phonenumbers/utf/unicodetext.cc \
91	third_party/libphonenumber/src/phonenumbers/utf/unilib.cc
92
93
94# Flags passed to both C and C++ files.
95MY_CFLAGS_Debug := \
96	-fstack-protector \
97	--param=ssp-buffer-size=4 \
98	-fno-exceptions \
99	-fno-strict-aliasing \
100	-Wno-unused-parameter \
101	-Wno-missing-field-initializers \
102	-fvisibility=hidden \
103	-pipe \
104	-fPIC \
105	-Wno-format \
106	-fno-tree-sra \
107	-fuse-ld=gold \
108	-Wno-psabi \
109	-ffunction-sections \
110	-funwind-tables \
111	-g \
112	-fstack-protector \
113	-fno-short-enums \
114	-finline-limit=64 \
115	-Wa,--noexecstack \
116	-U_FORTIFY_SOURCE \
117	-Wno-extra \
118	-Wno-ignored-qualifiers \
119	-Wno-type-limits \
120	-Wno-address \
121	-Wno-format-security \
122	-Wno-return-type \
123	-Wno-sequence-point \
124	-Os \
125	-g \
126	-fomit-frame-pointer \
127	-fdata-sections \
128	-ffunction-sections
129
130MY_DEFS_Debug := \
131	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
132	'-DANGLE_DX11' \
133	'-D_FILE_OFFSET_BITS=64' \
134	'-DNO_TCMALLOC' \
135	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
136	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
137	'-DDISABLE_NACL' \
138	'-DCHROMIUM_BUILD' \
139	'-DUSE_LIBJPEG_TURBO=1' \
140	'-DUSE_PROPRIETARY_CODECS' \
141	'-DENABLE_CONFIGURATION_POLICY' \
142	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
143	'-DTRACING_IS_OFFICIAL_BUILD=1' \
144	'-DENABLE_GPU=1' \
145	'-DUSE_OPENSSL=1' \
146	'-DENABLE_EGLIMAGE=1' \
147	'-DENABLE_PRINTING=1' \
148	'-DU_USING_ICU_NAMESPACE=0' \
149	'-DPROTOBUF_USE_DLLS' \
150	'-DGOOGLE_PROTOBUF_NO_RTTI' \
151	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
152	'-DANDROID' \
153	'-D__GNU_SOURCE=1' \
154	'-DUSE_STLPORT=1' \
155	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
156	'-DCHROME_BUILD_ID=""' \
157	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
158	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
159	'-D_DEBUG'
160
161
162# Include paths placed before CFLAGS/CPPFLAGS
163LOCAL_C_INCLUDES_Debug := \
164	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
165	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
166	$(LOCAL_PATH)/third_party/libphonenumber/src \
167	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
168	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
169	$(gyp_shared_intermediate_dir)/protoc_out \
170	$(LOCAL_PATH) \
171	$(PWD)/external/icu4c/common \
172	$(PWD)/external/icu4c/i18n \
173	$(LOCAL_PATH)/third_party/protobuf \
174	$(LOCAL_PATH)/third_party/protobuf/src \
175	$(PWD)/frameworks/wilhelm/include \
176	$(PWD)/bionic \
177	$(PWD)/external/stlport/stlport
178
179
180# Flags passed to only C++ (and not C) files.
181LOCAL_CPPFLAGS_Debug := \
182	-fno-rtti \
183	-fno-threadsafe-statics \
184	-fvisibility-inlines-hidden \
185	-Wno-deprecated \
186	-Wno-abi \
187	-Wno-error=c++0x-compat \
188	-Wno-non-virtual-dtor \
189	-Wno-sign-promo \
190	-Wno-non-virtual-dtor
191
192
193# Flags passed to both C and C++ files.
194MY_CFLAGS_Release := \
195	-fstack-protector \
196	--param=ssp-buffer-size=4 \
197	-fno-exceptions \
198	-fno-strict-aliasing \
199	-Wno-unused-parameter \
200	-Wno-missing-field-initializers \
201	-fvisibility=hidden \
202	-pipe \
203	-fPIC \
204	-Wno-format \
205	-fno-tree-sra \
206	-fuse-ld=gold \
207	-Wno-psabi \
208	-ffunction-sections \
209	-funwind-tables \
210	-g \
211	-fstack-protector \
212	-fno-short-enums \
213	-finline-limit=64 \
214	-Wa,--noexecstack \
215	-U_FORTIFY_SOURCE \
216	-Wno-extra \
217	-Wno-ignored-qualifiers \
218	-Wno-type-limits \
219	-Wno-address \
220	-Wno-format-security \
221	-Wno-return-type \
222	-Wno-sequence-point \
223	-Os \
224	-fno-ident \
225	-fdata-sections \
226	-ffunction-sections \
227	-fomit-frame-pointer
228
229MY_DEFS_Release := \
230	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
231	'-DANGLE_DX11' \
232	'-D_FILE_OFFSET_BITS=64' \
233	'-DNO_TCMALLOC' \
234	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
235	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
236	'-DDISABLE_NACL' \
237	'-DCHROMIUM_BUILD' \
238	'-DUSE_LIBJPEG_TURBO=1' \
239	'-DUSE_PROPRIETARY_CODECS' \
240	'-DENABLE_CONFIGURATION_POLICY' \
241	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
242	'-DTRACING_IS_OFFICIAL_BUILD=1' \
243	'-DENABLE_GPU=1' \
244	'-DUSE_OPENSSL=1' \
245	'-DENABLE_EGLIMAGE=1' \
246	'-DENABLE_PRINTING=1' \
247	'-DU_USING_ICU_NAMESPACE=0' \
248	'-DPROTOBUF_USE_DLLS' \
249	'-DGOOGLE_PROTOBUF_NO_RTTI' \
250	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
251	'-DANDROID' \
252	'-D__GNU_SOURCE=1' \
253	'-DUSE_STLPORT=1' \
254	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
255	'-DCHROME_BUILD_ID=""' \
256	'-DNDEBUG' \
257	'-DNVALGRIND' \
258	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
259
260
261# Include paths placed before CFLAGS/CPPFLAGS
262LOCAL_C_INCLUDES_Release := \
263	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
264	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
265	$(LOCAL_PATH)/third_party/libphonenumber/src \
266	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
267	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
268	$(gyp_shared_intermediate_dir)/protoc_out \
269	$(LOCAL_PATH) \
270	$(PWD)/external/icu4c/common \
271	$(PWD)/external/icu4c/i18n \
272	$(LOCAL_PATH)/third_party/protobuf \
273	$(LOCAL_PATH)/third_party/protobuf/src \
274	$(PWD)/frameworks/wilhelm/include \
275	$(PWD)/bionic \
276	$(PWD)/external/stlport/stlport
277
278
279# Flags passed to only C++ (and not C) files.
280LOCAL_CPPFLAGS_Release := \
281	-fno-rtti \
282	-fno-threadsafe-statics \
283	-fvisibility-inlines-hidden \
284	-Wno-deprecated \
285	-Wno-abi \
286	-Wno-error=c++0x-compat \
287	-Wno-non-virtual-dtor \
288	-Wno-sign-promo \
289	-Wno-non-virtual-dtor
290
291
292LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
293LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
294LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
295### Rules for final target.
296
297LOCAL_LDFLAGS_Debug := \
298	-Wl,-z,now \
299	-Wl,-z,relro \
300	-Wl,-z,noexecstack \
301	-fPIC \
302	-Wl,-z,relro \
303	-Wl,-z,now \
304	-fuse-ld=gold \
305	-nostdlib \
306	-Wl,--no-undefined \
307	-Wl,--exclude-libs=ALL \
308	-Wl,--icf=safe \
309	-Wl,--fatal-warnings \
310	-Wl,--gc-sections \
311	-Wl,--warn-shared-textrel \
312	-Wl,-O1 \
313	-Wl,--as-needed
314
315
316LOCAL_LDFLAGS_Release := \
317	-Wl,-z,now \
318	-Wl,-z,relro \
319	-Wl,-z,noexecstack \
320	-fPIC \
321	-Wl,-z,relro \
322	-Wl,-z,now \
323	-fuse-ld=gold \
324	-nostdlib \
325	-Wl,--no-undefined \
326	-Wl,--exclude-libs=ALL \
327	-Wl,--icf=safe \
328	-Wl,-O1 \
329	-Wl,--as-needed \
330	-Wl,--gc-sections \
331	-Wl,--fatal-warnings \
332	-Wl,--warn-shared-textrel
333
334
335LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
336
337LOCAL_STATIC_LIBRARIES :=
338
339# Enable grouping to fix circular references
340LOCAL_GROUP_STATIC_LIBRARIES := true
341
342LOCAL_SHARED_LIBRARIES := \
343	libstlport \
344	libdl
345
346# Add target alias to "gyp_all_modules" target.
347.PHONY: gyp_all_modules
348gyp_all_modules: third_party_libphonenumber_libphonenumber_without_metadata_gyp
349
350# Alias gyp target name.
351.PHONY: libphonenumber_without_metadata
352libphonenumber_without_metadata: third_party_libphonenumber_libphonenumber_without_metadata_gyp
353
354include $(BUILD_STATIC_LIBRARY)
355