blob: 614631e3509e622ed9250c2ce4c6b7c1c9c72a3f [file]
# Copyright 2026 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/bazel/bazel_test_suite.gni")
bazel_test_suite("bazel_tests") {
host_tests = [ "//src/testing/trf_codegen/bin:trf_codegen_bin_test" ]
}
group("tests") {
testonly = true
deps = [
":bazel_tests",
":trf_codegen_bin_test($host_toolchain)",
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_host) {
rustc_binary("trf_codegen_bin") {
sources = [
"src/consistency_checker.rs",
"src/generator.rs",
"src/main.rs",
"src/parser.rs",
]
edition = "2024"
visibility = [ "//*" ]
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:handlebars",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:serde_json5",
"//third_party/rust_crates:syn",
]
}
}
if (is_host) {
rustc_test("trf_codegen_bin_test") {
sources = [
"src/consistency_checker.rs",
"src/generator.rs",
"src/main.rs",
"src/parser.rs",
]
edition = "2024"
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:handlebars",
"//third_party/rust_crates:quote",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:serde_json5",
"//third_party/rust_crates:syn",
]
source_root = "src/main.rs"
}
}