| 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 import("//testing/libfuzzer/fuzzer_test.gni") |
| 7 | 7 |
| 8 # Chromecast doesn't ship expat as a system library | 8 # On Linux, we implicitly already depend on expat via fontconfig; |
| 9 if (is_linux && !is_chromecast) { | 9 # let's not pull it in twice. |
| 10 # Chromecast doesn't ship expat as a system library. |
| 11 # Libfuzzer needs to build library from sources. |
| 12 if (is_linux && !is_chromecast && !use_libfuzzer) { |
| 10 config("expat_config") { | 13 config("expat_config") { |
| 11 libs = [ "expat" ] | 14 libs = [ "expat" ] |
| 12 } | 15 } |
| 13 | 16 |
| 14 group("expat") { | 17 group("expat") { |
| 15 public_configs = [ ":expat_config" ] | 18 public_configs = [ ":expat_config" ] |
| 16 } | 19 } |
| 17 } else { | 20 } else { |
| 18 config("expat_config") { | 21 config("expat_config") { |
| 19 include_dirs = [ "files/lib" ] | 22 include_dirs = [ "files/lib" ] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 | 44 |
| 42 fuzzer_test("expat_xml_parse_fuzzer") { | 45 fuzzer_test("expat_xml_parse_fuzzer") { |
| 43 sources = [ | 46 sources = [ |
| 44 "fuzz/expat_xml_parse_fuzzer.cc", | 47 "fuzz/expat_xml_parse_fuzzer.cc", |
| 45 ] | 48 ] |
| 46 deps = [ | 49 deps = [ |
| 47 ":expat", | 50 ":expat", |
| 48 ] | 51 ] |
| 49 dict = "//testing/libfuzzer/fuzzers/dicts/xml.dict" | 52 dict = "//testing/libfuzzer/fuzzers/dicts/xml.dict" |
| 50 } | 53 } |
| OLD | NEW |