1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_libphonenumber_libphonenumber_without_metadata_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_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 31 third_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 43 third_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 47 GYP_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. 56 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 57 58 LOCAL_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 $< $@ 63 LOCAL_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 72 GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 73 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber/phonenumbers 74 75 LOCAL_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. 95 MY_CFLAGS_Debug := \ 96 --param=ssp-buffer-size=4 \ 97 -fno-exceptions \ 98 -fno-strict-aliasing \ 99 -Wno-unused-parameter \ 100 -Wno-missing-field-initializers \ 101 -fvisibility=hidden \ 102 -pipe \ 103 -fPIC \ 104 -Wno-format \ 105 -m32 \ 106 -mmmx \ 107 -march=pentium4 \ 108 -msse2 \ 109 -mfpmath=sse \ 110 -fuse-ld=gold \ 111 -ffunction-sections \ 112 -funwind-tables \ 113 -g \ 114 -fno-short-enums \ 115 -finline-limit=64 \ 116 -Wa,--noexecstack \ 117 -U_FORTIFY_SOURCE \ 118 -Wno-extra \ 119 -Wno-ignored-qualifiers \ 120 -Wno-type-limits \ 121 -fno-stack-protector \ 122 -Wno-address \ 123 -Wno-format-security \ 124 -Wno-return-type \ 125 -Wno-sequence-point \ 126 -Os \ 127 -g \ 128 -fomit-frame-pointer \ 129 -fdata-sections \ 130 -ffunction-sections 131 132 MY_DEFS_Debug := \ 133 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 134 '-DV8_DEPRECATION_WARNINGS' \ 135 '-D_FILE_OFFSET_BITS=64' \ 136 '-DNO_TCMALLOC' \ 137 '-DDISABLE_NACL' \ 138 '-DCHROMIUM_BUILD' \ 139 '-DUSE_LIBJPEG_TURBO=1' \ 140 '-DUSE_PROPRIETARY_CODECS' \ 141 '-DENABLE_CONFIGURATION_POLICY' \ 142 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 143 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 144 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 145 '-DUSE_OPENSSL=1' \ 146 '-DENABLE_EGLIMAGE=1' \ 147 '-DCLD_VERSION=1' \ 148 '-DENABLE_PRINTING=1' \ 149 '-DENABLE_MANAGED_USERS=1' \ 150 '-DU_USING_ICU_NAMESPACE=0' \ 151 '-DPROTOBUF_USE_DLLS' \ 152 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 153 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 154 '-DANDROID' \ 155 '-D__GNU_SOURCE=1' \ 156 '-DUSE_STLPORT=1' \ 157 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 158 '-DCHROME_BUILD_ID=""' \ 159 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 160 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 161 '-D_DEBUG' 162 163 164 # Include paths placed before CFLAGS/CPPFLAGS 165 LOCAL_C_INCLUDES_Debug := \ 166 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 167 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 168 $(LOCAL_PATH)/third_party/libphonenumber/src \ 169 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 170 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 171 $(gyp_shared_intermediate_dir)/protoc_out \ 172 $(LOCAL_PATH) \ 173 $(PWD)/external/icu4c/common \ 174 $(PWD)/external/icu4c/i18n \ 175 $(LOCAL_PATH)/third_party/protobuf \ 176 $(LOCAL_PATH)/third_party/protobuf/src \ 177 $(PWD)/frameworks/wilhelm/include \ 178 $(PWD)/bionic \ 179 $(PWD)/external/stlport/stlport 180 181 182 # Flags passed to only C++ (and not C) files. 183 LOCAL_CPPFLAGS_Debug := \ 184 -fno-rtti \ 185 -fno-threadsafe-statics \ 186 -fvisibility-inlines-hidden \ 187 -Wno-deprecated \ 188 -Wno-error=c++0x-compat \ 189 -Wno-non-virtual-dtor \ 190 -Wno-sign-promo \ 191 -Wno-non-virtual-dtor 192 193 194 # Flags passed to both C and C++ files. 195 MY_CFLAGS_Release := \ 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 -m32 \ 206 -mmmx \ 207 -march=pentium4 \ 208 -msse2 \ 209 -mfpmath=sse \ 210 -fuse-ld=gold \ 211 -ffunction-sections \ 212 -funwind-tables \ 213 -g \ 214 -fno-short-enums \ 215 -finline-limit=64 \ 216 -Wa,--noexecstack \ 217 -U_FORTIFY_SOURCE \ 218 -Wno-extra \ 219 -Wno-ignored-qualifiers \ 220 -Wno-type-limits \ 221 -fno-stack-protector \ 222 -Wno-address \ 223 -Wno-format-security \ 224 -Wno-return-type \ 225 -Wno-sequence-point \ 226 -Os \ 227 -fno-ident \ 228 -fdata-sections \ 229 -ffunction-sections \ 230 -fomit-frame-pointer \ 231 -fno-unwind-tables \ 232 -fno-asynchronous-unwind-tables 233 234 MY_DEFS_Release := \ 235 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 236 '-DV8_DEPRECATION_WARNINGS' \ 237 '-D_FILE_OFFSET_BITS=64' \ 238 '-DNO_TCMALLOC' \ 239 '-DDISABLE_NACL' \ 240 '-DCHROMIUM_BUILD' \ 241 '-DUSE_LIBJPEG_TURBO=1' \ 242 '-DUSE_PROPRIETARY_CODECS' \ 243 '-DENABLE_CONFIGURATION_POLICY' \ 244 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 245 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 246 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 247 '-DUSE_OPENSSL=1' \ 248 '-DENABLE_EGLIMAGE=1' \ 249 '-DCLD_VERSION=1' \ 250 '-DENABLE_PRINTING=1' \ 251 '-DENABLE_MANAGED_USERS=1' \ 252 '-DU_USING_ICU_NAMESPACE=0' \ 253 '-DPROTOBUF_USE_DLLS' \ 254 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 255 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 256 '-DANDROID' \ 257 '-D__GNU_SOURCE=1' \ 258 '-DUSE_STLPORT=1' \ 259 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 260 '-DCHROME_BUILD_ID=""' \ 261 '-DNDEBUG' \ 262 '-DNVALGRIND' \ 263 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 264 265 266 # Include paths placed before CFLAGS/CPPFLAGS 267 LOCAL_C_INCLUDES_Release := \ 268 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 269 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 270 $(LOCAL_PATH)/third_party/libphonenumber/src \ 271 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 272 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 273 $(gyp_shared_intermediate_dir)/protoc_out \ 274 $(LOCAL_PATH) \ 275 $(PWD)/external/icu4c/common \ 276 $(PWD)/external/icu4c/i18n \ 277 $(LOCAL_PATH)/third_party/protobuf \ 278 $(LOCAL_PATH)/third_party/protobuf/src \ 279 $(PWD)/frameworks/wilhelm/include \ 280 $(PWD)/bionic \ 281 $(PWD)/external/stlport/stlport 282 283 284 # Flags passed to only C++ (and not C) files. 285 LOCAL_CPPFLAGS_Release := \ 286 -fno-rtti \ 287 -fno-threadsafe-statics \ 288 -fvisibility-inlines-hidden \ 289 -Wno-deprecated \ 290 -Wno-error=c++0x-compat \ 291 -Wno-non-virtual-dtor \ 292 -Wno-sign-promo \ 293 -Wno-non-virtual-dtor 294 295 296 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 297 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 298 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 299 ### Rules for final target. 300 301 LOCAL_LDFLAGS_Debug := \ 302 -Wl,-z,now \ 303 -Wl,-z,relro \ 304 -Wl,-z,noexecstack \ 305 -fPIC \ 306 -m32 \ 307 -fuse-ld=gold \ 308 -nostdlib \ 309 -Wl,--no-undefined \ 310 -Wl,--exclude-libs=ALL \ 311 -Wl,--fatal-warnings \ 312 -Wl,--gc-sections \ 313 -Wl,--warn-shared-textrel \ 314 -Wl,-O1 \ 315 -Wl,--as-needed 316 317 318 LOCAL_LDFLAGS_Release := \ 319 -Wl,-z,now \ 320 -Wl,-z,relro \ 321 -Wl,-z,noexecstack \ 322 -fPIC \ 323 -m32 \ 324 -fuse-ld=gold \ 325 -nostdlib \ 326 -Wl,--no-undefined \ 327 -Wl,--exclude-libs=ALL \ 328 -Wl,-O1 \ 329 -Wl,--as-needed \ 330 -Wl,--gc-sections \ 331 -Wl,--fatal-warnings \ 332 -Wl,--warn-shared-textrel 333 334 335 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 336 337 LOCAL_STATIC_LIBRARIES := 338 339 # Enable grouping to fix circular references 340 LOCAL_GROUP_STATIC_LIBRARIES := true 341 342 LOCAL_SHARED_LIBRARIES := \ 343 libstlport \ 344 libdl 345 346 # Add target alias to "gyp_all_modules" target. 347 .PHONY: gyp_all_modules 348 gyp_all_modules: third_party_libphonenumber_libphonenumber_without_metadata_gyp 349 350 # Alias gyp target name. 351 .PHONY: libphonenumber_without_metadata 352 libphonenumber_without_metadata: third_party_libphonenumber_libphonenumber_without_metadata_gyp 353 354 include $(BUILD_STATIC_LIBRARY) 355