OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
2 # | |
3 # Use of this source code is governed by a BSD-style license | |
4 # that can be found in the LICENSE file in the root of the source | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 import("//build/config/features.gni") | |
10 import("//testing/test.gni") | |
11 | |
12 # TODO(pbos): Do not copy libfuzzer from chromium, instead depend on it. | |
13 static_library("webrtcfuzzer_main") { | |
14 # libfuzzer should be compiled without coverage (infinite loop in trace_cmp). | |
15 configs -= [ "//build/config/sanitizers:default_sanitizer_coverage_flags" ] | |
16 | |
17 sources = [ | |
18 "../../../third_party/llvm/lib/Fuzzer/FuzzerCrossOver.cpp", | |
kjellander_webrtc
2015/11/19 15:23:06
I believe the right thing to do about these source
pbos-webrtc
2015/11/19 15:39:25
That's not a problem, I expect to rebase this abou
kjellander_webrtc
2015/11/19 16:18:41
Then at least add a comment/TODO about that these
| |
19 "../../../third_party/llvm/lib/Fuzzer/FuzzerDriver.cpp", | |
20 "../../../third_party/llvm/lib/Fuzzer/FuzzerFlags.def", | |
21 "../../../third_party/llvm/lib/Fuzzer/FuzzerIO.cpp", | |
22 "../../../third_party/llvm/lib/Fuzzer/FuzzerInterface.cpp", | |
23 "../../../third_party/llvm/lib/Fuzzer/FuzzerLoop.cpp", | |
24 "../../../third_party/llvm/lib/Fuzzer/FuzzerMain.cpp", | |
25 "../../../third_party/llvm/lib/Fuzzer/FuzzerMutate.cpp", | |
26 "../../../third_party/llvm/lib/Fuzzer/FuzzerSHA1.cpp", | |
27 "../../../third_party/llvm/lib/Fuzzer/FuzzerSanitizerOptions.cpp", | |
28 "../../../third_party/llvm/lib/Fuzzer/FuzzerTraceState.cpp", | |
29 "../../../third_party/llvm/lib/Fuzzer/FuzzerUtil.cpp", | |
30 "webrtc_fuzzer_main.cc", | |
31 ] | |
32 deps = [ | |
33 "..:field_trial", | |
34 ] | |
35 } | |
36 | |
37 test("vp9_depacketizer_fuzzer") { | |
38 sources = [ | |
39 "vp9_depacketizer_fuzzer.cc", | |
40 ] | |
41 deps = [ | |
42 ":webrtcfuzzer_main", | |
43 "../../modules/rtp_rtcp/", | |
kjellander_webrtc
2015/11/19 15:23:06
Remove leading slash.
kjellander_webrtc
2015/11/19 15:29:44
*sigh* I meant trailing slash.
pbos-webrtc
2015/11/19 15:39:25
Done.
| |
44 ] | |
45 | |
46 if (is_clang) { | |
47 # Suppress warnings from Chrome's Clang plugins. | |
48 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
49 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
50 } | |
51 } | |
OLD | NEW |