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/ced/BUILD.gn

Issue 2092533003: [ced] Suppress a compiler warning on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 config("ced_config") { 7 config("ced_config") {
8 include_dirs = [ "src" ] 8 include_dirs = [ "src" ]
9 if (is_clang) { 9 if (is_clang) {
10 cflags = [ "-Wno-unused-function" ] 10 cflags = [ "-Wno-unused-function" ]
(...skipping 26 matching lines...) Expand all
37 configs -= [ "//build/config/compiler:chromium_code" ] 37 configs -= [ "//build/config/compiler:chromium_code" ]
38 configs += [ "//build/config/compiler:no_chromium_code" ] 38 configs += [ "//build/config/compiler:no_chromium_code" ]
39 39
40 public_configs = [ ":ced_config" ] 40 public_configs = [ ":ced_config" ]
41 41
42 if (is_win) { 42 if (is_win) {
43 defines = [ "COMPILER_MSVC" ] 43 defines = [ "COMPILER_MSVC" ]
44 cflags = [ 44 cflags = [
45 "/wd4005", # Macro defined twice. 45 "/wd4005", # Macro defined twice.
46 "/wd4006", # #undef expected an identifier. 46 "/wd4006", # #undef expected an identifier.
47 "/wd4018", # '<': signed/unsigned mismatch
47 "/wd4309", # Truncation of constant value. 48 "/wd4309", # Truncation of constant value.
48 ] 49 ]
49 } else { 50 } else {
50 defines = [ "COMPILER_GCC" ] 51 defines = [ "COMPILER_GCC" ]
51 } 52 }
52 } 53 }
53 54
54 test("ced_unittests") { 55 test("ced_unittests") {
55 sources = [ 56 sources = [
56 "src/compact_enc_det/compact_enc_det_fuzz_test.cc", 57 "src/compact_enc_det/compact_enc_det_fuzz_test.cc",
(...skipping 10 matching lines...) Expand all
67 } else { 68 } else {
68 defines = [ "COMPILER_GCC" ] 69 defines = [ "COMPILER_GCC" ]
69 } 70 }
70 71
71 deps = [ 72 deps = [
72 ":ced", 73 ":ced",
73 "//testing/gtest", 74 "//testing/gtest",
74 "//testing/gtest:gtest_main", 75 "//testing/gtest:gtest_main",
75 ] 76 ]
76 } 77 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698