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

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

Issue 2730703002: DEPS: Update leveldatabase from 1.18 to 1.20. (Closed)
Patch Set: Remove build hacks. Created 3 years, 9 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
« no previous file with comments | « DEPS ('k') | third_party/leveldatabase/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 defines = [ "LEVELDB_PLATFORM_CHROMIUM=1" ] 7 defines = [ "LEVELDB_PLATFORM_CHROMIUM=1" ]
8 8
9 config("leveldatabase_config") { 9 config("leveldatabase_config") {
10 include_dirs = [ 10 include_dirs = [
11 ".", 11 ".",
12 "src", 12 "src",
13 "src/include", 13 "src/include",
14 ] 14 ]
15 } 15 }
16 16
17 source_set("leveldatabase_opts.sse42") {
18 sources = [
19 "src/port/port_posix_sse.cc",
20 ]
21
22 configs += [ ":leveldatabase_config" ]
23
24 if (target_cpu == "x86" || target_cpu == "x64") {
25 defines += [ "LEVELDB_PLATFORM_POSIX_SSE" ]
26 if (!is_win || is_clang) {
27 cflags = [ "-msse4.2" ]
28 }
29 }
30 }
31
17 static_library("leveldatabase") { 32 static_library("leveldatabase") {
18 sources = [ 33 sources = [
19 "env_chromium.cc", 34 "env_chromium.cc",
20 "env_chromium.h", 35 "env_chromium.h",
21 "port/port_chromium.cc", 36 "port/port_chromium.cc",
22 "port/port_chromium.h", 37 "port/port_chromium.h",
23 "src/db/builder.cc", 38 "src/db/builder.cc",
24 "src/db/builder.h", 39 "src/db/builder.h",
25 "src/db/db_impl.cc", 40 "src/db/db_impl.cc",
26 "src/db/db_impl.h", 41 "src/db/db_impl.h",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 "src/util/random.h", 116 "src/util/random.h",
102 "src/util/status.cc", 117 "src/util/status.cc",
103 ] 118 ]
104 119
105 configs -= [ "//build/config/compiler:chromium_code" ] 120 configs -= [ "//build/config/compiler:chromium_code" ]
106 configs += [ "//build/config/compiler:no_chromium_code" ] 121 configs += [ "//build/config/compiler:no_chromium_code" ]
107 122
108 public_configs = [ ":leveldatabase_config" ] 123 public_configs = [ ":leveldatabase_config" ]
109 124
110 deps = [ 125 deps = [
126 ":leveldatabase_opts.sse42",
111 "//base", 127 "//base",
112 "//base/third_party/dynamic_annotations", 128 "//base/third_party/dynamic_annotations",
113 "//third_party/re2", 129 "//third_party/re2",
114 "//third_party/snappy", 130 "//third_party/snappy",
115 ] 131 ]
116 132
117 if (is_win) { 133 if (is_win) {
118 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison. 134 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison.
119 135
120 if (is_official_build) { 136 if (is_official_build) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 197
182 test("leveldb_cache_test") { 198 test("leveldb_cache_test") {
183 sources = [ 199 sources = [
184 "src/util/cache_test.cc", 200 "src/util/cache_test.cc",
185 ] 201 ]
186 configs -= [ "//build/config/compiler:chromium_code" ] 202 configs -= [ "//build/config/compiler:chromium_code" ]
187 configs += [ "//build/config/compiler:no_chromium_code" ] 203 configs += [ "//build/config/compiler:no_chromium_code" ]
188 deps = [ 204 deps = [
189 ":leveldb_testutil", 205 ":leveldb_testutil",
190 ] 206 ]
207
208 if (is_win) {
209 # util\cache_test.cc(167): warning C4018: '<': signed/unsigned mismatch
cmumford 2017/03/02 20:29:50 Let's just fix the test. we'll be using leveldb v1
pwnall 2017/03/02 20:41:52 Done. This flag is also used for most of leveldb's
210 # util\cache_test.cc(171): warning C4018: '<': signed/unsigned mismatch
211 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison.
212 }
191 } 213 }
192 214
193 test("leveldb_corruption_test") { 215 test("leveldb_corruption_test") {
194 sources = [ 216 sources = [
195 "src/db/corruption_test.cc", 217 "src/db/corruption_test.cc",
196 ] 218 ]
197 configs -= [ "//build/config/compiler:chromium_code" ] 219 configs -= [ "//build/config/compiler:chromium_code" ]
198 configs += [ "//build/config/compiler:no_chromium_code" ] 220 configs += [ "//build/config/compiler:no_chromium_code" ]
199 deps = [ 221 deps = [
200 ":leveldb_testutil", 222 ":leveldb_testutil",
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 sources = [ 355 sources = [
334 "src/db/write_batch_test.cc", 356 "src/db/write_batch_test.cc",
335 ] 357 ]
336 configs -= [ "//build/config/compiler:chromium_code" ] 358 configs -= [ "//build/config/compiler:chromium_code" ]
337 configs += [ "//build/config/compiler:no_chromium_code" ] 359 configs += [ "//build/config/compiler:no_chromium_code" ]
338 deps = [ 360 deps = [
339 ":leveldb_testutil", 361 ":leveldb_testutil",
340 ] 362 ]
341 } 363 }
342 364
343 test("leveldb_bench") { 365 group("leveldb_test_targets") {
344 sources = [ 366 testonly = true
345 "src/db/db_bench.cc",
346 ]
347
348 configs -= [ "//build/config/compiler:chromium_code" ]
349 configs += [ "//build/config/compiler:no_chromium_code" ]
350
351 deps = [ 367 deps = [
352 ":leveldb_testutil", 368 ":env_chromium_unittests",
369 ":leveldb_arena_test",
370 ":leveldb_bloom_test",
371 ":leveldb_cache_test",
372 ":leveldb_corruption_test",
373 ":leveldb_crc32c_test",
374 ":leveldb_db_bench",
375 ":leveldb_db_test",
376 ":leveldb_dbformat_test",
377 ":leveldb_env_test",
378 ":leveldb_filename_test",
379 ":leveldb_filter_block_test",
380 ":leveldb_log_test",
381 ":leveldb_skiplist_test",
382 ":leveldb_table_test",
383 ":leveldb_version_edit_test",
384 ":leveldb_write_batch_test",
353 ] 385 ]
354 } 386 }
355 } 387 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/leveldatabase/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698