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.
11 'LEVELDB_PLATFORM_CHROMIUM=1',
33 'target_name': 'leveldatabase',
34 'type': 'static_library',
36 '../../base/base.gyp:base',
37 # base::LazyInstance is a template that pulls in dynamic_annotations so
38 # we need to explictly link in the code for dynamic_annotations.
39 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
44 '../../third_party/snappy/snappy.gyp:snappy',
48 'direct_dependent_settings': {
62 # Patch posted for upstream, can be removed once that's landed and
63 # rolled into Chromium.
64 # Internal link: https://mondrian.corp.google.com/#review/29997992
65 'msvs_disabled_warnings': [
66 # Signed/unsigned comparison.
69 # TODO(jschuh): http://crbug.com/167187 size_t -> int
73 # Include and then exclude so that all files show up in IDEs, even if
77 'port/port_chromium.cc',
78 'port/port_chromium.h',
89 'src/db/log_format.h',
90 'src/db/log_reader.cc',
91 'src/db/log_reader.h',
92 'src/db/log_writer.cc',
93 'src/db/log_writer.h',
99 'src/db/table_cache.cc',
100 'src/db/table_cache.h',
101 'src/db/version_edit.cc',
102 'src/db/version_edit.h',
103 'src/db/version_set.cc',
104 'src/db/version_set.h',
105 'src/db/write_batch.cc',
106 'src/db/write_batch_internal.h',
107 'src/helpers/memenv/memenv.cc',
108 'src/helpers/memenv/memenv.h',
109 'src/include/leveldb/cache.h',
110 'src/include/leveldb/comparator.h',
111 'src/include/leveldb/db.h',
112 'src/include/leveldb/env.h',
113 'src/include/leveldb/filter_policy.h',
114 'src/include/leveldb/iterator.h',
115 'src/include/leveldb/options.h',
116 'src/include/leveldb/slice.h',
117 'src/include/leveldb/status.h',
118 'src/include/leveldb/table.h',
119 'src/include/leveldb/table_builder.h',
120 'src/include/leveldb/write_batch.h',
122 'src/port/port_example.h',
123 'src/port/port_posix.cc',
124 'src/port/port_posix.h',
125 'src/table/block.cc',
127 'src/table/block_builder.cc',
128 'src/table/block_builder.h',
129 'src/table/filter_block.cc',
130 'src/table/filter_block.h',
131 'src/table/format.cc',
132 'src/table/format.h',
133 'src/table/iterator.cc',
134 'src/table/iterator_wrapper.h',
135 'src/table/merger.cc',
136 'src/table/merger.h',
137 'src/table/table.cc',
138 'src/table/table_builder.cc',
139 'src/table/two_level_iterator.cc',
140 'src/table/two_level_iterator.h',
145 'src/util/coding.cc',
147 'src/util/comparator.cc',
148 'src/util/crc32c.cc',
151 'src/util/filter_policy.cc',
154 'src/util/logging.cc',
155 'src/util/logging.h',
156 'src/util/mutexlock.h',
157 'src/util/options.cc',
159 'src/util/status.cc',
162 ['exclude', '_(android|example|portable|posix)\\.cc$'],
166 'target_name': 'leveldb_testutil',
167 'type': 'static_library',
169 '../../base/base.gyp:base',
172 'export_dependent_settings': [
173 # The tests use include directories from these projects.
174 '../../base/base.gyp:base',
178 'src/util/histogram.cc',
179 'src/util/histogram.h',
180 'src/util/testharness.cc',
181 'src/util/testharness.h',
182 'src/util/testutil.cc',
183 'src/util/testutil.h',
187 'target_name': 'leveldb_arena_test',
188 'type': 'executable',
193 'src/util/arena_test.cc',
197 'target_name': 'leveldb_bloom_test',
198 'type': 'executable',
203 'src/util/bloom_test.cc',
207 'target_name': 'leveldb_cache_test',
208 'type': 'executable',
213 'src/util/cache_test.cc',
217 'target_name': 'leveldb_coding_test',
218 'type': 'executable',
223 'src/util/coding_test.cc',
227 'target_name': 'leveldb_corruption_test',
228 'type': 'executable',
233 'src/db/corruption_test.cc',
237 'target_name': 'leveldb_crc32c_test',
238 'type': 'executable',
243 'src/util/crc32c_test.cc',
247 'target_name': 'leveldb_db_bench',
248 'type': 'executable',
253 'src/db/db_bench.cc',
257 'target_name': 'leveldb_db_test',
258 'type': 'executable',
267 'target_name': 'leveldb_dbformat_test',
268 'type': 'executable',
273 'src/db/dbformat_test.cc',
277 'target_name': 'leveldb_env_test',
278 'type': 'executable',
283 'src/util/env_test.cc',
287 'target_name': 'leveldb_filename_test',
288 'type': 'executable',
293 'src/db/filename_test.cc',
297 'target_name': 'leveldb_filter_block_test',
298 'type': 'executable',
303 'src/table/filter_block_test.cc',
307 'target_name': 'leveldb_log_test',
308 'type': 'executable',
313 'src/db/log_test.cc',
317 'target_name': 'leveldb_skiplist_test',
318 'type': 'executable',
323 'src/db/skiplist_test.cc',
327 'target_name': 'leveldb_table_test',
328 'type': 'executable',
333 'src/table/table_test.cc',
337 'target_name': 'leveldb_version_edit_test',
338 'type': 'executable',
343 'src/db/version_edit_test.cc',
347 'target_name': 'leveldb_write_batch_test',
348 'type': 'executable',
353 'src/db/write_batch_test.cc',
361 # indent-tabs-mode:nil
363 # vim: set expandtab tabstop=2 shiftwidth=2: