Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: third_party/expat/BUILD.gn

Issue 2167823002: Build expat from source when using afl_expat_xml_parse_fuzzer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698