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