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