leveldatabase.target.linux-mips.mk revision 6e8cce623b6e4fe0c9e4af605d675dd9d0338c38
1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_leveldatabase_leveldatabase_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/leveldatabase/env_chromium.cc \ 28 third_party/leveldatabase/env_chromium_stdio.cc \ 29 third_party/leveldatabase/port/port_chromium.cc \ 30 third_party/leveldatabase/src/db/builder.cc \ 31 third_party/leveldatabase/src/db/db_impl.cc \ 32 third_party/leveldatabase/src/db/db_iter.cc \ 33 third_party/leveldatabase/src/db/filename.cc \ 34 third_party/leveldatabase/src/db/dbformat.cc \ 35 third_party/leveldatabase/src/db/log_reader.cc \ 36 third_party/leveldatabase/src/db/log_writer.cc \ 37 third_party/leveldatabase/src/db/memtable.cc \ 38 third_party/leveldatabase/src/db/repair.cc \ 39 third_party/leveldatabase/src/db/table_cache.cc \ 40 third_party/leveldatabase/src/db/version_edit.cc \ 41 third_party/leveldatabase/src/db/version_set.cc \ 42 third_party/leveldatabase/src/db/write_batch.cc \ 43 third_party/leveldatabase/src/helpers/memenv/memenv.cc \ 44 third_party/leveldatabase/src/table/block.cc \ 45 third_party/leveldatabase/src/table/block_builder.cc \ 46 third_party/leveldatabase/src/table/filter_block.cc \ 47 third_party/leveldatabase/src/table/format.cc \ 48 third_party/leveldatabase/src/table/iterator.cc \ 49 third_party/leveldatabase/src/table/merger.cc \ 50 third_party/leveldatabase/src/table/table.cc \ 51 third_party/leveldatabase/src/table/table_builder.cc \ 52 third_party/leveldatabase/src/table/two_level_iterator.cc \ 53 third_party/leveldatabase/src/util/arena.cc \ 54 third_party/leveldatabase/src/util/bloom.cc \ 55 third_party/leveldatabase/src/util/cache.cc \ 56 third_party/leveldatabase/src/util/coding.cc \ 57 third_party/leveldatabase/src/util/comparator.cc \ 58 third_party/leveldatabase/src/util/crc32c.cc \ 59 third_party/leveldatabase/src/util/env.cc \ 60 third_party/leveldatabase/src/util/filter_policy.cc \ 61 third_party/leveldatabase/src/util/hash.cc \ 62 third_party/leveldatabase/src/util/logging.cc \ 63 third_party/leveldatabase/src/util/options.cc \ 64 third_party/leveldatabase/src/util/status.cc 65 66 67# Flags passed to both C and C++ files. 68MY_CFLAGS_Debug := \ 69 -fstack-protector \ 70 --param=ssp-buffer-size=4 \ 71 \ 72 -fno-exceptions \ 73 -fno-strict-aliasing \ 74 -Wno-unused-parameter \ 75 -Wno-missing-field-initializers \ 76 -fvisibility=hidden \ 77 -pipe \ 78 -fPIC \ 79 -Wno-unused-local-typedefs \ 80 -Wno-format \ 81 -EL \ 82 -mhard-float \ 83 -ffunction-sections \ 84 -funwind-tables \ 85 -g \ 86 -fstack-protector \ 87 -fno-short-enums \ 88 -finline-limit=64 \ 89 -Wa,--noexecstack \ 90 -U_FORTIFY_SOURCE \ 91 -Wno-extra \ 92 -Wno-ignored-qualifiers \ 93 -Wno-type-limits \ 94 -Wno-unused-but-set-variable \ 95 -Wno-address \ 96 -Wno-format-security \ 97 -Wno-return-type \ 98 -Wno-sequence-point \ 99 -Os \ 100 -g \ 101 -fdata-sections \ 102 -ffunction-sections \ 103 -fomit-frame-pointer \ 104 -funwind-tables 105 106MY_DEFS_Debug := \ 107 '-DLEVELDB_PLATFORM_CHROMIUM=1' \ 108 '-DV8_DEPRECATION_WARNINGS' \ 109 '-D_FILE_OFFSET_BITS=64' \ 110 '-DNO_TCMALLOC' \ 111 '-DDISABLE_NACL' \ 112 '-DCHROMIUM_BUILD' \ 113 '-DUSE_LIBJPEG_TURBO=1' \ 114 '-DENABLE_WEBRTC=1' \ 115 '-DUSE_PROPRIETARY_CODECS' \ 116 '-DENABLE_BROWSER_CDMS' \ 117 '-DENABLE_CONFIGURATION_POLICY' \ 118 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 119 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 120 '-DENABLE_EGLIMAGE=1' \ 121 '-DCLD_VERSION=1' \ 122 '-DENABLE_PRINTING=1' \ 123 '-DENABLE_MANAGED_USERS=1' \ 124 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 125 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 126 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 127 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 128 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 129 '-DVIDEO_HOLE=1' \ 130 '-DUSE_OPENSSL=1' \ 131 '-DUSE_OPENSSL_CERTS=1' \ 132 '-DANDROID' \ 133 '-D__GNU_SOURCE=1' \ 134 '-DUSE_STLPORT=1' \ 135 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 136 '-DCHROME_BUILD_ID=""' \ 137 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 138 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 139 '-D_DEBUG' 140 141 142# Include paths placed before CFLAGS/CPPFLAGS 143LOCAL_C_INCLUDES_Debug := \ 144 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 145 $(LOCAL_PATH)/third_party/leveldatabase \ 146 $(LOCAL_PATH)/third_party/leveldatabase/src \ 147 $(LOCAL_PATH)/third_party/leveldatabase/src/include \ 148 $(gyp_shared_intermediate_dir) \ 149 $(LOCAL_PATH)/third_party/re2 \ 150 $(LOCAL_PATH) \ 151 $(PWD)/frameworks/wilhelm/include \ 152 $(PWD)/bionic \ 153 $(PWD)/external/stlport/stlport 154 155 156# Flags passed to only C++ (and not C) files. 157LOCAL_CPPFLAGS_Debug := \ 158 -fno-rtti \ 159 -fno-threadsafe-statics \ 160 -fvisibility-inlines-hidden \ 161 -Wno-deprecated \ 162 -Wno-uninitialized \ 163 -std=gnu++11 \ 164 -Wno-narrowing \ 165 -Wno-literal-suffix \ 166 -Wno-non-virtual-dtor \ 167 -Wno-sign-promo \ 168 -Wno-non-virtual-dtor 169 170 171# Flags passed to both C and C++ files. 172MY_CFLAGS_Release := \ 173 -fstack-protector \ 174 --param=ssp-buffer-size=4 \ 175 \ 176 -fno-exceptions \ 177 -fno-strict-aliasing \ 178 -Wno-unused-parameter \ 179 -Wno-missing-field-initializers \ 180 -fvisibility=hidden \ 181 -pipe \ 182 -fPIC \ 183 -Wno-unused-local-typedefs \ 184 -Wno-format \ 185 -EL \ 186 -mhard-float \ 187 -ffunction-sections \ 188 -funwind-tables \ 189 -g \ 190 -fstack-protector \ 191 -fno-short-enums \ 192 -finline-limit=64 \ 193 -Wa,--noexecstack \ 194 -U_FORTIFY_SOURCE \ 195 -Wno-extra \ 196 -Wno-ignored-qualifiers \ 197 -Wno-type-limits \ 198 -Wno-unused-but-set-variable \ 199 -Wno-address \ 200 -Wno-format-security \ 201 -Wno-return-type \ 202 -Wno-sequence-point \ 203 -Os \ 204 -fno-ident \ 205 -fdata-sections \ 206 -ffunction-sections \ 207 -fomit-frame-pointer \ 208 -funwind-tables 209 210MY_DEFS_Release := \ 211 '-DLEVELDB_PLATFORM_CHROMIUM=1' \ 212 '-DV8_DEPRECATION_WARNINGS' \ 213 '-D_FILE_OFFSET_BITS=64' \ 214 '-DNO_TCMALLOC' \ 215 '-DDISABLE_NACL' \ 216 '-DCHROMIUM_BUILD' \ 217 '-DUSE_LIBJPEG_TURBO=1' \ 218 '-DENABLE_WEBRTC=1' \ 219 '-DUSE_PROPRIETARY_CODECS' \ 220 '-DENABLE_BROWSER_CDMS' \ 221 '-DENABLE_CONFIGURATION_POLICY' \ 222 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 223 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 224 '-DENABLE_EGLIMAGE=1' \ 225 '-DCLD_VERSION=1' \ 226 '-DENABLE_PRINTING=1' \ 227 '-DENABLE_MANAGED_USERS=1' \ 228 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 229 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 230 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 231 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 232 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 233 '-DVIDEO_HOLE=1' \ 234 '-DUSE_OPENSSL=1' \ 235 '-DUSE_OPENSSL_CERTS=1' \ 236 '-DANDROID' \ 237 '-D__GNU_SOURCE=1' \ 238 '-DUSE_STLPORT=1' \ 239 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 240 '-DCHROME_BUILD_ID=""' \ 241 '-DNDEBUG' \ 242 '-DNVALGRIND' \ 243 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 244 245 246# Include paths placed before CFLAGS/CPPFLAGS 247LOCAL_C_INCLUDES_Release := \ 248 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 249 $(LOCAL_PATH)/third_party/leveldatabase \ 250 $(LOCAL_PATH)/third_party/leveldatabase/src \ 251 $(LOCAL_PATH)/third_party/leveldatabase/src/include \ 252 $(gyp_shared_intermediate_dir) \ 253 $(LOCAL_PATH)/third_party/re2 \ 254 $(LOCAL_PATH) \ 255 $(PWD)/frameworks/wilhelm/include \ 256 $(PWD)/bionic \ 257 $(PWD)/external/stlport/stlport 258 259 260# Flags passed to only C++ (and not C) files. 261LOCAL_CPPFLAGS_Release := \ 262 -fno-rtti \ 263 -fno-threadsafe-statics \ 264 -fvisibility-inlines-hidden \ 265 -Wno-deprecated \ 266 -Wno-uninitialized \ 267 -std=gnu++11 \ 268 -Wno-narrowing \ 269 -Wno-literal-suffix \ 270 -Wno-non-virtual-dtor \ 271 -Wno-sign-promo \ 272 -Wno-non-virtual-dtor 273 274 275LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 276LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 277LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 278LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 279### Rules for final target. 280 281LOCAL_LDFLAGS_Debug := \ 282 -Wl,-z,now \ 283 -Wl,-z,relro \ 284 -Wl,--fatal-warnings \ 285 -Wl,-z,noexecstack \ 286 -fPIC \ 287 -EL \ 288 -Wl,--no-keep-memory \ 289 -nostdlib \ 290 -Wl,--no-undefined \ 291 -Wl,--exclude-libs=ALL \ 292 -Wl,--warn-shared-textrel \ 293 -Wl,-O1 \ 294 -Wl,--as-needed 295 296 297LOCAL_LDFLAGS_Release := \ 298 -Wl,-z,now \ 299 -Wl,-z,relro \ 300 -Wl,--fatal-warnings \ 301 -Wl,-z,noexecstack \ 302 -fPIC \ 303 -EL \ 304 -Wl,--no-keep-memory \ 305 -nostdlib \ 306 -Wl,--no-undefined \ 307 -Wl,--exclude-libs=ALL \ 308 -Wl,-O1 \ 309 -Wl,--as-needed \ 310 -Wl,--gc-sections \ 311 -Wl,--warn-shared-textrel 312 313 314LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 315 316LOCAL_STATIC_LIBRARIES := 317 318# Enable grouping to fix circular references 319LOCAL_GROUP_STATIC_LIBRARIES := true 320 321LOCAL_SHARED_LIBRARIES := \ 322 libstlport \ 323 libdl 324 325# Add target alias to "gyp_all_modules" target. 326.PHONY: gyp_all_modules 327gyp_all_modules: third_party_leveldatabase_leveldatabase_gyp 328 329# Alias gyp target name. 330.PHONY: leveldatabase 331leveldatabase: third_party_leveldatabase_leveldatabase_gyp 332 333include $(BUILD_STATIC_LIBRARY) 334