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',
37 'target_name': 'leveldatabase',
38 'type': 'static_library',
40 '../../<(gyp_output_dir)/gn_gyp/third_party/re2/re2.gyp:re2',
41 '../../base/base.gyp:base',
42 # base::LazyInstance is a template that pulls in dynamic_annotations so
43 # we need to explictly link in the code for dynamic_annotations.
44 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
49 '../../third_party/snappy/snappy.gyp:snappy',
53 'direct_dependent_settings': {
60 # Patch posted for upstream, can be removed once that's landed and
61 # rolled into Chromium.
62 # Internal link: https://mondrian.corp.google.com/#review/29997992
63 'msvs_disabled_warnings': [
64 # Signed/unsigned comparison.
67 # TODO(jschuh): http://crbug.com/167187 size_t -> int
71 # Include and then exclude so that all files show up in IDEs, even if
76 'port/port_chromium.cc',
77 'port/port_chromium.h',
88 'src/db/log_format.h',
89 'src/db/log_reader.cc',
90 'src/db/log_reader.h',
91 'src/db/log_writer.cc',
92 'src/db/log_writer.h',
98 'src/db/table_cache.cc',
99 'src/db/table_cache.h',
100 'src/db/version_edit.cc',
101 'src/db/version_edit.h',
102 'src/db/version_set.cc',
103 'src/db/version_set.h',
104 'src/db/write_batch.cc',
105 'src/db/write_batch_internal.h',
106 'src/helpers/memenv/memenv.cc',
107 'src/helpers/memenv/memenv.h',
108 'src/include/leveldb/cache.h',
109 'src/include/leveldb/comparator.h',
110 'src/include/leveldb/db.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', '_(android|example|portable|posix)\\.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 'target_name': 'leveldb_testutil',
178 'type': 'static_library',
180 '../../base/base.gyp:base',
183 'export_dependent_settings': [
184 # The tests use include directories from these projects.
185 '../../base/base.gyp:base',
189 'src/util/histogram.cc',
190 'src/util/histogram.h',
191 'src/util/testharness.cc',
192 'src/util/testharness.h',
193 'src/util/testutil.cc',
194 'src/util/testutil.h',
198 'target_name': 'leveldb_arena_test',
199 'type': 'executable',
204 'src/util/arena_test.cc',
208 'target_name': 'leveldb_bloom_test',
209 'type': 'executable',
214 'src/util/bloom_test.cc',
218 'target_name': 'leveldb_cache_test',
219 'type': 'executable',
224 'src/util/cache_test.cc',
228 'target_name': 'leveldb_coding_test',
229 'type': 'executable',
234 'src/util/coding_test.cc',
238 'target_name': 'leveldb_corruption_test',
239 'type': 'executable',
244 'src/db/corruption_test.cc',
248 'target_name': 'leveldb_crc32c_test',
249 'type': 'executable',
254 'src/util/crc32c_test.cc',
258 'target_name': 'leveldb_db_bench',
259 'type': 'executable',
264 'src/db/db_bench.cc',
268 'target_name': 'leveldb_db_test',
269 'type': 'executable',
278 'target_name': 'leveldb_dbformat_test',
279 'type': 'executable',
284 'src/db/dbformat_test.cc',
288 'target_name': 'leveldb_env_test',
289 'type': 'executable',
294 'src/util/env_test.cc',
298 'target_name': 'leveldb_filename_test',
299 'type': 'executable',
304 'src/db/filename_test.cc',
308 'target_name': 'leveldb_filter_block_test',
309 'type': 'executable',
314 'src/table/filter_block_test.cc',
318 'target_name': 'leveldb_log_test',
319 'type': 'executable',
324 'src/db/log_test.cc',
328 'target_name': 'leveldb_skiplist_test',
329 'type': 'executable',
334 'src/db/skiplist_test.cc',
338 'target_name': 'leveldb_table_test',
339 'type': 'executable',
344 'src/table/table_test.cc',
348 'target_name': 'leveldb_version_edit_test',
349 'type': 'executable',
354 'src/db/version_edit_test.cc',
358 'target_name': 'leveldb_write_batch_test',
359 'type': 'executable',
364 'src/db/write_batch_test.cc',
372 # indent-tabs-mode:nil
374 # vim: set expandtab tabstop=2 shiftwidth=2: