diff options
author | Dipankar Bhardwaj <dipankarb@google.com> | 2022-08-17 14:18:29 +0000 |
---|---|---|
committer | Dipankar Bhardwaj <dipankarb@google.com> | 2022-08-19 14:02:36 +0000 |
commit | 5f16bcfe5a3252dd7fcf6ef1be48a83a98d19e8b (patch) | |
tree | c07fbd1c5efd17060b8711d7918f31ac24bffbcf | |
parent | 45d41e1ee9e2d47c8b34c8cfb1b9af47b07118d5 (diff) | |
download | leveldb-5f16bcfe5a3252dd7fcf6ef1be48a83a98d19e8b.tar.gz |
Add Android.bp for leveldbt_frc_sch_330443040t_frc_neu_330443030t_frc_doc_330443060aml_wif_331016070aml_uwb_331015040aml_tz4_331012050aml_tz4_331012040aml_tz4_331012000aml_tet_331012080aml_swc_331012020aml_sdk_330810050aml_res_331011050aml_per_331019040aml_net_331110020aml_net_331011030aml_mpr_331011070aml_med_331012020aml_ips_331014020aml_ext_331012020aml_con_331115000aml_con_331011010aml_cbr_331013010aml_ase_331011020aml_art_331012050aml_ads_331131000aml_adb_331011040
Test: atest leveldb_test
Bug: 239414225
Change-Id: I47f6aa4c80803473bcfa8f759de03ca2fd5dba7f
-rw-r--r-- | Android.bp | 119 | ||||
-rw-r--r-- | TEST_MAPPING | 7 |
2 files changed, 126 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..7a4707b --- /dev/null +++ b/Android.bp @@ -0,0 +1,119 @@ +// +// Copyright (C) 2022 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +cc_defaults { + name: "leveldb_default_flags", + local_include_dirs: ["db/", "table/", "include/", "port/"], + cflags: [ + "-DLEVELDB_PLATFORM_POSIX", + "-Wall", + "-Werror", + "-Wextra", + "-Wno-implicit-fallthrough", + "-Wno-sign-compare", + "-Wno-incompatible-pointer-types", + "-Wno-missing-field-initializers", + "-Wno-unused-parameter", + "-Wno-unused-variable", + ], + clang: true, + sdk_version: "current", +} + +cc_library { + name: "leveldb", + defaults: [ + "leveldb_default_flags", + ], + export_include_dirs: ["include/"], + visibility: ["//packages/providers/MediaProvider/jni"], + srcs: [ + "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.cc", + "util/env_posix.cc", + "util/filter_policy.cc", + "util/hash.cc", + "util/logging.cc", + "util/options.cc", + "util/status.cc", + ], + stl: "c++_static", +} + +cc_test { + name: "leveldb_test", + defaults: [ + "leveldb_default_flags", + ], + srcs: [ + "db/corruption_test.cc", + "db/dbformat_test.cc", + "db/fault_injection_test.cc", + "db/filename_test.cc", + "db/log_test.cc", + "db/recovery_test.cc", + "db/skiplist_test.cc", + "db/version_set_test.cc", + "db/write_batch_test.cc", + "table/filter_block_test.cc", + "table/table_test.cc", + "util/arena_test.cc", + "util/bloom_test.cc", + "util/cache_test.cc", + "util/coding_test.cc", + "util/crc32c_test.cc", + "util/hash_test.cc", + "util/logging_test.cc", + "util/no_destructor_test.cc", + "util/status_test.cc", + "util/testutil.cc", + "helpers/memenv/memenv.cc", + ], + static_libs: [ + "leveldb", + "libgmock_ndk", + ], + stl: "c++_static", +} + diff --git a/TEST_MAPPING b/TEST_MAPPING new file mode 100644 index 0000000..c45ea6a --- /dev/null +++ b/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "presubmit":[ + { + "name":"leveldb_test" + } + ] +}
\ No newline at end of file |