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