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_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_libphonenumber_libphonenumber_without_metadata_gyp,,,$(GYP_VAR_PREFIX))/third_party_libphonenumber_libphonenumber_without_metadata_gyp.a 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/libphonenumber/src/phonenumbers/lite_metadata.cc 28 29 30# Flags passed to both C and C++ files. 31MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-unused-local-typedefs \ 41 -Wno-format \ 42 -fno-tree-sra \ 43 -fno-caller-saves \ 44 -Wno-psabi \ 45 -fno-partial-inlining \ 46 -fno-early-inlining \ 47 -fno-tree-copy-prop \ 48 -fno-tree-loop-optimize \ 49 -fno-move-loop-invariants \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fstack-protector \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -Wno-unused-but-set-variable \ 62 -Wno-address \ 63 -Wno-format-security \ 64 -Wno-return-type \ 65 -Wno-sequence-point \ 66 -Os \ 67 -g \ 68 -gdwarf-4 \ 69 -fdata-sections \ 70 -ffunction-sections \ 71 -fomit-frame-pointer \ 72 -funwind-tables 73 74MY_DEFS_Debug := \ 75 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DENABLE_WEBRTC=1' \ 83 '-DUSE_PROPRIETARY_CODECS' \ 84 '-DENABLE_BROWSER_CDMS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 87 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 93 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 94 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 95 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 96 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 97 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 98 '-DVIDEO_HOLE=1' \ 99 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 100 '-DPROTOBUF_USE_DLLS' \ 101 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 102 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 103 '-DUSE_OPENSSL=1' \ 104 '-DUSE_OPENSSL_CERTS=1' \ 105 '-DANDROID' \ 106 '-D__GNU_SOURCE=1' \ 107 '-DUSE_STLPORT=1' \ 108 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 109 '-DCHROME_BUILD_ID=""' \ 110 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 111 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 112 '-D_DEBUG' 113 114 115# Include paths placed before CFLAGS/CPPFLAGS 116LOCAL_C_INCLUDES_Debug := \ 117 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 118 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 119 $(LOCAL_PATH)/third_party/libphonenumber/src \ 120 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 121 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 122 $(gyp_shared_intermediate_dir) \ 123 $(gyp_shared_intermediate_dir)/protoc_out \ 124 $(LOCAL_PATH) \ 125 $(LOCAL_PATH)/third_party/protobuf \ 126 $(LOCAL_PATH)/third_party/protobuf/src \ 127 $(PWD)/frameworks/wilhelm/include \ 128 $(PWD)/bionic \ 129 $(PWD)/external/stlport/stlport 130 131 132# Flags passed to only C++ (and not C) files. 133LOCAL_CPPFLAGS_Debug := \ 134 -fno-exceptions \ 135 -fno-rtti \ 136 -fno-threadsafe-statics \ 137 -fvisibility-inlines-hidden \ 138 -Wno-deprecated \ 139 -Wno-abi \ 140 -std=gnu++11 \ 141 -Wno-narrowing \ 142 -Wno-literal-suffix \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo \ 145 -Wno-non-virtual-dtor 146 147 148# Flags passed to both C and C++ files. 149MY_CFLAGS_Release := \ 150 -fstack-protector \ 151 --param=ssp-buffer-size=4 \ 152 -fno-strict-aliasing \ 153 -Wno-unused-parameter \ 154 -Wno-missing-field-initializers \ 155 -fvisibility=hidden \ 156 -pipe \ 157 -fPIC \ 158 -Wno-unused-local-typedefs \ 159 -Wno-format \ 160 -fno-tree-sra \ 161 -fno-caller-saves \ 162 -Wno-psabi \ 163 -fno-partial-inlining \ 164 -fno-early-inlining \ 165 -fno-tree-copy-prop \ 166 -fno-tree-loop-optimize \ 167 -fno-move-loop-invariants \ 168 -ffunction-sections \ 169 -funwind-tables \ 170 -g \ 171 -fstack-protector \ 172 -fno-short-enums \ 173 -finline-limit=64 \ 174 -Wa,--noexecstack \ 175 -U_FORTIFY_SOURCE \ 176 -Wno-extra \ 177 -Wno-ignored-qualifiers \ 178 -Wno-type-limits \ 179 -Wno-unused-but-set-variable \ 180 -Wno-address \ 181 -Wno-format-security \ 182 -Wno-return-type \ 183 -Wno-sequence-point \ 184 -Os \ 185 -fno-ident \ 186 -fdata-sections \ 187 -ffunction-sections \ 188 -fomit-frame-pointer \ 189 -funwind-tables 190 191MY_DEFS_Release := \ 192 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 193 '-DV8_DEPRECATION_WARNINGS' \ 194 '-D_FILE_OFFSET_BITS=64' \ 195 '-DNO_TCMALLOC' \ 196 '-DDISABLE_NACL' \ 197 '-DCHROMIUM_BUILD' \ 198 '-DUSE_LIBJPEG_TURBO=1' \ 199 '-DENABLE_WEBRTC=1' \ 200 '-DUSE_PROPRIETARY_CODECS' \ 201 '-DENABLE_BROWSER_CDMS' \ 202 '-DENABLE_CONFIGURATION_POLICY' \ 203 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 204 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 205 '-DENABLE_EGLIMAGE=1' \ 206 '-DCLD_VERSION=1' \ 207 '-DENABLE_PRINTING=1' \ 208 '-DENABLE_MANAGED_USERS=1' \ 209 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 210 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 211 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 212 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 213 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 214 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 215 '-DVIDEO_HOLE=1' \ 216 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 217 '-DPROTOBUF_USE_DLLS' \ 218 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 219 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 220 '-DUSE_OPENSSL=1' \ 221 '-DUSE_OPENSSL_CERTS=1' \ 222 '-DANDROID' \ 223 '-D__GNU_SOURCE=1' \ 224 '-DUSE_STLPORT=1' \ 225 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 226 '-DCHROME_BUILD_ID=""' \ 227 '-DNDEBUG' \ 228 '-DNVALGRIND' \ 229 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 230 231 232# Include paths placed before CFLAGS/CPPFLAGS 233LOCAL_C_INCLUDES_Release := \ 234 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 235 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 236 $(LOCAL_PATH)/third_party/libphonenumber/src \ 237 $(LOCAL_PATH)/third_party/libphonenumber/src/test \ 238 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 239 $(gyp_shared_intermediate_dir) \ 240 $(gyp_shared_intermediate_dir)/protoc_out \ 241 $(LOCAL_PATH) \ 242 $(LOCAL_PATH)/third_party/protobuf \ 243 $(LOCAL_PATH)/third_party/protobuf/src \ 244 $(PWD)/frameworks/wilhelm/include \ 245 $(PWD)/bionic \ 246 $(PWD)/external/stlport/stlport 247 248 249# Flags passed to only C++ (and not C) files. 250LOCAL_CPPFLAGS_Release := \ 251 -fno-exceptions \ 252 -fno-rtti \ 253 -fno-threadsafe-statics \ 254 -fvisibility-inlines-hidden \ 255 -Wno-deprecated \ 256 -Wno-abi \ 257 -std=gnu++11 \ 258 -Wno-narrowing \ 259 -Wno-literal-suffix \ 260 -Wno-non-virtual-dtor \ 261 -Wno-sign-promo \ 262 -Wno-non-virtual-dtor 263 264 265LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 266LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 267LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 268LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 269### Rules for final target. 270 271LOCAL_SHARED_LIBRARIES := \ 272 libstlport \ 273 libdl 274 275# Add target alias to "gyp_all_modules" target. 276.PHONY: gyp_all_modules 277gyp_all_modules: third_party_libphonenumber_libphonenumber_gyp 278 279# Alias gyp target name. 280.PHONY: libphonenumber 281libphonenumber: third_party_libphonenumber_libphonenumber_gyp 282 283include $(BUILD_STATIC_LIBRARY) 284