| OLD | NEW |
| 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 if (is_win) { | 5 if (is_win) { |
| 6 import("//build/config/win/visual_studio_version.gni") | 6 import("//build/config/win/visual_studio_version.gni") |
| 7 } | 7 } |
| 8 | 8 |
| 9 source_set("brotli") { | 9 source_set("brotli") { |
| 10 sources = [ | 10 sources = [ |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 "enc/transform.h", | 81 "enc/transform.h", |
| 82 "enc/types.h", | 82 "enc/types.h", |
| 83 "enc/utf8_util.cc", | 83 "enc/utf8_util.cc", |
| 84 "enc/utf8_util.h", | 84 "enc/utf8_util.h", |
| 85 "enc/write_bits.h", | 85 "enc/write_bits.h", |
| 86 "tools/bro.cc", | 86 "tools/bro.cc", |
| 87 ] | 87 ] |
| 88 deps = [ | 88 deps = [ |
| 89 ":brotli", | 89 ":brotli", |
| 90 "//build/config/sanitizers:deps", | 90 "//build/config/sanitizers:deps", |
| 91 "//build/win:default_exe_manifest", |
| 91 ] | 92 ] |
| 92 | 93 |
| 93 if (is_win && visual_studio_version == "2015") { | 94 if (is_win && visual_studio_version == "2015") { |
| 94 # Disabling "result of 32-bit shift implicitly converted to 64 bits", | 95 # Disabling "result of 32-bit shift implicitly converted to 64 bits", |
| 95 # caused by code like: foo |= (1 << i); // warning 4334 | 96 # caused by code like: foo |= (1 << i); // warning 4334 |
| 96 cflags = [ "/wd4334" ] | 97 cflags = [ "/wd4334" ] |
| 97 } | 98 } |
| 98 | 99 |
| 99 # Always build release since this is a build tool. | 100 # Always build release since this is a build tool. |
| 100 if (is_debug) { | 101 if (is_debug) { |
| 101 configs -= [ "//build/config:debug" ] | 102 configs -= [ "//build/config:debug" ] |
| 102 configs += [ "//build/config:release" ] | 103 configs += [ "//build/config:release" ] |
| 103 } | 104 } |
| 104 } | 105 } |
| 105 } | 106 } |
| OLD | NEW |