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

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

Issue 230073003: Enable leveldb build in GN world. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more sign vs unsigned fixes for leveldatabase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « third_party/leveldatabase/env_chromium_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Snappy is a compression library we use. 5 # Snappy is a compression library we use.
6 # TODO(brettw) It's not clear why this needs to be parameterized. 6 # TODO(brettw) It's not clear why this needs to be parameterized.
7 use_snappy = true 7 use_snappy = true
8 8
9 defines = [ "LEVELDB_PLATFORM_CHROMIUM=1" ] 9 defines = [ "LEVELDB_PLATFORM_CHROMIUM=1" ]
10 10
11 config("leveldatabase_config") { 11 config("leveldatabase_config") {
12 include_dirs = [ 12 include_dirs = [
13 ".", 13 ".",
14 "src", 14 "src",
15 "src/include", 15 "src/include",
16 ] 16 ]
17 if (is_win) { 17 if (is_win) {
18 include_dirs += [ "src/port/win" ] 18 include_dirs += [ "src/port/win" ]
19 } 19 }
20 } 20 }
21 21
22 static_library("leveldatabase") { 22 static_library("leveldatabase") {
23 sources = [ 23 sources = [
24 "env_chromium.cc", 24 "env_chromium.cc",
25 "env_chromium.h", 25 "env_chromium.h",
26 "env_chromium_stdio.cc",
27 "env_chromium_stdio.h",
26 "env_idb.h", 28 "env_idb.h",
27 "port/port_chromium.cc", 29 "port/port_chromium.cc",
28 "port/port_chromium.h", 30 "port/port_chromium.h",
29 "src/db/builder.cc", 31 "src/db/builder.cc",
30 "src/db/builder.h", 32 "src/db/builder.h",
31 "src/db/db_impl.cc", 33 "src/db/db_impl.cc",
32 "src/db/db_impl.h", 34 "src/db/db_impl.h",
33 "src/db/db_iter.cc", 35 "src/db/db_iter.cc",
34 "src/db/db_iter.h", 36 "src/db/db_iter.h",
35 "src/db/filename.cc", 37 "src/db/filename.cc",
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 test("leveldb_write_batch_test") { 327 test("leveldb_write_batch_test") {
326 sources = [ 328 sources = [
327 "src/db/write_batch_test.cc", 329 "src/db/write_batch_test.cc",
328 ] 330 ]
329 configs -= [ "//build/config/compiler:chromium_code" ] 331 configs -= [ "//build/config/compiler:chromium_code" ]
330 configs += [ "//build/config/compiler:no_chromium_code" ] 332 configs += [ "//build/config/compiler:no_chromium_code" ]
331 deps = [ 333 deps = [
332 ":leveldb_testutil", 334 ":leveldb_testutil",
333 ] 335 ]
334 } 336 }
OLDNEW
« no previous file with comments | « third_party/leveldatabase/env_chromium_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698