libphonenumber_without_metadata.target.linux-arm.mk revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
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	'-DUSE_LINUX_BREAKPAD' \
135	'-DNO_TCMALLOC' \
136	'-DDISABLE_NACL' \
137	'-DCHROMIUM_BUILD' \
138	'-DUSE_LIBJPEG_TURBO=1' \
139	'-DUSE_PROPRIETARY_CODECS' \
140	'-DENABLE_GPU=1' \
141	'-DUSE_OPENSSL=1' \
142	'-DENABLE_EGLIMAGE=1' \
143	'-DENABLE_LANGUAGE_DETECTION=1' \
144	'-DU_USING_ICU_NAMESPACE=0' \
145	'-DPROTOBUF_USE_DLLS' \
146	'-DGOOGLE_PROTOBUF_NO_RTTI' \
147	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
148	'-DANDROID' \
149	'-D__GNU_SOURCE=1' \
150	'-DUSE_STLPORT=1' \
151	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
152	'-DCHROME_BUILD_ID=""' \
153	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
154	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
155	'-D_DEBUG'
156
157
158# Include paths placed before CFLAGS/CPPFLAGS
159LOCAL_C_INCLUDES_Debug := \
160	$(LOCAL_PATH)/third_party/libphonenumber/src \
161	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
162	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
163	$(gyp_shared_intermediate_dir)/protoc_out \
164	$(LOCAL_PATH) \
165	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
166	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
167	$(PWD)/external/icu4c/common \
168	$(PWD)/external/icu4c/i18n \
169	$(LOCAL_PATH)/third_party/protobuf \
170	$(LOCAL_PATH)/third_party/protobuf/src \
171	$(PWD)/frameworks/wilhelm/include \
172	$(PWD)/bionic \
173	$(PWD)/external/stlport/stlport
174
175
176# Flags passed to only C++ (and not C) files.
177LOCAL_CPPFLAGS_Debug := \
178	-fno-rtti \
179	-fno-threadsafe-statics \
180	-fvisibility-inlines-hidden \
181	-Wno-deprecated \
182	-Wno-abi \
183	-Wno-error=c++0x-compat \
184	-Wno-non-virtual-dtor \
185	-Wno-sign-promo \
186	-Wno-non-virtual-dtor
187
188
189# Flags passed to both C and C++ files.
190MY_CFLAGS_Release := \
191	-fstack-protector \
192	--param=ssp-buffer-size=4 \
193	-fno-exceptions \
194	-fno-strict-aliasing \
195	-Wno-unused-parameter \
196	-Wno-missing-field-initializers \
197	-fvisibility=hidden \
198	-pipe \
199	-fPIC \
200	-Wno-format \
201	-fno-tree-sra \
202	-fuse-ld=gold \
203	-Wno-psabi \
204	-ffunction-sections \
205	-funwind-tables \
206	-g \
207	-fstack-protector \
208	-fno-short-enums \
209	-finline-limit=64 \
210	-Wa,--noexecstack \
211	-U_FORTIFY_SOURCE \
212	-Wno-extra \
213	-Wno-ignored-qualifiers \
214	-Wno-type-limits \
215	-Wno-address \
216	-Wno-format-security \
217	-Wno-return-type \
218	-Wno-sequence-point \
219	-Os \
220	-fno-ident \
221	-fdata-sections \
222	-ffunction-sections \
223	-fomit-frame-pointer
224
225MY_DEFS_Release := \
226	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
227	'-DANGLE_DX11' \
228	'-D_FILE_OFFSET_BITS=64' \
229	'-DUSE_LINUX_BREAKPAD' \
230	'-DNO_TCMALLOC' \
231	'-DDISABLE_NACL' \
232	'-DCHROMIUM_BUILD' \
233	'-DUSE_LIBJPEG_TURBO=1' \
234	'-DUSE_PROPRIETARY_CODECS' \
235	'-DENABLE_GPU=1' \
236	'-DUSE_OPENSSL=1' \
237	'-DENABLE_EGLIMAGE=1' \
238	'-DENABLE_LANGUAGE_DETECTION=1' \
239	'-DU_USING_ICU_NAMESPACE=0' \
240	'-DPROTOBUF_USE_DLLS' \
241	'-DGOOGLE_PROTOBUF_NO_RTTI' \
242	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
243	'-DANDROID' \
244	'-D__GNU_SOURCE=1' \
245	'-DUSE_STLPORT=1' \
246	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
247	'-DCHROME_BUILD_ID=""' \
248	'-DNDEBUG' \
249	'-DNVALGRIND' \
250	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
251
252
253# Include paths placed before CFLAGS/CPPFLAGS
254LOCAL_C_INCLUDES_Release := \
255	$(LOCAL_PATH)/third_party/libphonenumber/src \
256	$(LOCAL_PATH)/third_party/libphonenumber/src/test \
257	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
258	$(gyp_shared_intermediate_dir)/protoc_out \
259	$(LOCAL_PATH) \
260	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
261	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
262	$(PWD)/external/icu4c/common \
263	$(PWD)/external/icu4c/i18n \
264	$(LOCAL_PATH)/third_party/protobuf \
265	$(LOCAL_PATH)/third_party/protobuf/src \
266	$(PWD)/frameworks/wilhelm/include \
267	$(PWD)/bionic \
268	$(PWD)/external/stlport/stlport
269
270
271# Flags passed to only C++ (and not C) files.
272LOCAL_CPPFLAGS_Release := \
273	-fno-rtti \
274	-fno-threadsafe-statics \
275	-fvisibility-inlines-hidden \
276	-Wno-deprecated \
277	-Wno-abi \
278	-Wno-error=c++0x-compat \
279	-Wno-non-virtual-dtor \
280	-Wno-sign-promo \
281	-Wno-non-virtual-dtor
282
283
284LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
285LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
286LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
287### Rules for final target.
288
289LOCAL_LDFLAGS_Debug := \
290	-Wl,-z,now \
291	-Wl,-z,relro \
292	-Wl,-z,noexecstack \
293	-fPIC \
294	-Wl,-z,relro \
295	-Wl,-z,now \
296	-fuse-ld=gold \
297	-nostdlib \
298	-Wl,--no-undefined \
299	-Wl,--exclude-libs=ALL \
300	-Wl,--icf=safe \
301	-Wl,--gc-sections \
302	-Wl,-O1 \
303	-Wl,--as-needed
304
305
306LOCAL_LDFLAGS_Release := \
307	-Wl,-z,now \
308	-Wl,-z,relro \
309	-Wl,-z,noexecstack \
310	-fPIC \
311	-Wl,-z,relro \
312	-Wl,-z,now \
313	-fuse-ld=gold \
314	-nostdlib \
315	-Wl,--no-undefined \
316	-Wl,--exclude-libs=ALL \
317	-Wl,--icf=safe \
318	-Wl,-O1 \
319	-Wl,--as-needed \
320	-Wl,--gc-sections
321
322
323LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
324
325LOCAL_STATIC_LIBRARIES :=
326
327# Enable grouping to fix circular references
328LOCAL_GROUP_STATIC_LIBRARIES := true
329
330LOCAL_SHARED_LIBRARIES := \
331	libstlport \
332	libdl
333
334# Add target alias to "gyp_all_modules" target.
335.PHONY: gyp_all_modules
336gyp_all_modules: third_party_libphonenumber_libphonenumber_without_metadata_gyp
337
338# Alias gyp target name.
339.PHONY: libphonenumber_without_metadata
340libphonenumber_without_metadata: third_party_libphonenumber_libphonenumber_without_metadata_gyp
341
342include $(BUILD_STATIC_LIBRARY)
343