mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
31 lines
775 B
Plaintext
31 lines
775 B
Plaintext
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
||
|
|
||
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
||
|
|
||
|
config("include_config") {
|
||
|
include_dirs = [ "src/" ]
|
||
|
}
|
||
|
|
||
|
source_set("libprotobuf-mutator") {
|
||
|
testonly = true
|
||
|
configs += [ ":include_config" ]
|
||
|
public_configs = [ ":include_config" ]
|
||
|
sources = [
|
||
|
"src/src/binary_format.cc",
|
||
|
"src/src/libfuzzer/libfuzzer_macro.cc",
|
||
|
"src/src/libfuzzer/libfuzzer_mutator.cc",
|
||
|
"src/src/mutator.cc",
|
||
|
"src/src/text_format.cc",
|
||
|
"src/src/utf8_fix.cc",
|
||
|
]
|
||
|
deps = [
|
||
|
"//third_party/protobuf:protobuf_full",
|
||
|
]
|
||
|
|
||
|
# Let ClusterFuzz builders know to not build targets that depend on
|
||
|
# libprotobuf-mutator for AFL.
|
||
|
if (use_afl) {
|
||
|
all_dependent_configs = [ "//testing/libfuzzer:no_clusterfuzz" ]
|
||
|
}
|
||
|
}
|