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

Side by Side Diff: testing/libfuzzer/BUILD.gn

Issue 1752183002: Pull in libFuzzer as a third party dep. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update readme. Created 4 years, 8 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 | « DEPS ('k') | third_party/libFuzzer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 # LibFuzzer is a LLVM tool for coverage-guided fuzz testing. 5 # LibFuzzer is a LLVM tool for coverage-guided fuzz testing.
6 # See http://www.chromium.org/developers/testing/libfuzzer 6 # See http://www.chromium.org/developers/testing/libfuzzer
7 # 7 #
8 # To enable libfuzzer, 'use_libfuzzer' GN option should be set to true. 8 # To enable libfuzzer, 'use_libfuzzer' GN option should be set to true.
9 9
10 import("//build/config/features.gni") 10 import("//build/config/features.gni")
11 import("//build/config/sanitizers/sanitizers.gni") 11 import("//build/config/sanitizers/sanitizers.gni")
12 12
13 static_library("libfuzzer_main") { 13 static_library("libfuzzer_main") {
14 # libfuzzer should be compiled without coverage (infinite loop in trace_cmp). 14 # libfuzzer should be compiled without coverage (infinite loop in trace_cmp).
15 configs -= [ "//build/config/sanitizers:default_sanitizer_coverage_flags" ] 15 configs -= [ "//build/config/sanitizers:default_sanitizer_coverage_flags" ]
aizatsky 2016/03/31 22:14:43 Will this negative config propagate into source_se
Nico 2016/03/31 22:24:01 No.
Oliver Chang 2016/03/31 22:31:24 Moved to third_party/libFuzzer/BUILD.gn
16 16
17 deps = []
17 sources = [] 18 sources = []
18 if (use_libfuzzer) { 19 if (use_libfuzzer) {
19 sources += [ 20 deps += [ "//third_party/libFuzzer:libfuzzer" ]
20 "../../third_party/llvm/lib/Fuzzer/FuzzerCrossOver.cpp",
21 "../../third_party/llvm/lib/Fuzzer/FuzzerDriver.cpp",
22 "../../third_party/llvm/lib/Fuzzer/FuzzerFlags.def",
23 "../../third_party/llvm/lib/Fuzzer/FuzzerIO.cpp",
24 "../../third_party/llvm/lib/Fuzzer/FuzzerInterface.cpp",
25 "../../third_party/llvm/lib/Fuzzer/FuzzerLoop.cpp",
26 "../../third_party/llvm/lib/Fuzzer/FuzzerMain.cpp",
27 "../../third_party/llvm/lib/Fuzzer/FuzzerMutate.cpp",
28 "../../third_party/llvm/lib/Fuzzer/FuzzerSHA1.cpp",
29 "../../third_party/llvm/lib/Fuzzer/FuzzerTracePC.cpp",
30 "../../third_party/llvm/lib/Fuzzer/FuzzerTraceState.cpp",
31 "../../third_party/llvm/lib/Fuzzer/FuzzerUtil.cpp",
32 ]
33 } else if (use_drfuzz) { 21 } else if (use_drfuzz) {
34 sources += [ "drfuzz_main.cc" ] 22 sources += [ "drfuzz_main.cc" ]
35 } else { 23 } else {
36 sources += [ "unittest_main.cc" ] 24 sources += [ "unittest_main.cc" ]
37 } 25 }
38 } 26 }
39 27
40 # Noop config used to tag fuzzer tests excluded from clusterfuzz. 28 # Noop config used to tag fuzzer tests excluded from clusterfuzz.
41 # Libfuzzer build bot uses this to filter out targets while 29 # Libfuzzer build bot uses this to filter out targets while
42 # building an archive for clusterfuzz. 30 # building an archive for clusterfuzz.
43 config("no_clusterfuzz") { 31 config("no_clusterfuzz") {
44 } 32 }
45 33
46 # noop to tag seed corpus rules. 34 # noop to tag seed corpus rules.
47 source_set("seed_corpus") { 35 source_set("seed_corpus") {
48 } 36 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/libFuzzer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698