Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: build/secondary/third_party/leveldatabase/BUILD.gn

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing explicits. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | mojo/devtools/common/mojo_test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium 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.
4
5 defines = [ "LEVELDB_PLATFORM_POSIX=1" ]
6
7 if (is_android) {
8 defines += [ "OS_ANDROID=1" ]
9 }
10
11 # Snappy is a compression library we use.
12 # TODO(brettw) It's not clear why this needs to be parameterized.
13
14 import("//testing/test.gni")
15
16 use_snappy = true
17
18 config("leveldatabase_config") {
19 include_dirs = [
20 ".",
21 "src",
22 "src/include",
23 ]
24 }
25
26 static_library("leveldatabase") {
27 sources = [
28 "src/db/builder.cc",
29 "src/db/builder.h",
30 "src/db/db_impl.cc",
31 "src/db/db_impl.h",
32 "src/db/db_iter.cc",
33 "src/db/db_iter.h",
34 "src/db/dbformat.cc",
35 "src/db/dbformat.h",
36 "src/db/filename.cc",
37 "src/db/filename.h",
38 "src/db/log_format.h",
39 "src/db/log_reader.cc",
40 "src/db/log_reader.h",
41 "src/db/log_writer.cc",
42 "src/db/log_writer.h",
43 "src/db/memtable.cc",
44 "src/db/memtable.h",
45 "src/db/repair.cc",
46 "src/db/skiplist.h",
47 "src/db/snapshot.h",
48 "src/db/table_cache.cc",
49 "src/db/table_cache.h",
50 "src/db/version_edit.cc",
51 "src/db/version_edit.h",
52 "src/db/version_set.cc",
53 "src/db/version_set.h",
54 "src/db/write_batch.cc",
55 "src/db/write_batch_internal.h",
56 "src/helpers/memenv/memenv.cc",
57 "src/helpers/memenv/memenv.h",
58 "src/include/leveldb/cache.h",
59 "src/include/leveldb/comparator.h",
60 "src/include/leveldb/db.h",
61 "src/include/leveldb/env.h",
62 "src/include/leveldb/filter_policy.h",
63 "src/include/leveldb/iterator.h",
64 "src/include/leveldb/options.h",
65 "src/include/leveldb/slice.h",
66 "src/include/leveldb/status.h",
67 "src/include/leveldb/table.h",
68 "src/include/leveldb/table_builder.h",
69 "src/include/leveldb/write_batch.h",
70 "src/port/port.h",
71 "src/port/port_example.h",
72 "src/port/port_posix.cc",
73 "src/port/port_posix.h",
74 "src/table/block.cc",
75 "src/table/block.h",
76 "src/table/block_builder.cc",
77 "src/table/block_builder.h",
78 "src/table/filter_block.cc",
79 "src/table/filter_block.h",
80 "src/table/format.cc",
81 "src/table/format.h",
82 "src/table/iterator.cc",
83 "src/table/iterator_wrapper.h",
84 "src/table/merger.cc",
85 "src/table/merger.h",
86 "src/table/table.cc",
87 "src/table/table_builder.cc",
88 "src/table/two_level_iterator.cc",
89 "src/table/two_level_iterator.h",
90 "src/util/arena.cc",
91 "src/util/arena.h",
92 "src/util/bloom.cc",
93 "src/util/cache.cc",
94 "src/util/coding.cc",
95 "src/util/coding.h",
96 "src/util/comparator.cc",
97 "src/util/crc32c.cc",
98 "src/util/crc32c.h",
99 "src/util/env.cc",
100 "src/util/env_posix.cc",
101 "src/util/filter_policy.cc",
102 "src/util/hash.cc",
103 "src/util/hash.h",
104 "src/util/logging.cc",
105 "src/util/logging.h",
106 "src/util/mutexlock.h",
107 "src/util/options.cc",
108 "src/util/random.h",
109 "src/util/status.cc",
110 ]
111
112 configs -= [ "//build/config/compiler:chromium_code" ]
113 configs += [ "//build/config/compiler:no_chromium_code" ]
114
115 public_configs = [ ":leveldatabase_config" ]
116
117 deps = [
118 "//base",
119 "//base/third_party/dynamic_annotations",
120 ]
121
122 if (use_snappy) {
123 defines += [ "USE_SNAPPY=1" ]
124 deps += [ "//third_party/snappy" ]
125 }
126 }
127
128 if (!is_android) {
129 static_library("leveldb_testutil") {
130 sources = [
131 "src/util/histogram.cc",
132 "src/util/histogram.h",
133 "src/util/testharness.cc",
134 "src/util/testharness.h",
135 "src/util/testutil.cc",
136 "src/util/testutil.h",
137 ]
138
139 configs -= [ "//build/config/compiler:chromium_code" ]
140 configs += [ "//build/config/compiler:no_chromium_code" ]
141
142 public_deps = [
143 ":leveldatabase",
144 ]
145 deps = [
146 "//base",
147 ]
148 }
149
150 test("leveldb_arena_test") {
151 sources = [
152 "src/util/arena_test.cc",
153 ]
154 configs -= [ "//build/config/compiler:chromium_code" ]
155 configs += [ "//build/config/compiler:no_chromium_code" ]
156 deps = [
157 ":leveldb_testutil",
158 ]
159 }
160
161 test("leveldb_bloom_test") {
162 sources = [
163 "src/util/bloom_test.cc",
164 ]
165 configs -= [ "//build/config/compiler:chromium_code" ]
166 configs += [ "//build/config/compiler:no_chromium_code" ]
167 deps = [
168 ":leveldb_testutil",
169 ]
170 }
171
172 test("leveldb_cache_test") {
173 sources = [
174 "src/util/cache_test.cc",
175 ]
176 configs -= [ "//build/config/compiler:chromium_code" ]
177 configs += [ "//build/config/compiler:no_chromium_code" ]
178 deps = [
179 ":leveldb_testutil",
180 ]
181 }
182
183 test("leveldb_corruption_test") {
184 sources = [
185 "src/db/corruption_test.cc",
186 ]
187 configs -= [ "//build/config/compiler:chromium_code" ]
188 configs += [ "//build/config/compiler:no_chromium_code" ]
189 deps = [
190 ":leveldb_testutil",
191 ]
192 }
193
194 test("leveldb_crc32c_test") {
195 sources = [
196 "src/util/crc32c_test.cc",
197 ]
198 configs -= [ "//build/config/compiler:chromium_code" ]
199 configs += [ "//build/config/compiler:no_chromium_code" ]
200 deps = [
201 ":leveldb_testutil",
202 ]
203 }
204
205 test("leveldb_db_bench") {
206 sources = [
207 "src/db/db_bench.cc",
208 ]
209 configs -= [ "//build/config/compiler:chromium_code" ]
210 configs += [ "//build/config/compiler:no_chromium_code" ]
211 deps = [
212 ":leveldb_testutil",
213 ]
214 }
215
216 test("leveldb_db_test") {
217 sources = [
218 "src/db/db_test.cc",
219 ]
220 configs -= [ "//build/config/compiler:chromium_code" ]
221 configs += [ "//build/config/compiler:no_chromium_code" ]
222 deps = [
223 ":leveldb_testutil",
224 ]
225 }
226
227 test("leveldb_dbformat_test") {
228 sources = [
229 "src/db/dbformat_test.cc",
230 ]
231 configs -= [ "//build/config/compiler:chromium_code" ]
232 configs += [ "//build/config/compiler:no_chromium_code" ]
233 deps = [
234 ":leveldb_testutil",
235 ]
236 }
237
238 test("leveldb_env_test") {
239 sources = [
240 "src/util/env_test.cc",
241 ]
242 configs -= [ "//build/config/compiler:chromium_code" ]
243 configs += [ "//build/config/compiler:no_chromium_code" ]
244 deps = [
245 ":leveldb_testutil",
246 ]
247 }
248
249 test("leveldb_filename_test") {
250 sources = [
251 "src/db/filename_test.cc",
252 ]
253 configs -= [ "//build/config/compiler:chromium_code" ]
254 configs += [ "//build/config/compiler:no_chromium_code" ]
255 deps = [
256 ":leveldb_testutil",
257 ]
258 }
259
260 test("leveldb_filter_block_test") {
261 sources = [
262 "src/table/filter_block_test.cc",
263 ]
264 configs -= [ "//build/config/compiler:chromium_code" ]
265 configs += [ "//build/config/compiler:no_chromium_code" ]
266 deps = [
267 ":leveldb_testutil",
268 ]
269 }
270
271 test("leveldb_log_test") {
272 sources = [
273 "src/db/log_test.cc",
274 ]
275 configs -= [ "//build/config/compiler:chromium_code" ]
276 configs += [ "//build/config/compiler:no_chromium_code" ]
277 deps = [
278 ":leveldb_testutil",
279 ]
280 }
281
282 test("leveldb_skiplist_test") {
283 sources = [
284 "src/db/skiplist_test.cc",
285 ]
286 configs -= [ "//build/config/compiler:chromium_code" ]
287 configs += [ "//build/config/compiler:no_chromium_code" ]
288 deps = [
289 ":leveldb_testutil",
290 ]
291 }
292
293 test("leveldb_table_test") {
294 sources = [
295 "src/table/table_test.cc",
296 ]
297 configs -= [ "//build/config/compiler:chromium_code" ]
298 configs += [ "//build/config/compiler:no_chromium_code" ]
299 deps = [
300 ":leveldb_testutil",
301 ]
302 }
303
304 test("leveldb_version_edit_test") {
305 sources = [
306 "src/db/version_edit_test.cc",
307 ]
308 configs -= [ "//build/config/compiler:chromium_code" ]
309 configs += [ "//build/config/compiler:no_chromium_code" ]
310 deps = [
311 ":leveldb_testutil",
312 ]
313 }
314
315 test("leveldb_write_batch_test") {
316 sources = [
317 "src/db/write_batch_test.cc",
318 ]
319 configs -= [ "//build/config/compiler:chromium_code" ]
320 configs += [ "//build/config/compiler:no_chromium_code" ]
321 deps = [
322 ":leveldb_testutil",
323 ]
324 }
325 }
OLDNEW
« no previous file with comments | « DEPS ('k') | mojo/devtools/common/mojo_test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698