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 'sources/': [ ['exclude', '_win.(h|cc)$'], ],
40 'target_name': 'leveldatabase',
41 'type': 'static_library',
43 '../../base/base.gyp:base',
44 # base::LazyInstance is a template that pulls in dynamic_annotations so
45 # we need to explictly link in the code for dynamic_annotations.
46 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
47 '../../third_party/re2/re2.gyp:re2',
48 '../../third_party/snappy/snappy.gyp:snappy',
50 'direct_dependent_settings': {
57 # Patch posted for upstream, can be removed once that's landed and
58 # rolled into Chromium.
59 # Internal link: https://mondrian.corp.google.com/#review/29997992
60 'msvs_disabled_warnings': [
61 # Signed/unsigned comparison.
64 # TODO(jschuh): http://crbug.com/167187 size_t -> int
68 # Include and then exclude so that all files show up in IDEs, even if
74 'port/port_chromium.cc',
75 'port/port_chromium.h',
87 'src/db/log_format.h',
88 'src/db/log_reader.cc',
89 'src/db/log_reader.h',
90 'src/db/log_writer.cc',
91 'src/db/log_writer.h',
97 'src/db/table_cache.cc',
98 'src/db/table_cache.h',
99 'src/db/version_edit.cc',
100 'src/db/version_edit.h',
101 'src/db/version_set.cc',
102 'src/db/version_set.h',
103 'src/db/write_batch.cc',
104 'src/db/write_batch_internal.h',
105 'src/helpers/memenv/memenv.cc',
106 'src/helpers/memenv/memenv.h',
107 'src/include/leveldb/cache.h',
108 'src/include/leveldb/comparator.h',
109 'src/include/leveldb/db.h',
110 'src/include/leveldb/dumpfile.h',
111 'src/include/leveldb/env.h',
112 'src/include/leveldb/filter_policy.h',
113 'src/include/leveldb/iterator.h',
114 'src/include/leveldb/options.h',
115 'src/include/leveldb/slice.h',
116 'src/include/leveldb/status.h',
117 'src/include/leveldb/table.h',
118 'src/include/leveldb/table_builder.h',
119 'src/include/leveldb/write_batch.h',
121 'src/port/port_example.h',
122 'src/port/port_posix.cc',
123 'src/port/port_posix.h',
124 'src/table/block.cc',
126 'src/table/block_builder.cc',
127 'src/table/block_builder.h',
128 'src/table/filter_block.cc',
129 'src/table/filter_block.h',
130 'src/table/format.cc',
131 'src/table/format.h',
132 'src/table/iterator.cc',
133 'src/table/iterator_wrapper.h',
134 'src/table/merger.cc',
135 'src/table/merger.h',
136 'src/table/table.cc',
137 'src/table/table_builder.cc',
138 'src/table/two_level_iterator.cc',
139 'src/table/two_level_iterator.h',
144 'src/util/coding.cc',
146 'src/util/comparator.cc',
147 'src/util/crc32c.cc',
150 'src/util/filter_policy.cc',
153 'src/util/logging.cc',
154 'src/util/logging.h',
155 'src/util/mutexlock.h',
156 'src/util/options.cc',
158 'src/util/status.cc',
161 ['exclude', '_(example|posix)\\.(h|cc)$'],
165 'target_name': 'env_chromium_unittests',
166 'type': '<(gtest_target_type)',
169 '../../base/base.gyp:test_support_base',
170 '../../testing/gtest.gyp:gtest',
173 'env_chromium_unittest.cc',
177 'type': 'shared_library',
179 '../../testing/android/native_test.gyp:native_test_native_code',
180 '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
186 'target_name': 'leveldb_testutil',
187 'type': 'static_library',
189 '../../base/base.gyp:base',
192 'export_dependent_settings': [
193 # The tests use include directories from these projects.
194 '../../base/base.gyp:base',
198 'src/util/histogram.cc',
199 'src/util/histogram.h',
200 'src/util/testharness.cc',
201 'src/util/testharness.h',
202 'src/util/testutil.cc',
203 'src/util/testutil.h',
207 'target_name': 'leveldb_arena_test',
208 'type': 'executable',
213 'src/util/arena_test.cc',
217 'target_name': 'leveldb_bloom_test',
218 'type': 'executable',
223 'src/util/bloom_test.cc',
227 'target_name': 'leveldb_cache_test',
228 'type': 'executable',
233 'src/util/cache_test.cc',
237 'target_name': 'leveldb_coding_test',
238 'type': 'executable',
243 'src/util/coding_test.cc',
247 'target_name': 'leveldb_corruption_test',
248 'type': 'executable',
253 'src/db/corruption_test.cc',
257 'target_name': 'leveldb_fault_injection_test',
258 'type': 'executable',
263 'src/db/fault_injection_test.cc',
267 'target_name': 'leveldb_recovery_test',
268 'type': 'executable',
273 'src/db/recovery_test.cc',
277 'target_name': 'leveldb_crc32c_test',
278 'type': 'executable',
283 'src/util/crc32c_test.cc',
287 'target_name': 'leveldb_db_bench',
288 'type': 'executable',
293 'src/db/db_bench.cc',
297 'target_name': 'leveldb_db_test',
298 'type': 'executable',
307 'target_name': 'leveldb_dbformat_test',
308 'type': 'executable',
313 'src/db/dbformat_test.cc',
317 'target_name': 'leveldb_env_test',
318 'type': 'executable',
323 'src/util/env_test.cc',
327 'target_name': 'leveldb_filename_test',
328 'type': 'executable',
333 'src/db/filename_test.cc',
337 'target_name': 'leveldb_filter_block_test',
338 'type': 'executable',
343 'src/table/filter_block_test.cc',
347 'target_name': 'leveldb_log_test',
348 'type': 'executable',
353 'src/db/log_test.cc',
357 'target_name': 'leveldb_skiplist_test',
358 'type': 'executable',
363 'src/db/skiplist_test.cc',
367 'target_name': 'leveldb_table_test',
368 'type': 'executable',
373 'src/table/table_test.cc',
377 'target_name': 'leveldb_version_edit_test',
378 'type': 'executable',
383 'src/db/version_edit_test.cc',
387 'target_name': 'leveldb_write_batch_test',
388 'type': 'executable',
393 'src/db/write_batch_test.cc',
397 'target_name': 'leveldb_main',
398 'type': 'executable',
403 'src/db/leveldb_main.cc',