OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 "src/util/logging.h", | 107 "src/util/logging.h", |
108 "src/util/mutexlock.h", | 108 "src/util/mutexlock.h", |
109 "src/util/options.cc", | 109 "src/util/options.cc", |
110 "src/util/random.h", | 110 "src/util/random.h", |
111 "src/util/status.cc", | 111 "src/util/status.cc", |
112 ] | 112 ] |
113 | 113 |
114 configs -= [ "//build/config/compiler:chromium_code" ] | 114 configs -= [ "//build/config/compiler:chromium_code" ] |
115 configs += [ "//build/config/compiler:no_chromium_code" ] | 115 configs += [ "//build/config/compiler:no_chromium_code" ] |
116 | 116 |
117 direct_dependent_configs = [ ":leveldatabase_config" ] | 117 public_configs = [ ":leveldatabase_config" ] |
118 | 118 |
119 deps = [ | 119 deps = [ |
120 "//base", | 120 "//base", |
121 "//base/third_party/dynamic_annotations", | 121 "//base/third_party/dynamic_annotations", |
122 "//third_party/re2", | 122 "//third_party/re2", |
123 ] | 123 ] |
124 | 124 |
125 if (use_snappy) { | 125 if (use_snappy) { |
126 defines += [ "USE_SNAPPY=1" ] | 126 defines += [ "USE_SNAPPY=1" ] |
127 deps += [ "//third_party/snappy" ] | 127 deps += [ "//third_party/snappy" ] |
(...skipping 15 matching lines...) Expand all Loading... |
143 static_library("leveldb_testutil") { | 143 static_library("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" ] | |
154 configs -= [ "//build/config/compiler:chromium_code" ] | 153 configs -= [ "//build/config/compiler:chromium_code" ] |
155 configs += [ "//build/config/compiler:no_chromium_code" ] | 154 configs += [ "//build/config/compiler:no_chromium_code" ] |
156 | 155 |
| 156 public_deps = [ |
| 157 ":leveldatabase", |
| 158 ] |
157 deps = [ | 159 deps = [ |
158 ":leveldatabase", | |
159 "//base", | 160 "//base", |
160 ] | 161 ] |
161 } | 162 } |
162 | 163 |
163 test("leveldb_arena_test") { | 164 test("leveldb_arena_test") { |
164 sources = [ | 165 sources = [ |
165 "src/util/arena_test.cc", | 166 "src/util/arena_test.cc", |
166 ] | 167 ] |
167 configs -= [ "//build/config/compiler:chromium_code" ] | 168 configs -= [ "//build/config/compiler:chromium_code" ] |
168 configs += [ "//build/config/compiler:no_chromium_code" ] | 169 configs += [ "//build/config/compiler:no_chromium_code" ] |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 sources = [ | 330 sources = [ |
330 "src/db/write_batch_test.cc", | 331 "src/db/write_batch_test.cc", |
331 ] | 332 ] |
332 configs -= [ "//build/config/compiler:chromium_code" ] | 333 configs -= [ "//build/config/compiler:chromium_code" ] |
333 configs += [ "//build/config/compiler:no_chromium_code" ] | 334 configs += [ "//build/config/compiler:no_chromium_code" ] |
334 deps = [ | 335 deps = [ |
335 ":leveldb_testutil", | 336 ":leveldb_testutil", |
336 ] | 337 ] |
337 } | 338 } |
338 } | 339 } |
OLD | NEW |