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
68 'port/port_chromium.cc',
69 'port/port_chromium.h',
81 'src/db/log_format.h',
82 'src/db/log_reader.cc',
83 'src/db/log_reader.h',
84 'src/db/log_writer.cc',
85 'src/db/log_writer.h',
91 'src/db/table_cache.cc',
92 'src/db/table_cache.h',
93 'src/db/version_edit.cc',
94 'src/db/version_edit.h',
95 'src/db/version_set.cc',
96 'src/db/version_set.h',
97 'src/db/write_batch.cc',
98 'src/db/write_batch_internal.h',
99 'src/helpers/memenv/memenv.cc',
100 'src/helpers/memenv/memenv.h',
101 'src/include/leveldb/cache.h',
102 'src/include/leveldb/comparator.h',
103 'src/include/leveldb/db.h',
104 'src/include/leveldb/dumpfile.h',
105 'src/include/leveldb/env.h',
106 'src/include/leveldb/filter_policy.h',
107 'src/include/leveldb/iterator.h',
108 'src/include/leveldb/options.h',
109 'src/include/leveldb/slice.h',
110 'src/include/leveldb/status.h',
111 'src/include/leveldb/table.h',
112 'src/include/leveldb/table_builder.h',
113 'src/include/leveldb/write_batch.h',
115 'src/table/block.cc',
117 'src/table/block_builder.cc',
118 'src/table/block_builder.h',
119 'src/table/filter_block.cc',
120 'src/table/filter_block.h',
121 'src/table/format.cc',
122 'src/table/format.h',
123 'src/table/iterator.cc',
124 'src/table/iterator_wrapper.h',
125 'src/table/merger.cc',
126 'src/table/merger.h',
127 'src/table/table.cc',
128 'src/table/table_builder.cc',
129 'src/table/two_level_iterator.cc',
130 'src/table/two_level_iterator.h',
135 'src/util/coding.cc',
137 'src/util/comparator.cc',
138 'src/util/crc32c.cc',
141 'src/util/filter_policy.cc',
144 'src/util/logging.cc',
145 'src/util/logging.h',
146 'src/util/mutexlock.h',
147 'src/util/options.cc',
149 'src/util/status.cc',
153 'target_name': 'env_chromium_unittests',
154 'type': '<(gtest_target_type)',
157 '../../base/base.gyp:test_support_base',
158 '../../testing/gtest.gyp:gtest',
161 'env_chromium_unittest.cc',
165 'type': 'shared_library',
167 '../../testing/android/native_test.gyp:native_test_native_code',
168 '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
174 'target_name': 'leveldb_testutil',
175 'type': 'static_library',
177 '../../base/base.gyp:base',
180 'export_dependent_settings': [
181 # The tests use include directories from these projects.
182 '../../base/base.gyp:base',
186 'src/util/histogram.cc',
187 'src/util/histogram.h',
188 'src/util/testharness.cc',
189 'src/util/testharness.h',
190 'src/util/testutil.cc',
191 'src/util/testutil.h',
195 'target_name': 'leveldb_arena_test',
196 'type': 'executable',
201 'src/util/arena_test.cc',
205 'target_name': 'leveldb_bloom_test',
206 'type': 'executable',
211 'src/util/bloom_test.cc',
215 'target_name': 'leveldb_cache_test',
216 'type': 'executable',
221 'src/util/cache_test.cc',
225 'target_name': 'leveldb_coding_test',
226 'type': 'executable',
231 'src/util/coding_test.cc',
235 'target_name': 'leveldb_corruption_test',
236 'type': 'executable',
241 'src/db/corruption_test.cc',
245 'target_name': 'leveldb_fault_injection_test',
246 'type': 'executable',
251 'src/db/fault_injection_test.cc',
255 'target_name': 'leveldb_recovery_test',
256 'type': 'executable',
261 'src/db/recovery_test.cc',
265 'target_name': 'leveldb_crc32c_test',
266 'type': 'executable',
271 'src/util/crc32c_test.cc',
275 'target_name': 'leveldb_db_bench',
276 'type': 'executable',
281 'src/db/db_bench.cc',
285 'target_name': 'leveldb_db_test',
286 'type': 'executable',
295 'target_name': 'leveldb_dbformat_test',
296 'type': 'executable',
301 'src/db/dbformat_test.cc',
305 'target_name': 'leveldb_env_test',
306 'type': 'executable',
311 'src/util/env_test.cc',
315 'target_name': 'leveldb_filename_test',
316 'type': 'executable',
321 'src/db/filename_test.cc',
325 'target_name': 'leveldb_filter_block_test',
326 'type': 'executable',
331 'src/table/filter_block_test.cc',
335 'target_name': 'leveldb_log_test',
336 'type': 'executable',
341 'src/db/log_test.cc',
345 'target_name': 'leveldb_skiplist_test',
346 'type': 'executable',
351 'src/db/skiplist_test.cc',
355 'target_name': 'leveldb_table_test',
356 'type': 'executable',
361 'src/table/table_test.cc',
365 'target_name': 'leveldb_version_edit_test',
366 'type': 'executable',
371 'src/db/version_edit_test.cc',
375 'target_name': 'leveldb_write_batch_test',
376 'type': 'executable',
381 'src/db/write_batch_test.cc',
385 'target_name': 'leveldb_main',
386 'type': 'executable',
391 'src/db/leveldb_main.cc',