Skip to content

Instantly share code, notes, and snippets.

@shunix
Created July 7, 2017 03:46
Show Gist options
  • Save shunix/fe16444d6ca0d209bd41685beea59d08 to your computer and use it in GitHub Desktop.
Save shunix/fe16444d6ca0d209bd41685beea59d08 to your computer and use it in GitHub Desktop.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := leveldb
LOCAL_SRC_FILES := \
db/builder.cc \
db/c.cc \
db/db_impl.cc \
db/db_iter.cc \
db/dbformat.cc \
db/dumpfile.cc \
db/filename.cc \
db/log_reader.cc \
db/log_writer.cc \
db/memtable.cc \
db/repair.cc \
db/table_cache.cc \
db/version_edit.cc \
db/version_set.cc \
db/write_batch.cc \
table/block_builder.cc \
table/block.cc \
table/filter_block.cc \
table/format.cc \
table/iterator.cc \
table/merger.cc \
table/table_builder.cc \
table/table.cc \
table/two_level_iterator.cc \
util/arena.cc \
util/bloom.cc \
util/cache.cc \
util/coding.cc \
util/comparator.cc \
util/crc32c.cc \
util/env_posix.cc \
util/env.cc \
util/filter_policy.cc \
util/hash.cc \
util/histogram.cc \
util/logging.cc \
util/options.cc \
util/status.cc \
port/port_posix.cc \
port/port_posix_sse.cc
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_CPPFLAGS += -O2 -DNDEBUG "-fno-builtin-memcmp" -D_REENTRANT -DOS_ANDROID -DLEVELDB_PLATFORM_POSIX
include $(BUILD_SHARED_LIBRARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment