| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/cpp/cpp_fuzzer.gni") |
| import("//build/fuzz.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":cmdline-fuzzers($default_toolchain)" ] |
| } |
| |
| fuchsia_fuzzer_component("cmdline-fuzzer-component") { |
| manifest = "meta/cmdline-fuzzer.cml" |
| deps = [ ":cmdline-fuzzer" ] |
| } |
| |
| if (is_fuchsia) { |
| fuchsia_fuzzer_package("cmdline-fuzzers") { |
| cpp_fuzzer_components = [ ":cmdline-fuzzer-component" ] |
| } |
| } else { |
| group("cmdline-fuzzers") { |
| testonly = true |
| deps = [ ":cmdline-fuzzer" ] |
| } |
| } |
| cpp_fuzzer("cmdline-fuzzer") { |
| sources = [ "cmdline_fuzzer.cc" ] |
| deps = [ "//zircon/system/ulib/cmdline" ] |
| } |