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