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.
12 'target_name': 'env_chromium_unittests_apk',
15 '<(DEPTH)/base/base.gyp:base_java',
16 'env_chromium_unittests',
19 'test_suite_name': 'env_chromium_unittests',
21 'includes': [ '../../build/apk_test.gypi' ],
27 'LEVELDB_PLATFORM_CHROMIUM=1',
36 'sources/': [ ['exclude', '_win.(h|cc)$'], ],
47 'target_name': 'leveldatabase',
48 'type': 'static_library',
50 '../../third_party/re2/re2.gyp:re2',
51 '../../base/base.gyp:base',
52 # base::LazyInstance is a template that pulls in dynamic_annotations so
53 # we need to explictly link in the code for dynamic_annotations.
54 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
59 '../../third_party/snappy/snappy.gyp:snappy',
63 'direct_dependent_settings': {
70 # Patch posted for upstream, can be removed once that's landed and
71 # rolled into Chromium.
72 # Internal link: https://mondrian.corp.google.com/#review/29997992
73 'msvs_disabled_warnings': [
74 # Signed/unsigned comparison.
77 # TODO(jschuh): http://crbug.com/167187 size_t -> int
81 # Include and then exclude so that all files show up in IDEs, even if
87 'port/port_chromium.cc',
88 'port/port_chromium.h',
100 'src/db/log_format.h',
101 'src/db/log_reader.cc',
102 'src/db/log_reader.h',
103 'src/db/log_writer.cc',
104 'src/db/log_writer.h',
105 'src/db/memtable.cc',
110 'src/db/table_cache.cc',
111 'src/db/table_cache.h',
112 'src/db/version_edit.cc',
113 'src/db/version_edit.h',
114 'src/db/version_set.cc',
115 'src/db/version_set.h',
116 'src/db/write_batch.cc',
117 'src/db/write_batch_internal.h',
118 'src/helpers/memenv/memenv.cc',
119 'src/helpers/memenv/memenv.h',
120 'src/include/leveldb/cache.h',
121 'src/include/leveldb/comparator.h',
122 'src/include/leveldb/db.h',
123 'src/include/leveldb/dumpfile.h',
124 'src/include/leveldb/env.h',
125 'src/include/leveldb/filter_policy.h',
126 'src/include/leveldb/iterator.h',
127 'src/include/leveldb/options.h',
128 'src/include/leveldb/slice.h',
129 'src/include/leveldb/status.h',
130 'src/include/leveldb/table.h',
131 'src/include/leveldb/table_builder.h',
132 'src/include/leveldb/write_batch.h',
134 'src/port/port_example.h',
135 'src/port/port_posix.cc',
136 'src/port/port_posix.h',
137 'src/table/block.cc',
139 'src/table/block_builder.cc',
140 'src/table/block_builder.h',
141 'src/table/filter_block.cc',
142 'src/table/filter_block.h',
143 'src/table/format.cc',
144 'src/table/format.h',
145 'src/table/iterator.cc',
146 'src/table/iterator_wrapper.h',
147 'src/table/merger.cc',
148 'src/table/merger.h',
149 'src/table/table.cc',
150 'src/table/table_builder.cc',
151 'src/table/two_level_iterator.cc',
152 'src/table/two_level_iterator.h',
157 'src/util/coding.cc',
159 'src/util/comparator.cc',
160 'src/util/crc32c.cc',
163 'src/util/filter_policy.cc',
166 'src/util/logging.cc',
167 'src/util/logging.h',
168 'src/util/mutexlock.h',
169 'src/util/options.cc',
171 'src/util/status.cc',
174 ['exclude', '_(example|posix)\\.(h|cc)$'],
178 'target_name': 'env_chromium_unittests',
179 'type': '<(gtest_target_type)',
182 '../../base/base.gyp:test_support_base',
183 '../../testing/gtest.gyp:gtest',
186 'env_chromium_unittest.cc',
190 'type': 'shared_library',
192 '../../testing/android/native_test.gyp:native_test_native_code',
193 '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
199 'target_name': 'leveldb_testutil',
200 'type': 'static_library',
202 '../../base/base.gyp:base',
205 'export_dependent_settings': [
206 # The tests use include directories from these projects.
207 '../../base/base.gyp:base',
211 'src/util/histogram.cc',
212 'src/util/histogram.h',
213 'src/util/testharness.cc',
214 'src/util/testharness.h',
215 'src/util/testutil.cc',
216 'src/util/testutil.h',
220 'target_name': 'leveldb_arena_test',
221 'type': 'executable',
226 'src/util/arena_test.cc',
230 'target_name': 'leveldb_bloom_test',
231 'type': 'executable',
236 'src/util/bloom_test.cc',
240 'target_name': 'leveldb_cache_test',
241 'type': 'executable',
246 'src/util/cache_test.cc',
250 'target_name': 'leveldb_coding_test',
251 'type': 'executable',
256 'src/util/coding_test.cc',
260 'target_name': 'leveldb_corruption_test',
261 'type': 'executable',
266 'src/db/corruption_test.cc',
270 'target_name': 'leveldb_fault_injection_test',
271 'type': 'executable',
276 'src/db/fault_injection_test.cc',
280 'target_name': 'leveldb_recovery_test',
281 'type': 'executable',
286 'src/db/recovery_test.cc',
290 'target_name': 'leveldb_crc32c_test',
291 'type': 'executable',
296 'src/util/crc32c_test.cc',
300 'target_name': 'leveldb_db_bench',
301 'type': 'executable',
306 'src/db/db_bench.cc',
310 'target_name': 'leveldb_db_test',
311 'type': 'executable',
320 'target_name': 'leveldb_dbformat_test',
321 'type': 'executable',
326 'src/db/dbformat_test.cc',
330 'target_name': 'leveldb_env_test',
331 'type': 'executable',
336 'src/util/env_test.cc',
340 'target_name': 'leveldb_filename_test',
341 'type': 'executable',
346 'src/db/filename_test.cc',
350 'target_name': 'leveldb_filter_block_test',
351 'type': 'executable',
356 'src/table/filter_block_test.cc',
360 'target_name': 'leveldb_log_test',
361 'type': 'executable',
366 'src/db/log_test.cc',
370 'target_name': 'leveldb_skiplist_test',
371 'type': 'executable',
376 'src/db/skiplist_test.cc',
380 'target_name': 'leveldb_table_test',
381 'type': 'executable',
386 'src/table/table_test.cc',
390 'target_name': 'leveldb_version_edit_test',
391 'type': 'executable',
396 'src/db/version_edit_test.cc',
400 'target_name': 'leveldb_write_batch_test',
401 'type': 'executable',
406 'src/db/write_batch_test.cc',
410 'target_name': 'leveldb_main',
411 'type': 'executable',
416 'src/db/leveldb_main.cc',
424 # indent-tabs-mode:nil
426 # vim: set expandtab tabstop=2 shiftwidth=2: