naiveproxy/third_party/libprotobuf-mutator/BUILD.gn

31 lines
775 B
Plaintext
Raw Normal View History

2018-01-28 19:30:36 +03:00
# 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" ]
}
}