| 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") |
| 6 |
| 5 if (is_win) { | 7 if (is_win) { |
| 6 import("//build/config/win/visual_studio_version.gni") | 8 import("//build/config/win/visual_studio_version.gni") |
| 7 } | 9 } |
| 8 | 10 |
| 9 config("includes") { | 11 config("includes") { |
| 10 include_dirs = [ "include" ] | 12 include_dirs = [ "include" ] |
| 11 } | 13 } |
| 12 | 14 |
| 13 static_library("common") { | 15 static_library("common") { |
| 14 sources = [ | 16 sources = [ |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 cflags = [ "/wd4334" ] | 123 cflags = [ "/wd4334" ] |
| 122 } | 124 } |
| 123 | 125 |
| 124 # Always build release since this is a build tool. | 126 # Always build release since this is a build tool. |
| 125 if (is_debug) { | 127 if (is_debug) { |
| 126 configs -= [ "//build/config:debug" ] | 128 configs -= [ "//build/config:debug" ] |
| 127 configs += [ "//build/config:release" ] | 129 configs += [ "//build/config:release" ] |
| 128 } | 130 } |
| 129 } | 131 } |
| 130 } | 132 } |
| 133 |
| 134 fuzzer_test("brotli_fuzzer") { |
| 135 sources = [ |
| 136 "fuzz/decode_fuzzer.cc", |
| 137 ] |
| 138 deps = [ |
| 139 ":dec", |
| 140 ] |
| 141 libfuzzer_options = [ "max_len=1280" ] |
| 142 } |
| OLD | NEW |