10225501448 李度 10225101546 陈胤遒 10215501422 高宇菲
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

64 righe
1.7 KiB

  1. # Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. # INSTRUCTIONS
  5. # After you've downloaded and installed the Android NDK from:
  6. # http://developer.android.com/sdk/ndk/index.html
  7. # 1. In the same directory as this file, Android.mk, type:
  8. # $ ln -s leveldb ../jni
  9. # (The Android NDK will only build native projects in
  10. # subdirectories named "jni".)
  11. # 2. $ cd ..
  12. # 3. Execute ndk-build:
  13. # $ $(ANDROID_NDK_DIR)/ndk-build
  14. LOCAL_PATH := $(call my-dir)
  15. include $(CLEAR_VARS)
  16. LOCAL_MODULE := leveldb
  17. # Build flags:
  18. # - LEVELDB_PLATFORM_ANDROID to use the correct port header: port_android.h
  19. LOCAL_CFLAGS := -DLEVELDB_PLATFORM_ANDROID -std=gnu++0x
  20. LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../
  21. LOCAL_CPP_EXTENSION := .cc
  22. LOCAL_SRC_FILES := ./db/builder.cc \
  23. ./db/db_bench.cc \
  24. ./db/db_impl.cc \
  25. ./db/db_iter.cc \
  26. ./db/filename.cc \
  27. ./db/dbformat.cc \
  28. ./db/log_reader.cc \
  29. ./db/log_writer.cc \
  30. ./db/memtable.cc \
  31. ./db/repair.cc \
  32. ./db/table_cache.cc \
  33. ./db/version_edit.cc \
  34. ./db/version_set.cc \
  35. ./db/write_batch.cc \
  36. ./port/port_android.cc \
  37. ./table/block.cc \
  38. ./table/block_builder.cc \
  39. ./table/format.cc \
  40. ./table/iterator.cc \
  41. ./table/merger.cc \
  42. ./table/table.cc \
  43. ./table/table_builder.cc \
  44. ./table/two_level_iterator.cc \
  45. ./util/arena.cc \
  46. ./util/cache.cc \
  47. ./util/coding.cc \
  48. ./util/comparator.cc \
  49. ./util/crc32c.cc \
  50. ./util/env.cc \
  51. ./util/env_posix.cc \
  52. ./util/hash.cc \
  53. ./util/histogram.cc \
  54. ./util/logging.cc \
  55. ./util/options.cc \
  56. ./util/status.cc \
  57. ./util/testharness.cc \
  58. ./util/testutil.cc
  59. include $(BUILD_SHARED_LIBRARY)