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