cityhash.target.linux-arm.mk revision d0247b1b59f9c528cb6df88b4f2b9afaf80d181e
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 '-DWTF_VECTOR_INITIAL_SIZE=4' \ 67 '-D_FILE_OFFSET_BITS=64' \ 68 '-DNO_TCMALLOC' \ 69 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 70 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_CONFIGURATION_POLICY' \ 76 '-DENABLE_GPU=1' \ 77 '-DUSE_OPENSSL=1' \ 78 '-DENABLE_EGLIMAGE=1' \ 79 '-DCLD_VERSION=1' \ 80 '-DANDROID' \ 81 '-D__GNU_SOURCE=1' \ 82 '-DUSE_STLPORT=1' \ 83 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 84 '-DCHROME_BUILD_ID=""' \ 85 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 86 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 87 '-D_DEBUG' 88 89 90# Include paths placed before CFLAGS/CPPFLAGS 91LOCAL_C_INCLUDES_Debug := \ 92 $(PWD)/frameworks/wilhelm/include \ 93 $(PWD)/bionic \ 94 $(PWD)/external/stlport/stlport 95 96 97# Flags passed to only C++ (and not C) files. 98LOCAL_CPPFLAGS_Debug := \ 99 -fno-rtti \ 100 -fno-threadsafe-statics \ 101 -fvisibility-inlines-hidden \ 102 -Wno-deprecated \ 103 -Wno-abi \ 104 -Wno-error=c++0x-compat \ 105 -Wno-non-virtual-dtor \ 106 -Wno-sign-promo \ 107 -Wno-non-virtual-dtor 108 109 110# Flags passed to both C and C++ files. 111MY_CFLAGS_Release := \ 112 -fstack-protector \ 113 --param=ssp-buffer-size=4 \ 114 -fno-exceptions \ 115 -fno-strict-aliasing \ 116 -Wno-unused-parameter \ 117 -Wno-missing-field-initializers \ 118 -fvisibility=hidden \ 119 -pipe \ 120 -fPIC \ 121 -Wno-format \ 122 -fno-tree-sra \ 123 -fuse-ld=gold \ 124 -Wno-psabi \ 125 -ffunction-sections \ 126 -funwind-tables \ 127 -g \ 128 -fstack-protector \ 129 -fno-short-enums \ 130 -finline-limit=64 \ 131 -Wa,--noexecstack \ 132 -U_FORTIFY_SOURCE \ 133 -Wno-extra \ 134 -Wno-ignored-qualifiers \ 135 -Wno-type-limits \ 136 -Wno-address \ 137 -Wno-format-security \ 138 -Wno-return-type \ 139 -Wno-sequence-point \ 140 -Os \ 141 -fno-ident \ 142 -fdata-sections \ 143 -ffunction-sections \ 144 -fomit-frame-pointer 145 146MY_DEFS_Release := \ 147 '-DANGLE_DX11' \ 148 '-DWTF_VECTOR_INITIAL_SIZE=4' \ 149 '-D_FILE_OFFSET_BITS=64' \ 150 '-DNO_TCMALLOC' \ 151 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 152 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 153 '-DDISABLE_NACL' \ 154 '-DCHROMIUM_BUILD' \ 155 '-DUSE_LIBJPEG_TURBO=1' \ 156 '-DUSE_PROPRIETARY_CODECS' \ 157 '-DENABLE_CONFIGURATION_POLICY' \ 158 '-DENABLE_GPU=1' \ 159 '-DUSE_OPENSSL=1' \ 160 '-DENABLE_EGLIMAGE=1' \ 161 '-DCLD_VERSION=1' \ 162 '-DANDROID' \ 163 '-D__GNU_SOURCE=1' \ 164 '-DUSE_STLPORT=1' \ 165 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 166 '-DCHROME_BUILD_ID=""' \ 167 '-DNDEBUG' \ 168 '-DNVALGRIND' \ 169 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 170 171 172# Include paths placed before CFLAGS/CPPFLAGS 173LOCAL_C_INCLUDES_Release := \ 174 $(PWD)/frameworks/wilhelm/include \ 175 $(PWD)/bionic \ 176 $(PWD)/external/stlport/stlport 177 178 179# Flags passed to only C++ (and not C) files. 180LOCAL_CPPFLAGS_Release := \ 181 -fno-rtti \ 182 -fno-threadsafe-statics \ 183 -fvisibility-inlines-hidden \ 184 -Wno-deprecated \ 185 -Wno-abi \ 186 -Wno-error=c++0x-compat \ 187 -Wno-non-virtual-dtor \ 188 -Wno-sign-promo \ 189 -Wno-non-virtual-dtor 190 191 192LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 193LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 194LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 195### Rules for final target. 196 197LOCAL_LDFLAGS_Debug := \ 198 -Wl,-z,now \ 199 -Wl,-z,relro \ 200 -Wl,-z,noexecstack \ 201 -fPIC \ 202 -Wl,-z,relro \ 203 -Wl,-z,now \ 204 -fuse-ld=gold \ 205 -nostdlib \ 206 -Wl,--no-undefined \ 207 -Wl,--exclude-libs=ALL \ 208 -Wl,--icf=safe \ 209 -Wl,--fatal-warnings \ 210 -Wl,--gc-sections \ 211 -Wl,--warn-shared-textrel \ 212 -Wl,-O1 \ 213 -Wl,--as-needed 214 215 216LOCAL_LDFLAGS_Release := \ 217 -Wl,-z,now \ 218 -Wl,-z,relro \ 219 -Wl,-z,noexecstack \ 220 -fPIC \ 221 -Wl,-z,relro \ 222 -Wl,-z,now \ 223 -fuse-ld=gold \ 224 -nostdlib \ 225 -Wl,--no-undefined \ 226 -Wl,--exclude-libs=ALL \ 227 -Wl,--icf=safe \ 228 -Wl,-O1 \ 229 -Wl,--as-needed \ 230 -Wl,--gc-sections \ 231 -Wl,--fatal-warnings \ 232 -Wl,--warn-shared-textrel 233 234 235LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 236 237LOCAL_STATIC_LIBRARIES := 238 239# Enable grouping to fix circular references 240LOCAL_GROUP_STATIC_LIBRARIES := true 241 242LOCAL_SHARED_LIBRARIES := \ 243 libstlport \ 244 libdl 245 246# Add target alias to "gyp_all_modules" target. 247.PHONY: gyp_all_modules 248gyp_all_modules: third_party_smhasher_cityhash_gyp 249 250# Alias gyp target name. 251.PHONY: cityhash 252cityhash: third_party_smhasher_cityhash_gyp 253 254include $(BUILD_STATIC_LIBRARY) 255