| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 import("//testing/libfuzzer/fuzzer_test.gni") |
| 6 | 7 |
| 7 # Chromecast doesn't ship expat as a system library | 8 # Chromecast doesn't ship expat as a system library |
| 8 if (is_linux && !is_chromecast) { | 9 if (is_linux && !is_chromecast) { |
| 9 config("expat_config") { | 10 config("expat_config") { |
| 10 libs = [ "expat" ] | 11 libs = [ "expat" ] |
| 11 } | 12 } |
| 12 | 13 |
| 13 group("expat") { | 14 group("expat") { |
| 14 public_configs = [ ":expat_config" ] | 15 public_configs = [ ":expat_config" ] |
| 15 } | 16 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 public_configs = [ ":expat_config" ] | 31 public_configs = [ ":expat_config" ] |
| 31 | 32 |
| 32 defines = [ "_LIB" ] | 33 defines = [ "_LIB" ] |
| 33 if (is_win) { | 34 if (is_win) { |
| 34 defines += [ "COMPILED_FROM_DSP" ] | 35 defines += [ "COMPILED_FROM_DSP" ] |
| 35 } else { | 36 } else { |
| 36 defines += [ "HAVE_EXPAT_CONFIG_H" ] | 37 defines += [ "HAVE_EXPAT_CONFIG_H" ] |
| 37 } | 38 } |
| 38 } | 39 } |
| 39 } | 40 } |
| 41 |
| 42 fuzzer_test("expat_xml_parse_fuzzer") { |
| 43 sources = [ |
| 44 "fuzz/expat_xml_parse_fuzzer.cc", |
| 45 ] |
| 46 deps = [ |
| 47 ":expat", |
| 48 ] |
| 49 dict = "//testing/libfuzzer/fuzzers/dicts/xml.dict" |
| 50 } |
| OLD | NEW |