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.
9 'target_name': 'env_chromium_unittests_apk',
12 '<(DEPTH)/base/base.gyp:base_java',
13 'env_chromium_unittests',
16 'test_suite_name': 'env_chromium_unittests',
18 'includes': [ '../../build/apk_test.gypi' ],
24 'LEVELDB_PLATFORM_CHROMIUM=1',
34 'target_name': 'leveldatabase',
35 'type': 'static_library',
37 '../../base/base.gyp:base',
38 # base::LazyInstance is a template that pulls in dynamic_annotations so
39 # we need to explictly link in the code for dynamic_annotations.
40 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
41 '../../third_party/re2/re2.gyp:re2',
42 '../../third_party/snappy/snappy.gyp:snappy',
44 'direct_dependent_settings': {
51 # Patch posted for upstream, can be removed once that's landed and
52 # rolled into Chromium.
53 # Internal link: https://mondrian.corp.google.com/#review/29997992
54 'msvs_disabled_warnings': [
55 # Signed/unsigned comparison.
58 # TODO(jschuh): http://crbug.com/167187 size_t -> int
62 # Include and then exclude so that all files show up in IDEs, even if
67 'port/port_chromium.cc',
68 'port/port_chromium.h',
80 'src/db/log_format.h',
81 'src/db/log_reader.cc',
82 'src/db/log_reader.h',
83 'src/db/log_writer.cc',
84 'src/db/log_writer.h',
90 'src/db/table_cache.cc',
91 'src/db/table_cache.h',
92 'src/db/version_edit.cc',
93 'src/db/version_edit.h',
94 'src/db/version_set.cc',
95 'src/db/version_set.h',
96 'src/db/write_batch.cc',
97 'src/db/write_batch_internal.h',
98 'src/helpers/memenv/memenv.cc',
99 'src/helpers/memenv/memenv.h',
100 'src/include/leveldb/cache.h',
101 'src/include/leveldb/comparator.h',
102 'src/include/leveldb/db.h',
103 'src/include/leveldb/dumpfile.h',
104 'src/include/leveldb/env.h',
105 'src/include/leveldb/filter_policy.h',
106 'src/include/leveldb/iterator.h',
107 'src/include/leveldb/options.h',
108 'src/include/leveldb/slice.h',
109 'src/include/leveldb/status.h',
110 'src/include/leveldb/table.h',
111 'src/include/leveldb/table_builder.h',
112 'src/include/leveldb/write_batch.h',
114 'src/table/block.cc',
116 'src/table/block_builder.cc',
117 'src/table/block_builder.h',
118 'src/table/filter_block.cc',
119 'src/table/filter_block.h',
120 'src/table/format.cc',
121 'src/table/format.h',
122 'src/table/iterator.cc',
123 'src/table/iterator_wrapper.h',
124 'src/table/merger.cc',
125 'src/table/merger.h',
126 'src/table/table.cc',
127 'src/table/table_builder.cc',
128 'src/table/two_level_iterator.cc',
129 'src/table/two_level_iterator.h',
134 'src/util/coding.cc',
136 'src/util/comparator.cc',
137 'src/util/crc32c.cc',
140 'src/util/filter_policy.cc',
143 'src/util/logging.cc',
144 'src/util/logging.h',
145 'src/util/mutexlock.h',
146 'src/util/options.cc',
148 'src/util/status.cc',
152 'target_name': 'env_chromium_unittests',
153 'type': '<(gtest_target_type)',
156 '../../base/base.gyp:test_support_base',
157 '../../testing/gtest.gyp:gtest',
160 'env_chromium_unittest.cc',
164 'type': 'shared_library',
166 '../../testing/android/native_test.gyp:native_test_native_code',
167 '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
173 'target_name': 'leveldb_testutil',
174 'type': 'static_library',
176 '../../base/base.gyp:base',
179 'export_dependent_settings': [
180 # The tests use include directories from these projects.
181 '../../base/base.gyp:base',
185 'src/util/histogram.cc',
186 'src/util/histogram.h',
187 'src/util/testharness.cc',
188 'src/util/testharness.h',
189 'src/util/testutil.cc',
190 'src/util/testutil.h',
194 'target_name': 'leveldb_arena_test',
195 'type': 'executable',
200 'src/util/arena_test.cc',
204 'target_name': 'leveldb_bloom_test',
205 'type': 'executable',
210 'src/util/bloom_test.cc',
214 'target_name': 'leveldb_cache_test',
215 'type': 'executable',
220 'src/util/cache_test.cc',
224 'target_name': 'leveldb_coding_test',
225 'type': 'executable',
230 'src/util/coding_test.cc',
234 'target_name': 'leveldb_corruption_test',
235 'type': 'executable',
240 'src/db/corruption_test.cc',
244 'target_name': 'leveldb_fault_injection_test',
245 'type': 'executable',
250 'src/db/fault_injection_test.cc',
254 'target_name': 'leveldb_recovery_test',
255 'type': 'executable',
260 'src/db/recovery_test.cc',
264 'target_name': 'leveldb_crc32c_test',
265 'type': 'executable',
270 'src/util/crc32c_test.cc',
274 'target_name': 'leveldb_db_bench',
275 'type': 'executable',
280 'src/db/db_bench.cc',
284 'target_name': 'leveldb_db_test',
285 'type': 'executable',
294 'target_name': 'leveldb_dbformat_test',
295 'type': 'executable',
300 'src/db/dbformat_test.cc',
304 'target_name': 'leveldb_env_test',
305 'type': 'executable',
310 'src/util/env_test.cc',
314 'target_name': 'leveldb_filename_test',
315 'type': 'executable',
320 'src/db/filename_test.cc',
324 'target_name': 'leveldb_filter_block_test',
325 'type': 'executable',
330 'src/table/filter_block_test.cc',
334 'target_name': 'leveldb_log_test',
335 'type': 'executable',
340 'src/db/log_test.cc',
344 'target_name': 'leveldb_skiplist_test',
345 'type': 'executable',
350 'src/db/skiplist_test.cc',
354 'target_name': 'leveldb_table_test',
355 'type': 'executable',
360 'src/table/table_test.cc',
364 'target_name': 'leveldb_version_edit_test',
365 'type': 'executable',
370 'src/db/version_edit_test.cc',
374 'target_name': 'leveldb_write_batch_test',
375 'type': 'executable',
380 'src/db/write_batch_test.cc',
384 'target_name': 'leveldb_main',
385 'type': 'executable',
390 'src/db/leveldb_main.cc',