1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_libaddressinput_libaddressinput_util_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 16 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 17 18GYP_GENERATED_OUTPUTS := 19 20# Make sure our deps and generated files are built first. 21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23LOCAL_CPP_EXTENSION := .cc 24LOCAL_GENERATED_SOURCES := 25 26GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28LOCAL_SRC_FILES := \ 29 third_party/libaddressinput/chromium/canonicalize_string.cc \ 30 third_party/libaddressinput/chromium/json.cc \ 31 third_party/libaddressinput/chromium/cpp/src/address_data.cc \ 32 third_party/libaddressinput/chromium/cpp/src/address_field.cc \ 33 third_party/libaddressinput/chromium/cpp/src/region_data_constants.cc \ 34 third_party/libaddressinput/chromium/cpp/src/rule.cc \ 35 third_party/libaddressinput/chromium/cpp/src/util/string_util.cc 36 37 38# Flags passed to both C and C++ files. 39MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -Wno-unused-local-typedefs \ 50 -Wno-format \ 51 -fno-tree-sra \ 52 -fno-partial-inlining \ 53 -fno-early-inlining \ 54 -fno-tree-copy-prop \ 55 -fno-tree-loop-optimize \ 56 -fno-move-loop-invariants \ 57 -fno-caller-saves \ 58 -Wno-psabi \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fstack-protector \ 63 -fno-short-enums \ 64 -finline-limit=64 \ 65 -Wa,--noexecstack \ 66 -U_FORTIFY_SOURCE \ 67 -Wno-extra \ 68 -Wno-ignored-qualifiers \ 69 -Wno-type-limits \ 70 -Wno-unused-but-set-variable \ 71 -Wno-address \ 72 -Wno-format-security \ 73 -Wno-return-type \ 74 -Wno-sequence-point \ 75 -Os \ 76 -g \ 77 -fdata-sections \ 78 -ffunction-sections \ 79 -fomit-frame-pointer \ 80 -funwind-tables 81 82MY_DEFS_Debug := \ 83 '-DCUSTOM_BASICTYPES="base/basictypes.h"' \ 84 '-DCUSTOM_SCOPED_PTR="base/memory/scoped_ptr.h"' \ 85 '-DV8_DEPRECATION_WARNINGS' \ 86 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 104 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 105 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 106 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 107 '-DVIDEO_HOLE=1' \ 108 '-DU_USING_ICU_NAMESPACE=0' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-DANDROID' \ 112 '-D__GNU_SOURCE=1' \ 113 '-DUSE_STLPORT=1' \ 114 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 115 '-DCHROME_BUILD_ID=""' \ 116 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 117 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 118 '-D_DEBUG' 119 120 121# Include paths placed before CFLAGS/CPPFLAGS 122LOCAL_C_INCLUDES_Debug := \ 123 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 124 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 125 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 126 $(gyp_shared_intermediate_dir) \ 127 $(LOCAL_PATH)/third_party/libaddressinput/chromium/cpp/include \ 128 $(gyp_shared_intermediate_dir)/libaddressinput \ 129 $(LOCAL_PATH) \ 130 $(PWD)/external/icu/icu4c/source/common \ 131 $(PWD)/external/icu/icu4c/source/i18n \ 132 $(LOCAL_PATH)/third_party/re2 \ 133 $(PWD)/frameworks/wilhelm/include \ 134 $(PWD)/bionic \ 135 $(PWD)/external/stlport/stlport 136 137 138# Flags passed to only C++ (and not C) files. 139LOCAL_CPPFLAGS_Debug := \ 140 -fno-rtti \ 141 -fno-threadsafe-statics \ 142 -fvisibility-inlines-hidden \ 143 -Wno-deprecated \ 144 -Wno-abi \ 145 -Wno-non-virtual-dtor \ 146 -Wno-sign-promo \ 147 -Wno-non-virtual-dtor 148 149 150LOCAL_FDO_SUPPORT_Debug := false 151 152# Flags passed to both C and C++ files. 153MY_CFLAGS_Release := \ 154 -fstack-protector \ 155 --param=ssp-buffer-size=4 \ 156 -fno-exceptions \ 157 -fno-strict-aliasing \ 158 -Wno-unused-parameter \ 159 -Wno-missing-field-initializers \ 160 -fvisibility=hidden \ 161 -pipe \ 162 -fPIC \ 163 -Wno-unused-local-typedefs \ 164 -Wno-format \ 165 -fno-tree-sra \ 166 -fno-partial-inlining \ 167 -fno-early-inlining \ 168 -fno-tree-copy-prop \ 169 -fno-tree-loop-optimize \ 170 -fno-move-loop-invariants \ 171 -fno-caller-saves \ 172 -Wno-psabi \ 173 -ffunction-sections \ 174 -funwind-tables \ 175 -g \ 176 -fstack-protector \ 177 -fno-short-enums \ 178 -finline-limit=64 \ 179 -Wa,--noexecstack \ 180 -U_FORTIFY_SOURCE \ 181 -Wno-extra \ 182 -Wno-ignored-qualifiers \ 183 -Wno-type-limits \ 184 -Wno-unused-but-set-variable \ 185 -Wno-address \ 186 -Wno-format-security \ 187 -Wno-return-type \ 188 -Wno-sequence-point \ 189 -Os \ 190 -fno-ident \ 191 -fdata-sections \ 192 -ffunction-sections \ 193 -fomit-frame-pointer \ 194 -funwind-tables 195 196MY_DEFS_Release := \ 197 '-DCUSTOM_BASICTYPES="base/basictypes.h"' \ 198 '-DCUSTOM_SCOPED_PTR="base/memory/scoped_ptr.h"' \ 199 '-DV8_DEPRECATION_WARNINGS' \ 200 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 201 '-D_FILE_OFFSET_BITS=64' \ 202 '-DNO_TCMALLOC' \ 203 '-DDISABLE_NACL' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DENABLE_WEBRTC=1' \ 207 '-DUSE_PROPRIETARY_CODECS' \ 208 '-DENABLE_BROWSER_CDMS' \ 209 '-DENABLE_CONFIGURATION_POLICY' \ 210 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 211 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 217 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 218 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 219 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 220 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 221 '-DVIDEO_HOLE=1' \ 222 '-DU_USING_ICU_NAMESPACE=0' \ 223 '-DUSE_OPENSSL=1' \ 224 '-DUSE_OPENSSL_CERTS=1' \ 225 '-DANDROID' \ 226 '-D__GNU_SOURCE=1' \ 227 '-DUSE_STLPORT=1' \ 228 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 229 '-DCHROME_BUILD_ID=""' \ 230 '-DNDEBUG' \ 231 '-DNVALGRIND' \ 232 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 233 234 235# Include paths placed before CFLAGS/CPPFLAGS 236LOCAL_C_INCLUDES_Release := \ 237 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 238 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 239 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 240 $(gyp_shared_intermediate_dir) \ 241 $(LOCAL_PATH)/third_party/libaddressinput/chromium/cpp/include \ 242 $(gyp_shared_intermediate_dir)/libaddressinput \ 243 $(LOCAL_PATH) \ 244 $(PWD)/external/icu/icu4c/source/common \ 245 $(PWD)/external/icu/icu4c/source/i18n \ 246 $(LOCAL_PATH)/third_party/re2 \ 247 $(PWD)/frameworks/wilhelm/include \ 248 $(PWD)/bionic \ 249 $(PWD)/external/stlport/stlport 250 251 252# Flags passed to only C++ (and not C) files. 253LOCAL_CPPFLAGS_Release := \ 254 -fno-rtti \ 255 -fno-threadsafe-statics \ 256 -fvisibility-inlines-hidden \ 257 -Wno-deprecated \ 258 -Wno-abi \ 259 -Wno-non-virtual-dtor \ 260 -Wno-sign-promo \ 261 -Wno-non-virtual-dtor 262 263 264LOCAL_FDO_SUPPORT_Release := false 265 266LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 267LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 268LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 269LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 270LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 271### Rules for final target. 272 273LOCAL_LDFLAGS_Debug := \ 274 -Wl,-z,now \ 275 -Wl,-z,relro \ 276 -Wl,--fatal-warnings \ 277 -Wl,-z,noexecstack \ 278 -fPIC \ 279 -Wl,-z,relro \ 280 -Wl,-z,now \ 281 -fuse-ld=gold \ 282 -nostdlib \ 283 -Wl,--no-undefined \ 284 -Wl,--exclude-libs=ALL \ 285 -Wl,--icf=safe \ 286 -Wl,--warn-shared-textrel \ 287 -Wl,-O1 \ 288 -Wl,--as-needed 289 290 291LOCAL_LDFLAGS_Release := \ 292 -Wl,-z,now \ 293 -Wl,-z,relro \ 294 -Wl,--fatal-warnings \ 295 -Wl,-z,noexecstack \ 296 -fPIC \ 297 -Wl,-z,relro \ 298 -Wl,-z,now \ 299 -fuse-ld=gold \ 300 -nostdlib \ 301 -Wl,--no-undefined \ 302 -Wl,--exclude-libs=ALL \ 303 -Wl,--icf=safe \ 304 -Wl,-O1 \ 305 -Wl,--as-needed \ 306 -Wl,--gc-sections \ 307 -Wl,--warn-shared-textrel 308 309 310LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 311 312LOCAL_STATIC_LIBRARIES := 313 314# Enable grouping to fix circular references 315LOCAL_GROUP_STATIC_LIBRARIES := true 316 317LOCAL_SHARED_LIBRARIES := \ 318 libstlport \ 319 libdl 320 321# Add target alias to "gyp_all_modules" target. 322.PHONY: gyp_all_modules 323gyp_all_modules: third_party_libaddressinput_libaddressinput_util_gyp 324 325# Alias gyp target name. 326.PHONY: libaddressinput_util 327libaddressinput_util: third_party_libaddressinput_libaddressinput_util_gyp 328 329include $(BUILD_STATIC_LIBRARY) 330