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

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

Issue 2723373002: Revert of DEPS: Update leveldatabase from 1.18 to 1.20. (Closed)
Patch Set: 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
32 static_library("leveldatabase") { 17 static_library("leveldatabase") {
33 sources = [ 18 sources = [
34 "env_chromium.cc", 19 "env_chromium.cc",
35 "env_chromium.h", 20 "env_chromium.h",
36 "port/port_chromium.cc", 21 "port/port_chromium.cc",
37 "port/port_chromium.h", 22 "port/port_chromium.h",
38 "src/db/builder.cc", 23 "src/db/builder.cc",
39 "src/db/builder.h", 24 "src/db/builder.h",
40 "src/db/db_impl.cc", 25 "src/db/db_impl.cc",
41 "src/db/db_impl.h", 26 "src/db/db_impl.h",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 "src/util/random.h", 101 "src/util/random.h",
117 "src/util/status.cc", 102 "src/util/status.cc",
118 ] 103 ]
119 104
120 configs -= [ "//build/config/compiler:chromium_code" ] 105 configs -= [ "//build/config/compiler:chromium_code" ]
121 configs += [ "//build/config/compiler:no_chromium_code" ] 106 configs += [ "//build/config/compiler:no_chromium_code" ]
122 107
123 public_configs = [ ":leveldatabase_config" ] 108 public_configs = [ ":leveldatabase_config" ]
124 109
125 deps = [ 110 deps = [
126 ":leveldatabase_opts.sse42",
127 "//base", 111 "//base",
128 "//base/third_party/dynamic_annotations", 112 "//base/third_party/dynamic_annotations",
129 "//third_party/re2", 113 "//third_party/re2",
130 "//third_party/snappy", 114 "//third_party/snappy",
131 ] 115 ]
132 116
133 if (is_win) { 117 if (is_win) {
134 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison. 118 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison.
135 119
136 if (is_official_build) { 120 if (is_official_build) {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 ] 346 ]
363 347
364 configs -= [ "//build/config/compiler:chromium_code" ] 348 configs -= [ "//build/config/compiler:chromium_code" ]
365 configs += [ "//build/config/compiler:no_chromium_code" ] 349 configs += [ "//build/config/compiler:no_chromium_code" ]
366 350
367 deps = [ 351 deps = [
368 ":leveldb_testutil", 352 ":leveldb_testutil",
369 ] 353 ]
370 } 354 }
371 } 355 }
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