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

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

Issue 1488933002: Misc fixes for gn builds with VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable warning 4267 which is the VC++ 2015 4244 Created 5 years 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
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 = [
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 test("leveldb_log_test") { 276 test("leveldb_log_test") {
277 sources = [ 277 sources = [
278 "src/db/log_test.cc", 278 "src/db/log_test.cc",
279 ] 279 ]
280 configs -= [ "//build/config/compiler:chromium_code" ] 280 configs -= [ "//build/config/compiler:chromium_code" ]
281 configs += [ "//build/config/compiler:no_chromium_code" ] 281 configs += [ "//build/config/compiler:no_chromium_code" ]
282 deps = [ 282 deps = [
283 ":leveldb_testutil", 283 ":leveldb_testutil",
284 ] 284 ]
285
286 if (is_win) {
287 # db\log_test.cc(486) triggers two warnings:
288 # util\testharness.h(91): warning C4018: '<=': signed/unsigned mismatch
289 # util\testharness.h(89): warning C4018: '>=': signed/unsigned mismatch
290 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison.
291 }
285 } 292 }
286 293
287 test("leveldb_skiplist_test") { 294 test("leveldb_skiplist_test") {
288 sources = [ 295 sources = [
289 "src/db/skiplist_test.cc", 296 "src/db/skiplist_test.cc",
290 ] 297 ]
291 configs -= [ "//build/config/compiler:chromium_code" ] 298 configs -= [ "//build/config/compiler:chromium_code" ]
292 configs += [ "//build/config/compiler:no_chromium_code" ] 299 configs += [ "//build/config/compiler:no_chromium_code" ]
293 deps = [ 300 deps = [
294 ":leveldb_testutil", 301 ":leveldb_testutil",
(...skipping 26 matching lines...) Expand all
321 sources = [ 328 sources = [
322 "src/db/write_batch_test.cc", 329 "src/db/write_batch_test.cc",
323 ] 330 ]
324 configs -= [ "//build/config/compiler:chromium_code" ] 331 configs -= [ "//build/config/compiler:chromium_code" ]
325 configs += [ "//build/config/compiler:no_chromium_code" ] 332 configs += [ "//build/config/compiler:no_chromium_code" ]
326 deps = [ 333 deps = [
327 ":leveldb_testutil", 334 ":leveldb_testutil",
328 ] 335 ]
329 } 336 }
330 } 337 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698