| # 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. | |
| assert(is_host, "Assembly libraries are host-only") | |
| ## 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("android_config") { | |
| sources = [ | |
| "src/images.rs", | |
| "src/lib.rs", | |
| "src/ota.rs", | |
| ] | |
| crate_name = "assembly_android_config" | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/product_bundle/create:*", | |
| "//src/lib/assembly/*", | |
| ] | |
| deps = [ | |
| "//src/lib/assembly/assembled_system", | |
| "//src/lib/assembly/partitions_config", | |
| "//src/lib/assembly/product_bundle", | |
| "//src/lib/assembly/util", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:camino", | |
| "//third_party/rust_crates:prost", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zip", | |
| ] | |
| } | |
| } | |
| if (is_host) { | |
| rustc_test("android_config_test") { | |
| sources = [ | |
| "src/images.rs", | |
| "src/lib.rs", | |
| "src/ota.rs", | |
| ] | |
| edition = "2024" | |
| deps = [ | |
| "//src/lib/assembly/assembled_system", | |
| "//src/lib/assembly/partitions_config", | |
| "//src/lib/assembly/product_bundle", | |
| "//src/lib/assembly/util", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:camino", | |
| "//third_party/rust_crates:prost", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:zip", | |
| ] + | |
| [ | |
| "//third_party/rust_crates:pretty_assertions", | |
| "//third_party/rust_crates:tempfile", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/lib/assembly:*", | |
| ] | |
| } | |
| } |