| 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 import("//testing/libfuzzer/fuzzer_test.gni") | 5 import("//testing/libfuzzer/fuzzer_test.gni") |
| 6 | 6 |
| 7 if (is_win) { | 7 if (is_win) { |
| 8 import("//build/config/win/visual_studio_version.gni") | 8 import("//build/config/win/visual_studio_version.gni") |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 "enc/utf8_util.h", | 123 "enc/utf8_util.h", |
| 124 "enc/write_bits.h", | 124 "enc/write_bits.h", |
| 125 "tools/bro.c", | 125 "tools/bro.c", |
| 126 ] | 126 ] |
| 127 public_configs = [ ":includes" ] | 127 public_configs = [ ":includes" ] |
| 128 | 128 |
| 129 deps = [ | 129 deps = [ |
| 130 ":common", | 130 ":common", |
| 131 ":dec", | 131 ":dec", |
| 132 ":headers", | 132 ":headers", |
| 133 "//build/config/sanitizers:deps", | 133 "//build/config:exe_and_shlib_deps", |
| 134 "//build/win:default_exe_manifest", | 134 "//build/win:default_exe_manifest", |
| 135 ] | 135 ] |
| 136 | 136 |
| 137 if (is_win && visual_studio_version == "2015") { | 137 if (is_win && visual_studio_version == "2015") { |
| 138 # Disabling "result of 32-bit shift implicitly converted to 64 bits", | 138 # Disabling "result of 32-bit shift implicitly converted to 64 bits", |
| 139 # caused by code like: foo |= (1 << i); // warning 4334 | 139 # caused by code like: foo |= (1 << i); // warning 4334 |
| 140 cflags = [ "/wd4334" ] | 140 cflags = [ "/wd4334" ] |
| 141 } | 141 } |
| 142 | 142 |
| 143 # Always build release since this is a build tool. | 143 # Always build release since this is a build tool. |
| 144 if (is_debug) { | 144 if (is_debug) { |
| 145 configs -= [ "//build/config:debug" ] | 145 configs -= [ "//build/config:debug" ] |
| 146 configs += [ "//build/config:release" ] | 146 configs += [ "//build/config:release" ] |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 } | 149 } |
| 150 | 150 |
| 151 fuzzer_test("brotli_fuzzer") { | 151 fuzzer_test("brotli_fuzzer") { |
| 152 sources = [ | 152 sources = [ |
| 153 "fuzz/decode_fuzzer.cc", | 153 "fuzz/decode_fuzzer.cc", |
| 154 ] | 154 ] |
| 155 deps = [ | 155 deps = [ |
| 156 ":dec", | 156 ":dec", |
| 157 ] | 157 ] |
| 158 libfuzzer_options = [ "max_len=1280" ] | 158 libfuzzer_options = [ "max_len=1280" ] |
| 159 } | 159 } |
| OLD | NEW |