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.
10 ['OS == "android" and android_webview_build == 1', {
12 # Snappy not used in Android WebView
20 'LEVELDB_PLATFORM_CHROMIUM=1',
42 'target_name': 'leveldatabase',
43 'type': 'static_library',
45 '../../base/base.gyp:base',
46 # base::LazyInstance is a template that pulls in dynamic_annotations so
47 # we need to explictly link in the code for dynamic_annotations.
48 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
54 '../../third_party/snappy/snappy.gyp:snappy',
58 'direct_dependent_settings': {
72 # Patch posted for upstream, can be removed once that's landed and
73 # rolled into Chromium.
74 # Internal link: https://mondrian.corp.google.com/#review/29997992
75 'msvs_disabled_warnings': [
76 # Signed/unsigned comparison.
79 # TODO(jschuh): http://crbug.com/167187 size_t -> int
83 # Include and then exclude so that all files show up in IDEs, even if
88 'port/port_chromium.cc',
89 '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/env.h',
124 'src/include/leveldb/filter_policy.h',
125 'src/include/leveldb/iterator.h',
126 'src/include/leveldb/options.h',
127 'src/include/leveldb/slice.h',
128 'src/include/leveldb/status.h',
129 'src/include/leveldb/table.h',
130 'src/include/leveldb/table_builder.h',
131 'src/include/leveldb/write_batch.h',
133 'src/port/port_example.h',
134 'src/port/port_posix.cc',
135 'src/port/port_posix.h',
136 'src/table/block.cc',
138 'src/table/block_builder.cc',
139 'src/table/block_builder.h',
140 'src/table/filter_block.cc',
141 'src/table/filter_block.h',
142 'src/table/format.cc',
143 'src/table/format.h',
144 'src/table/iterator.cc',
145 'src/table/iterator_wrapper.h',
146 'src/table/merger.cc',
147 'src/table/merger.h',
148 'src/table/table.cc',
149 'src/table/table_builder.cc',
150 'src/table/two_level_iterator.cc',
151 'src/table/two_level_iterator.h',
156 'src/util/coding.cc',
158 'src/util/comparator.cc',
159 'src/util/crc32c.cc',
162 'src/util/filter_policy.cc',
165 'src/util/logging.cc',
166 'src/util/logging.h',
167 'src/util/mutexlock.h',
168 'src/util/options.cc',
170 'src/util/status.cc',
173 ['exclude', '_(android|example|portable|posix)\\.cc$'],
177 'target_name': 'env_chromium_unittests',
178 'type': '<(gtest_target_type)',
181 '../../base/base.gyp:test_support_base',
182 '../../testing/gtest.gyp:gtest',
185 'env_chromium_unittest.cc',
189 'target_name': 'leveldb_testutil',
190 'type': 'static_library',
192 '../../base/base.gyp:base',
195 'export_dependent_settings': [
196 # The tests use include directories from these projects.
197 '../../base/base.gyp:base',
201 'src/util/histogram.cc',
202 'src/util/histogram.h',
203 'src/util/testharness.cc',
204 'src/util/testharness.h',
205 'src/util/testutil.cc',
206 'src/util/testutil.h',
210 'target_name': 'leveldb_arena_test',
211 'type': 'executable',
216 'src/util/arena_test.cc',
220 'target_name': 'leveldb_bloom_test',
221 'type': 'executable',
226 'src/util/bloom_test.cc',
230 'target_name': 'leveldb_cache_test',
231 'type': 'executable',
236 'src/util/cache_test.cc',
240 'target_name': 'leveldb_coding_test',
241 'type': 'executable',
246 'src/util/coding_test.cc',
250 'target_name': 'leveldb_corruption_test',
251 'type': 'executable',
256 'src/db/corruption_test.cc',
260 'target_name': 'leveldb_crc32c_test',
261 'type': 'executable',
266 'src/util/crc32c_test.cc',
270 'target_name': 'leveldb_db_bench',
271 'type': 'executable',
276 'src/db/db_bench.cc',
280 'target_name': 'leveldb_db_test',
281 'type': 'executable',
290 'target_name': 'leveldb_dbformat_test',
291 'type': 'executable',
296 'src/db/dbformat_test.cc',
300 'target_name': 'leveldb_env_test',
301 'type': 'executable',
306 'src/util/env_test.cc',
310 'target_name': 'leveldb_filename_test',
311 'type': 'executable',
316 'src/db/filename_test.cc',
320 'target_name': 'leveldb_filter_block_test',
321 'type': 'executable',
326 'src/table/filter_block_test.cc',
330 'target_name': 'leveldb_log_test',
331 'type': 'executable',
336 'src/db/log_test.cc',
340 'target_name': 'leveldb_skiplist_test',
341 'type': 'executable',
346 'src/db/skiplist_test.cc',
350 'target_name': 'leveldb_table_test',
351 'type': 'executable',
356 'src/table/table_test.cc',
360 'target_name': 'leveldb_version_edit_test',
361 'type': 'executable',
366 'src/db/version_edit_test.cc',
370 'target_name': 'leveldb_write_batch_test',
371 'type': 'executable',
376 'src/db/write_batch_test.cc',
384 # indent-tabs-mode:nil
386 # vim: set expandtab tabstop=2 shiftwidth=2: