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