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

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

Issue 138273007: Convert GN single-item list concat to use lists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 11 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 static_library("leveldatabase") {
23 external = true 23 external = true
24 sources = [ 24 sources = [
25 "env_chromium.cc", 25 "env_chromium.cc",
26 "env_chromium.h", 26 "env_chromium.h",
27 "env_idb.h", 27 "env_idb.h",
28 "port/port_chromium.cc", 28 "port/port_chromium.cc",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "src/util/hash.cc", 103 "src/util/hash.cc",
104 "src/util/hash.h", 104 "src/util/hash.h",
105 "src/util/logging.cc", 105 "src/util/logging.cc",
106 "src/util/logging.h", 106 "src/util/logging.h",
107 "src/util/mutexlock.h", 107 "src/util/mutexlock.h",
108 "src/util/options.cc", 108 "src/util/options.cc",
109 "src/util/random.h", 109 "src/util/random.h",
110 "src/util/status.cc", 110 "src/util/status.cc",
111 ] 111 ]
112 112
113 configs -= "//build/config/compiler:chromium_code" 113 configs -= [ "//build/config/compiler:chromium_code" ]
114 configs += "//build/config/compiler:no_chromium_code" 114 configs += [ "//build/config/compiler:no_chromium_code" ]
115 115
116 direct_dependent_configs = [ ":leveldatabase_config" ] 116 direct_dependent_configs = [ ":leveldatabase_config" ]
117 117
118 deps = [ 118 deps = [
119 "//base", 119 "//base",
120 "//base/third_party/dynamic_annotations", 120 "//base/third_party/dynamic_annotations",
121 "//third_party/re2", 121 "//third_party/re2",
122 ] 122 ]
123 123
124 if (use_snappy) { 124 if (use_snappy) {
125 defines += "USE_SNAPPY=1" 125 defines += [ "USE_SNAPPY=1" ]
126 deps += "//third_party/snappy" 126 deps += [ "//third_party/snappy" ]
127 } 127 }
128 } 128 }
129 129
130 test("env_chromium_unittests") { 130 test("env_chromium_unittests") {
131 sources = [ 131 sources = [
132 "env_chromium_unittest.cc", 132 "env_chromium_unittest.cc",
133 ] 133 ]
134 deps = [ 134 deps = [
135 ":leveldatabase", 135 ":leveldatabase",
136 "//base/test:test_support_base", 136 "//base/test:test_support_base",
137 "//testing/gtest", 137 "//testing/gtest",
138 ] 138 ]
139 } 139 }
140 140
141 static_library("leveldb_testutil") { 141 static_library("leveldb_testutil") {
142 sources = [ 142 sources = [
143 "src/util/histogram.cc", 143 "src/util/histogram.cc",
144 "src/util/histogram.h", 144 "src/util/histogram.h",
145 "src/util/testharness.cc", 145 "src/util/testharness.cc",
146 "src/util/testharness.h", 146 "src/util/testharness.h",
147 "src/util/testutil.cc", 147 "src/util/testutil.cc",
148 "src/util/testutil.h", 148 "src/util/testutil.h",
149 ] 149 ]
150 150
151 forward_dependent_configs_from = [ ":leveldatabase" ] 151 forward_dependent_configs_from = [ ":leveldatabase" ]
152 configs -= "//build/config/compiler:chromium_code" 152 configs -= [ "//build/config/compiler:chromium_code" ]
153 configs += "//build/config/compiler:no_chromium_code" 153 configs += [ "//build/config/compiler:no_chromium_code" ]
154 154
155 deps = [ 155 deps = [
156 ":leveldatabase", 156 ":leveldatabase",
157 "//base", 157 "//base",
158 ] 158 ]
159 } 159 }
160 160
161 test("leveldb_arena_test") { 161 test("leveldb_arena_test") {
162 sources = [ 162 sources = [
163 "src/util/arena_test.cc", 163 "src/util/arena_test.cc",
164 ] 164 ]
165 configs -= "//build/config/compiler:chromium_code" 165 configs -= [ "//build/config/compiler:chromium_code" ]
166 configs += "//build/config/compiler:no_chromium_code" 166 configs += [ "//build/config/compiler:no_chromium_code" ]
167 deps = [ 167 deps = [
168 ":leveldb_testutil", 168 ":leveldb_testutil",
169 ] 169 ]
170 } 170 }
171 171
172 test("leveldb_bloom_test") { 172 test("leveldb_bloom_test") {
173 sources = [ 173 sources = [
174 "src/util/bloom_test.cc", 174 "src/util/bloom_test.cc",
175 ] 175 ]
176 configs -= "//build/config/compiler:chromium_code" 176 configs -= [ "//build/config/compiler:chromium_code" ]
177 configs += "//build/config/compiler:no_chromium_code" 177 configs += [ "//build/config/compiler:no_chromium_code" ]
178 deps = [ 178 deps = [
179 ":leveldb_testutil", 179 ":leveldb_testutil",
180 ] 180 ]
181 } 181 }
182 182
183 test("leveldb_cache_test") { 183 test("leveldb_cache_test") {
184 sources = [ 184 sources = [
185 "src/util/cache_test.cc", 185 "src/util/cache_test.cc",
186 ] 186 ]
187 configs -= "//build/config/compiler:chromium_code" 187 configs -= [ "//build/config/compiler:chromium_code" ]
188 configs += "//build/config/compiler:no_chromium_code" 188 configs += [ "//build/config/compiler:no_chromium_code" ]
189 deps = [ 189 deps = [
190 ":leveldb_testutil", 190 ":leveldb_testutil",
191 ] 191 ]
192 } 192 }
193 193
194 test("leveldb_corruption_test") { 194 test("leveldb_corruption_test") {
195 sources = [ 195 sources = [
196 "src/db/corruption_test.cc", 196 "src/db/corruption_test.cc",
197 ] 197 ]
198 configs -= "//build/config/compiler:chromium_code" 198 configs -= [ "//build/config/compiler:chromium_code" ]
199 configs += "//build/config/compiler:no_chromium_code" 199 configs += [ "//build/config/compiler:no_chromium_code" ]
200 deps = [ 200 deps = [
201 ":leveldb_testutil", 201 ":leveldb_testutil",
202 ] 202 ]
203 } 203 }
204 204
205 test("leveldb_crc32c_test") { 205 test("leveldb_crc32c_test") {
206 sources = [ 206 sources = [
207 "src/util/crc32c_test.cc" 207 "src/util/crc32c_test.cc"
208 ] 208 ]
209 configs -= "//build/config/compiler:chromium_code" 209 configs -= [ "//build/config/compiler:chromium_code" ]
210 configs += "//build/config/compiler:no_chromium_code" 210 configs += [ "//build/config/compiler:no_chromium_code" ]
211 deps = [ 211 deps = [
212 ":leveldb_testutil", 212 ":leveldb_testutil",
213 ] 213 ]
214 } 214 }
215 215
216 test("leveldb_db_bench") { 216 test("leveldb_db_bench") {
217 sources = [ 217 sources = [
218 "src/db/db_bench.cc", 218 "src/db/db_bench.cc",
219 ] 219 ]
220 configs -= "//build/config/compiler:chromium_code" 220 configs -= [ "//build/config/compiler:chromium_code" ]
221 configs += "//build/config/compiler:no_chromium_code" 221 configs += [ "//build/config/compiler:no_chromium_code" ]
222 deps = [ 222 deps = [
223 ":leveldb_testutil", 223 ":leveldb_testutil",
224 ] 224 ]
225 } 225 }
226 226
227 test("leveldb_db_test") { 227 test("leveldb_db_test") {
228 sources = [ 228 sources = [
229 "src/db/db_test.cc", 229 "src/db/db_test.cc",
230 ] 230 ]
231 configs -= "//build/config/compiler:chromium_code" 231 configs -= [ "//build/config/compiler:chromium_code" ]
232 configs += "//build/config/compiler:no_chromium_code" 232 configs += [ "//build/config/compiler:no_chromium_code" ]
233 deps = [ 233 deps = [
234 ":leveldb_testutil", 234 ":leveldb_testutil",
235 ] 235 ]
236 } 236 }
237 237
238 test("leveldb_dbformat_test") { 238 test("leveldb_dbformat_test") {
239 sources = [ 239 sources = [
240 "src/db/dbformat_test.cc", 240 "src/db/dbformat_test.cc",
241 ] 241 ]
242 configs -= "//build/config/compiler:chromium_code" 242 configs -= [ "//build/config/compiler:chromium_code" ]
243 configs += "//build/config/compiler:no_chromium_code" 243 configs += [ "//build/config/compiler:no_chromium_code" ]
244 deps = [ 244 deps = [
245 ":leveldb_testutil", 245 ":leveldb_testutil",
246 ] 246 ]
247 } 247 }
248 248
249 test("leveldb_env_test") { 249 test("leveldb_env_test") {
250 sources = [ 250 sources = [
251 "src/util/env_test.cc", 251 "src/util/env_test.cc",
252 ] 252 ]
253 configs -= "//build/config/compiler:chromium_code" 253 configs -= [ "//build/config/compiler:chromium_code" ]
254 configs += "//build/config/compiler:no_chromium_code" 254 configs += [ "//build/config/compiler:no_chromium_code" ]
255 deps = [ 255 deps = [
256 ":leveldb_testutil", 256 ":leveldb_testutil",
257 ] 257 ]
258 } 258 }
259 259
260 test("leveldb_filename_test") { 260 test("leveldb_filename_test") {
261 sources = [ 261 sources = [
262 "src/db/filename_test.cc", 262 "src/db/filename_test.cc",
263 ] 263 ]
264 configs -= "//build/config/compiler:chromium_code" 264 configs -= [ "//build/config/compiler:chromium_code" ]
265 configs += "//build/config/compiler:no_chromium_code" 265 configs += [ "//build/config/compiler:no_chromium_code" ]
266 deps = [ 266 deps = [
267 ":leveldb_testutil", 267 ":leveldb_testutil",
268 ] 268 ]
269 } 269 }
270 270
271 test("leveldb_filter_block_test") { 271 test("leveldb_filter_block_test") {
272 sources = [ 272 sources = [
273 "src/table/filter_block_test.cc", 273 "src/table/filter_block_test.cc",
274 ] 274 ]
275 configs -= "//build/config/compiler:chromium_code" 275 configs -= [ "//build/config/compiler:chromium_code" ]
276 configs += "//build/config/compiler:no_chromium_code" 276 configs += [ "//build/config/compiler:no_chromium_code" ]
277 deps = [ 277 deps = [
278 ":leveldb_testutil", 278 ":leveldb_testutil",
279 ] 279 ]
280 } 280 }
281 281
282 test("leveldb_log_test") { 282 test("leveldb_log_test") {
283 sources = [ 283 sources = [
284 "src/db/log_test.cc", 284 "src/db/log_test.cc",
285 ] 285 ]
286 configs -= "//build/config/compiler:chromium_code" 286 configs -= [ "//build/config/compiler:chromium_code" ]
287 configs += "//build/config/compiler:no_chromium_code" 287 configs += [ "//build/config/compiler:no_chromium_code" ]
288 deps = [ 288 deps = [
289 ":leveldb_testutil", 289 ":leveldb_testutil",
290 ] 290 ]
291 } 291 }
292 292
293 test("leveldb_skiplist_test") { 293 test("leveldb_skiplist_test") {
294 sources = [ 294 sources = [
295 "src/db/skiplist_test.cc", 295 "src/db/skiplist_test.cc",
296 ] 296 ]
297 configs -= "//build/config/compiler:chromium_code" 297 configs -= [ "//build/config/compiler:chromium_code" ]
298 configs += "//build/config/compiler:no_chromium_code" 298 configs += [ "//build/config/compiler:no_chromium_code" ]
299 deps = [ 299 deps = [
300 ":leveldb_testutil", 300 ":leveldb_testutil",
301 ] 301 ]
302 } 302 }
303 303
304 test("leveldb_table_test") { 304 test("leveldb_table_test") {
305 sources = [ 305 sources = [
306 "src/table/table_test.cc", 306 "src/table/table_test.cc",
307 ] 307 ]
308 configs -= "//build/config/compiler:chromium_code" 308 configs -= [ "//build/config/compiler:chromium_code" ]
309 configs += "//build/config/compiler:no_chromium_code" 309 configs += [ "//build/config/compiler:no_chromium_code" ]
310 deps = [ 310 deps = [
311 ":leveldb_testutil", 311 ":leveldb_testutil",
312 ] 312 ]
313 } 313 }
314 314
315 test("leveldb_version_edit_test") { 315 test("leveldb_version_edit_test") {
316 sources = [ 316 sources = [
317 "src/db/version_edit_test.cc", 317 "src/db/version_edit_test.cc",
318 ] 318 ]
319 configs -= "//build/config/compiler:chromium_code" 319 configs -= [ "//build/config/compiler:chromium_code" ]
320 configs += "//build/config/compiler:no_chromium_code" 320 configs += [ "//build/config/compiler:no_chromium_code" ]
321 deps = [ 321 deps = [
322 ":leveldb_testutil", 322 ":leveldb_testutil",
323 ] 323 ]
324 } 324 }
325 325
326 test("leveldb_write_batch_test") { 326 test("leveldb_write_batch_test") {
327 sources = [ 327 sources = [
328 "src/db/write_batch_test.cc", 328 "src/db/write_batch_test.cc",
329 ] 329 ]
330 configs -= "//build/config/compiler:chromium_code" 330 configs -= [ "//build/config/compiler:chromium_code" ]
331 configs += "//build/config/compiler:no_chromium_code" 331 configs += [ "//build/config/compiler:no_chromium_code" ]
332 deps = [ 332 deps = [
333 ":leveldb_testutil", 333 ":leveldb_testutil",
334 ] 334 ]
335 } 335 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/third_party/icu/BUILD.gn ('k') | tools/gn/secondary/third_party/libevent/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698