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 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_SRC_FILES := \ 25 third_party/smhasher/src/City.cpp 26 27 28 # Flags passed to both C and C++ files. 29 MY_CFLAGS_Debug := \ 30 --param=ssp-buffer-size=4 \ 31 -fno-exceptions \ 32 -fno-strict-aliasing \ 33 -Wno-unused-parameter \ 34 -Wno-missing-field-initializers \ 35 -fvisibility=hidden \ 36 -pipe \ 37 -fPIC \ 38 -Wno-format \ 39 -m32 \ 40 -mmmx \ 41 -march=pentium4 \ 42 -msse2 \ 43 -mfpmath=sse \ 44 -fuse-ld=gold \ 45 -ffunction-sections \ 46 -funwind-tables \ 47 -g \ 48 -fno-short-enums \ 49 -finline-limit=64 \ 50 -Wa,--noexecstack \ 51 -U_FORTIFY_SOURCE \ 52 -Wno-extra \ 53 -Wno-ignored-qualifiers \ 54 -Wno-type-limits \ 55 -fno-stack-protector \ 56 -Wno-address \ 57 -Wno-format-security \ 58 -Wno-return-type \ 59 -Wno-sequence-point \ 60 -Os \ 61 -g \ 62 -fomit-frame-pointer \ 63 -fdata-sections \ 64 -ffunction-sections 65 66 MY_DEFS_Debug := \ 67 '-DV8_DEPRECATION_WARNINGS' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 76 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 77 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DCLD_VERSION=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DENABLE_MANAGED_USERS=1' \ 83 '-DANDROID' \ 84 '-D__GNU_SOURCE=1' \ 85 '-DUSE_STLPORT=1' \ 86 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 87 '-DCHROME_BUILD_ID=""' \ 88 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 89 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 90 '-D_DEBUG' 91 92 93 # Include paths placed before CFLAGS/CPPFLAGS 94 LOCAL_C_INCLUDES_Debug := \ 95 $(PWD)/frameworks/wilhelm/include \ 96 $(PWD)/bionic \ 97 $(PWD)/external/stlport/stlport 98 99 100 # Flags passed to only C++ (and not C) files. 101 LOCAL_CPPFLAGS_Debug := \ 102 -fno-rtti \ 103 -fno-threadsafe-statics \ 104 -fvisibility-inlines-hidden \ 105 -Wno-deprecated \ 106 -Wno-error=c++0x-compat \ 107 -Wno-non-virtual-dtor \ 108 -Wno-sign-promo \ 109 -Wno-non-virtual-dtor 110 111 112 # Flags passed to both C and C++ files. 113 MY_CFLAGS_Release := \ 114 --param=ssp-buffer-size=4 \ 115 -fno-exceptions \ 116 -fno-strict-aliasing \ 117 -Wno-unused-parameter \ 118 -Wno-missing-field-initializers \ 119 -fvisibility=hidden \ 120 -pipe \ 121 -fPIC \ 122 -Wno-format \ 123 -m32 \ 124 -mmmx \ 125 -march=pentium4 \ 126 -msse2 \ 127 -mfpmath=sse \ 128 -fuse-ld=gold \ 129 -ffunction-sections \ 130 -funwind-tables \ 131 -g \ 132 -fno-short-enums \ 133 -finline-limit=64 \ 134 -Wa,--noexecstack \ 135 -U_FORTIFY_SOURCE \ 136 -Wno-extra \ 137 -Wno-ignored-qualifiers \ 138 -Wno-type-limits \ 139 -fno-stack-protector \ 140 -Wno-address \ 141 -Wno-format-security \ 142 -Wno-return-type \ 143 -Wno-sequence-point \ 144 -Os \ 145 -fno-ident \ 146 -fdata-sections \ 147 -ffunction-sections \ 148 -fomit-frame-pointer \ 149 -fno-unwind-tables \ 150 -fno-asynchronous-unwind-tables 151 152 MY_DEFS_Release := \ 153 '-DV8_DEPRECATION_WARNINGS' \ 154 '-D_FILE_OFFSET_BITS=64' \ 155 '-DNO_TCMALLOC' \ 156 '-DDISABLE_NACL' \ 157 '-DCHROMIUM_BUILD' \ 158 '-DUSE_LIBJPEG_TURBO=1' \ 159 '-DUSE_PROPRIETARY_CODECS' \ 160 '-DENABLE_CONFIGURATION_POLICY' \ 161 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 162 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 163 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 164 '-DUSE_OPENSSL=1' \ 165 '-DENABLE_EGLIMAGE=1' \ 166 '-DCLD_VERSION=1' \ 167 '-DENABLE_PRINTING=1' \ 168 '-DENABLE_MANAGED_USERS=1' \ 169 '-DANDROID' \ 170 '-D__GNU_SOURCE=1' \ 171 '-DUSE_STLPORT=1' \ 172 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 173 '-DCHROME_BUILD_ID=""' \ 174 '-DNDEBUG' \ 175 '-DNVALGRIND' \ 176 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 177 178 179 # Include paths placed before CFLAGS/CPPFLAGS 180 LOCAL_C_INCLUDES_Release := \ 181 $(PWD)/frameworks/wilhelm/include \ 182 $(PWD)/bionic \ 183 $(PWD)/external/stlport/stlport 184 185 186 # Flags passed to only C++ (and not C) files. 187 LOCAL_CPPFLAGS_Release := \ 188 -fno-rtti \ 189 -fno-threadsafe-statics \ 190 -fvisibility-inlines-hidden \ 191 -Wno-deprecated \ 192 -Wno-error=c++0x-compat \ 193 -Wno-non-virtual-dtor \ 194 -Wno-sign-promo \ 195 -Wno-non-virtual-dtor 196 197 198 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 199 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 200 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 201 ### Rules for final target. 202 203 LOCAL_LDFLAGS_Debug := \ 204 -Wl,-z,now \ 205 -Wl,-z,relro \ 206 -Wl,-z,noexecstack \ 207 -fPIC \ 208 -m32 \ 209 -fuse-ld=gold \ 210 -nostdlib \ 211 -Wl,--no-undefined \ 212 -Wl,--exclude-libs=ALL \ 213 -Wl,--fatal-warnings \ 214 -Wl,--gc-sections \ 215 -Wl,--warn-shared-textrel \ 216 -Wl,-O1 \ 217 -Wl,--as-needed 218 219 220 LOCAL_LDFLAGS_Release := \ 221 -Wl,-z,now \ 222 -Wl,-z,relro \ 223 -Wl,-z,noexecstack \ 224 -fPIC \ 225 -m32 \ 226 -fuse-ld=gold \ 227 -nostdlib \ 228 -Wl,--no-undefined \ 229 -Wl,--exclude-libs=ALL \ 230 -Wl,-O1 \ 231 -Wl,--as-needed \ 232 -Wl,--gc-sections \ 233 -Wl,--fatal-warnings \ 234 -Wl,--warn-shared-textrel 235 236 237 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 238 239 LOCAL_STATIC_LIBRARIES := 240 241 # Enable grouping to fix circular references 242 LOCAL_GROUP_STATIC_LIBRARIES := true 243 244 LOCAL_SHARED_LIBRARIES := \ 245 libstlport \ 246 libdl 247 248 # Add target alias to "gyp_all_modules" target. 249 .PHONY: gyp_all_modules 250 gyp_all_modules: third_party_smhasher_cityhash_gyp 251 252 # Alias gyp target name. 253 .PHONY: cityhash 254 cityhash: third_party_smhasher_cityhash_gyp 255 256 include $(BUILD_STATIC_LIBRARY) 257