blob: 3350e2690c8d40b3af100d968dee3f739db390ba [file] [log] [blame]
# Copyright 2021 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("fuchsia_component.gni")
# Defines a Fuchsia component that is testonly.
# See: https://fuchsia.dev/fuchsia-src/development/components/build
#
# This is a thin wrapper around `fuchsia_component()`
# that sets `testonly = true`.
template("fuchsia_test_component") {
fuchsia_component(target_name) {
forward_variables_from(invoker, "*", [ "testonly" ])
testonly = true
}
}