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