blob: 0517e4339bfaeea5cc49773e235dccc017ebdbd9 [file] [log] [blame]
# Copyright 2020 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.
# A helper rule to write a file indicating that a target is a CTS target.
#
# This rule should not be called directly, but through cts_* other build rules.
template("write_cts_file") {
not_needed(invoker, "*")
cts_extension = "this_is_cts"
target_build_dir = rebase_path(get_label_info(":$target_name", "dir"), "//")
generated_file("${target_name}_cts_file") {
outputs = [ "${root_build_dir}/cts/${target_build_dir}/${invoker.target_name}.${cts_extension}" ]
contents = true
}
}