| # 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("//build/bazel/bazel_test_suite.gni") | |
| bazel_test_suite("bazel_tests") { | |
| target_tests = [ "//src/sys/lib/config_encoder:config_encoder_tests" ] | |
| host_tests = [ "//src/sys/lib/config_encoder:config_encoder_host_test" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ | |
| ":bazel_tests", | |
| ":config_encoder_test($host_toolchain)", | |
| ":config_encoder_tests", | |
| ] | |
| } | |
| ## 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") | |
| rustc_library("config_encoder") { | |
| sources = [ "src/lib.rs" ] | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/lib/assembly/structured_config:*", | |
| "//src/lib/fuchsia-component-test/realm_builder_server:*", | |
| "//src/security/*", | |
| "//src/sys/component_manager/*", | |
| "//tools/configc:*", | |
| "//tools/lib/cm_fidl_analyzer/*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust_common", | |
| "//src/lib/dynfidl/rust", | |
| "//src/sys/lib/cm_rust", | |
| "//third_party/rust_crates:flyweights", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| } | |
| fidl("test.config.encoder") { | |
| testonly = true | |
| sources = [ "fidl/config_encoder.test.fidl" ] | |
| } | |
| rustc_test("config_encoder_test") { | |
| sources = [ "src/lib.rs" ] | |
| edition = "2024" | |
| deps = | |
| [ | |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust_common", | |
| "//src/lib/dynfidl/rust", | |
| "//src/sys/lib/cm_rust", | |
| "//third_party/rust_crates:flyweights", | |
| "//third_party/rust_crates:thiserror", | |
| ] + | |
| [ | |
| ":test.config.encoder_rust_common", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/sys/lib/fidl_fuchsia_component_config_ext", | |
| ] | |
| } | |
| fuchsia_unittest_package("config_encoder_tests") { | |
| package_name = "config_encoder_tests-gn" | |
| component_name = "config_encoder_tests" | |
| deps = [ ":config_encoder_test" ] | |
| } |