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

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

Issue 305993002: Update skia and ui GN builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git log Created 6 years, 6 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
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 source_set("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", 26 "env_chromium_stdio.cc",
27 "env_chromium_stdio.h", 27 "env_chromium_stdio.h",
28 "env_idb.h", 28 "env_idb.h",
29 "port/port_chromium.cc", 29 "port/port_chromium.cc",
30 "port/port_chromium.h", 30 "port/port_chromium.h",
31 "src/db/builder.cc", 31 "src/db/builder.cc",
32 "src/db/builder.h", 32 "src/db/builder.h",
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 sources = [ 133 sources = [
134 "env_chromium_unittest.cc", 134 "env_chromium_unittest.cc",
135 ] 135 ]
136 deps = [ 136 deps = [
137 ":leveldatabase", 137 ":leveldatabase",
138 "//base/test:test_support", 138 "//base/test:test_support",
139 "//testing/gtest", 139 "//testing/gtest",
140 ] 140 ]
141 } 141 }
142 142
143 static_library("leveldb_testutil") { 143 source_set("leveldb_testutil") {
144 sources = [ 144 sources = [
145 "src/util/histogram.cc", 145 "src/util/histogram.cc",
146 "src/util/histogram.h", 146 "src/util/histogram.h",
147 "src/util/testharness.cc", 147 "src/util/testharness.cc",
148 "src/util/testharness.h", 148 "src/util/testharness.h",
149 "src/util/testutil.cc", 149 "src/util/testutil.cc",
150 "src/util/testutil.h", 150 "src/util/testutil.h",
151 ] 151 ]
152 152
153 forward_dependent_configs_from = [ ":leveldatabase" ] 153 forward_dependent_configs_from = [ ":leveldatabase" ]
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 sources = [ 329 sources = [
330 "src/db/write_batch_test.cc", 330 "src/db/write_batch_test.cc",
331 ] 331 ]
332 configs -= [ "//build/config/compiler:chromium_code" ] 332 configs -= [ "//build/config/compiler:chromium_code" ]
333 configs += [ "//build/config/compiler:no_chromium_code" ] 333 configs += [ "//build/config/compiler:no_chromium_code" ]
334 deps = [ 334 deps = [
335 ":leveldb_testutil", 335 ":leveldb_testutil",
336 ] 336 ]
337 } 337 }
338 } 338 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698