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 -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 130 MY_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 163 LOCAL_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. 181 LOCAL_CPPFLAGS_Debug := \ 182 -fno-rtti \ 183 -fno-threadsafe-statics \ 184 -fvisibility-inlines-hidden \ 185 -Wno-deprecated \ 186 -Wno-uninitialized \ 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. 194 MY_CFLAGS_Release := \ 195 -fstack-protector \ 196 --param=ssp-buffer-size=4 \ 197 \ 198 -fno-exceptions \ 199 -fno-strict-aliasing \ 200 -Wno-unused-parameter \ 201 -Wno-missing-field-initializers \ 202 -fvisibility=hidden \ 203 -pipe \ 204 -fPIC \ 205 -Wno-format \ 206 -EL \ 207 -mhard-float \ 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 229 MY_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 262 LOCAL_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. 280 LOCAL_CPPFLAGS_Release := \ 281 -fno-rtti \ 282 -fno-threadsafe-statics \ 283 -fvisibility-inlines-hidden \ 284 -Wno-deprecated \ 285 -Wno-uninitialized \ 286 -Wno-error=c++0x-compat \ 287 -Wno-non-virtual-dtor \ 288 -Wno-sign-promo \ 289 -Wno-non-virtual-dtor 290 291 292 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 293 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 294 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 295 ### Rules for final target. 296 297 LOCAL_LDFLAGS_Debug := \ 298 -Wl,-z,now \ 299 -Wl,-z,relro \ 300 -Wl,-z,noexecstack \ 301 -fPIC \ 302 -EL \ 303 -Wl,--no-keep-memory \ 304 -nostdlib \ 305 -Wl,--no-undefined \ 306 -Wl,--exclude-libs=ALL \ 307 -Wl,--fatal-warnings \ 308 -Wl,--gc-sections \ 309 -Wl,--warn-shared-textrel \ 310 -Wl,-O1 \ 311 -Wl,--as-needed 312 313 314 LOCAL_LDFLAGS_Release := \ 315 -Wl,-z,now \ 316 -Wl,-z,relro \ 317 -Wl,-z,noexecstack \ 318 -fPIC \ 319 -EL \ 320 -Wl,--no-keep-memory \ 321 -nostdlib \ 322 -Wl,--no-undefined \ 323 -Wl,--exclude-libs=ALL \ 324 -Wl,-O1 \ 325 -Wl,--as-needed \ 326 -Wl,--gc-sections \ 327 -Wl,--fatal-warnings \ 328 -Wl,--warn-shared-textrel 329 330 331 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 332 333 LOCAL_STATIC_LIBRARIES := 334 335 # Enable grouping to fix circular references 336 LOCAL_GROUP_STATIC_LIBRARIES := true 337 338 LOCAL_SHARED_LIBRARIES := \ 339 libstlport \ 340 libdl 341 342 # Add target alias to "gyp_all_modules" target. 343 .PHONY: gyp_all_modules 344 gyp_all_modules: third_party_libphonenumber_libphonenumber_without_metadata_gyp 345 346 # Alias gyp target name. 347 .PHONY: libphonenumber_without_metadata 348 libphonenumber_without_metadata: third_party_libphonenumber_libphonenumber_without_metadata_gyp 349 350 include $(BUILD_STATIC_LIBRARY) 351