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