| # 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. | |
| if (is_host) { | |
| group("uart_driver_api") { | |
| public_deps = [ ":lib" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":lib_test" ] | |
| } | |
| } else { | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":tests($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_library("lib") { | |
| sources = [ | |
| "src/errors.rs", | |
| "src/lib.rs", | |
| ] | |
| crate_name = "uart_driver_api" | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/lib/discovery:*", | |
| "//src/developer/ffx/lib/target:*", | |
| "//src/developer/ffx/tests/uart:*", | |
| "//src/developer/ffx/tools/uart:*", | |
| "//src/developer/ffx/tools/uart_driver/*", | |
| ] | |
| deps = [ | |
| "//src/developer/ffx/config:lib", | |
| "//src/developer/ffx/lib/emulator_instance:lib", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:sha2", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| rustc_test("lib_test") { | |
| sources = [ | |
| "src/errors.rs", | |
| "src/lib.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| "//src/developer/ffx/config:lib", | |
| "//src/developer/ffx/lib/emulator_instance:lib", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:sha2", | |
| "//third_party/rust_crates:thiserror", | |
| ] + | |
| [ | |
| "//src/lib/fuchsia", | |
| "//third_party/rust_crates:tempfile", | |
| ] | |
| output_name = "uart_driver_api_lib_test" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx:*", | |
| ] | |
| } | |
| } |