| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |