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
19 'target_name': 'env_chromium_unittests_apk',
22 '<(DEPTH)/base/base.gyp:base_java',
23 'env_chromium_unittests',
26 'test_suite_name': 'env_chromium_unittests',
28 'includes': [ '../../build/apk_test.gypi' ],
34 'LEVELDB_PLATFORM_CHROMIUM=1',
51 'target_name': 'leveldatabase',
52 'type': 'static_library',
54 '../../third_party/re2/re2.gyp:re2',
55 '../../base/base.gyp:base',
56 # base::LazyInstance is a template that pulls in dynamic_annotations so
57 # we need to explictly link in the code for dynamic_annotations.
58 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
63 '../../third_party/snappy/snappy.gyp:snappy',
68 'env_chromium_win.cc',
73 'direct_dependent_settings': {
80 # Patch posted for upstream, can be removed once that's landed and
81 # rolled into Chromium.
82 # Internal link: https://mondrian.corp.google.com/#review/29997992
83 'msvs_disabled_warnings': [
84 # Signed/unsigned comparison.
87 # TODO(jschuh): http://crbug.com/167187 size_t -> int
91 # Include and then exclude so that all files show up in IDEs, even if
95 'env_chromium_stdio.cc',
96 'env_chromium_stdio.h',
98 'port/port_chromium.cc',
99 'port/port_chromium.h',
106 'src/db/filename.cc',
108 'src/db/dbformat.cc',
110 'src/db/log_format.h',
111 'src/db/log_reader.cc',
112 'src/db/log_reader.h',
113 'src/db/log_writer.cc',
114 'src/db/log_writer.h',
115 'src/db/memtable.cc',
120 'src/db/table_cache.cc',
121 'src/db/table_cache.h',
122 'src/db/version_edit.cc',
123 'src/db/version_edit.h',
124 'src/db/version_set.cc',
125 'src/db/version_set.h',
126 'src/db/write_batch.cc',
127 'src/db/write_batch_internal.h',
128 'src/helpers/memenv/memenv.cc',
129 'src/helpers/memenv/memenv.h',
130 'src/include/leveldb/cache.h',
131 'src/include/leveldb/comparator.h',
132 'src/include/leveldb/db.h',
133 'src/include/leveldb/env.h',
134 'src/include/leveldb/filter_policy.h',
135 'src/include/leveldb/iterator.h',
136 'src/include/leveldb/options.h',
137 'src/include/leveldb/slice.h',
138 'src/include/leveldb/status.h',
139 'src/include/leveldb/table.h',
140 'src/include/leveldb/table_builder.h',
141 'src/include/leveldb/write_batch.h',
143 'src/port/port_example.h',
144 'src/port/port_posix.cc',
145 'src/port/port_posix.h',
146 'src/table/block.cc',
148 'src/table/block_builder.cc',
149 'src/table/block_builder.h',
150 'src/table/filter_block.cc',
151 'src/table/filter_block.h',
152 'src/table/format.cc',
153 'src/table/format.h',
154 'src/table/iterator.cc',
155 'src/table/iterator_wrapper.h',
156 'src/table/merger.cc',
157 'src/table/merger.h',
158 'src/table/table.cc',
159 'src/table/table_builder.cc',
160 'src/table/two_level_iterator.cc',
161 'src/table/two_level_iterator.h',
166 'src/util/coding.cc',
168 'src/util/comparator.cc',
169 'src/util/crc32c.cc',
172 'src/util/filter_policy.cc',
175 'src/util/logging.cc',
176 'src/util/logging.h',
177 'src/util/mutexlock.h',
178 'src/util/options.cc',
180 'src/util/status.cc',
183 ['exclude', '_(android|example|portable|posix)\\.cc$'],
187 'target_name': 'env_chromium_unittests',
188 'type': '<(gtest_target_type)',
191 '../../base/base.gyp:test_support_base',
192 '../../testing/gtest.gyp:gtest',
195 'env_chromium_unittest.cc',
199 'type': 'shared_library',
201 '../../testing/android/native_test.gyp:native_test_native_code',
202 '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
208 'target_name': 'leveldb_testutil',
209 'type': 'static_library',
211 '../../base/base.gyp:base',
214 'export_dependent_settings': [
215 # The tests use include directories from these projects.
216 '../../base/base.gyp:base',
220 'src/util/histogram.cc',
221 'src/util/histogram.h',
222 'src/util/testharness.cc',
223 'src/util/testharness.h',
224 'src/util/testutil.cc',
225 'src/util/testutil.h',
229 'target_name': 'leveldb_arena_test',
230 'type': 'executable',
235 'src/util/arena_test.cc',
239 'target_name': 'leveldb_bloom_test',
240 'type': 'executable',
245 'src/util/bloom_test.cc',
249 'target_name': 'leveldb_cache_test',
250 'type': 'executable',
255 'src/util/cache_test.cc',
259 'target_name': 'leveldb_coding_test',
260 'type': 'executable',
265 'src/util/coding_test.cc',
269 'target_name': 'leveldb_corruption_test',
270 'type': 'executable',
275 'src/db/corruption_test.cc',
279 'target_name': 'leveldb_crc32c_test',
280 'type': 'executable',
285 'src/util/crc32c_test.cc',
289 'target_name': 'leveldb_db_bench',
290 'type': 'executable',
295 'src/db/db_bench.cc',
299 'target_name': 'leveldb_db_test',
300 'type': 'executable',
309 'target_name': 'leveldb_dbformat_test',
310 'type': 'executable',
315 'src/db/dbformat_test.cc',
319 'target_name': 'leveldb_env_test',
320 'type': 'executable',
325 'src/util/env_test.cc',
329 'target_name': 'leveldb_filename_test',
330 'type': 'executable',
335 'src/db/filename_test.cc',
339 'target_name': 'leveldb_filter_block_test',
340 'type': 'executable',
345 'src/table/filter_block_test.cc',
349 'target_name': 'leveldb_log_test',
350 'type': 'executable',
355 'src/db/log_test.cc',
359 'target_name': 'leveldb_skiplist_test',
360 'type': 'executable',
365 'src/db/skiplist_test.cc',
369 'target_name': 'leveldb_table_test',
370 'type': 'executable',
375 'src/table/table_test.cc',
379 'target_name': 'leveldb_version_edit_test',
380 'type': 'executable',
385 'src/db/version_edit_test.cc',
389 'target_name': 'leveldb_write_batch_test',
390 'type': 'executable',
395 'src/db/write_batch_test.cc',
399 'target_name': 'leveldb_main',
400 'type': 'executable',
405 'src/db/leveldb_main.cc',
413 # indent-tabs-mode:nil
415 # vim: set expandtab tabstop=2 shiftwidth=2: