| 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 |
| 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", | |
| 28 "env_idb.h", | 26 "env_idb.h", |
| 29 "port/port_chromium.cc", | 27 "port/port_chromium.cc", |
| 30 "port/port_chromium.h", | 28 "port/port_chromium.h", |
| 31 "src/db/builder.cc", | 29 "src/db/builder.cc", |
| 32 "src/db/builder.h", | 30 "src/db/builder.h", |
| 33 "src/db/db_impl.cc", | 31 "src/db/db_impl.cc", |
| 34 "src/db/db_impl.h", | 32 "src/db/db_impl.h", |
| 35 "src/db/db_iter.cc", | 33 "src/db/db_iter.cc", |
| 36 "src/db/db_iter.h", | 34 "src/db/db_iter.h", |
| 37 "src/db/filename.cc", | 35 "src/db/filename.cc", |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 sources = [ | 328 sources = [ |
| 331 "src/db/write_batch_test.cc", | 329 "src/db/write_batch_test.cc", |
| 332 ] | 330 ] |
| 333 configs -= [ "//build/config/compiler:chromium_code" ] | 331 configs -= [ "//build/config/compiler:chromium_code" ] |
| 334 configs += [ "//build/config/compiler:no_chromium_code" ] | 332 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 335 deps = [ | 333 deps = [ |
| 336 ":leveldb_testutil", | 334 ":leveldb_testutil", |
| 337 ] | 335 ] |
| 338 } | 336 } |
| 339 } | 337 } |
| OLD | NEW |