| # Copyright 2024 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/components.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("without_log_bin") { |
| testonly = true |
| name = "without_log" |
| edition = "2024" |
| |
| source_root = "src/without_log.rs" |
| |
| deps = [] |
| |
| sources = [ source_root ] |
| } |
| |
| fuchsia_component("without_log") { |
| testonly = true |
| deps = [ ":without_log_bin" ] |
| check_includes = false |
| manifest = "meta/without_log.cml" |
| } |
| |
| rustc_binary("with_log_bin") { |
| testonly = true |
| name = "with_log" |
| edition = "2024" |
| |
| source_root = "src/with_log.rs" |
| |
| deps = [ "//src/lib/fuchsia" ] |
| |
| sources = [ source_root ] |
| } |
| |
| fuchsia_component("with_log") { |
| testonly = true |
| deps = [ ":with_log_bin" ] |
| manifest = "meta/with_log.cml" |
| } |
| |
| fuchsia_component("with_log_and_stdout") { |
| testonly = true |
| deps = [ ":with_log_bin" ] |
| manifest = "meta/with_log_and_stdout.cml" |
| } |
| |
| fuchsia_component("with_log_shard") { |
| testonly = true |
| deps = [ ":without_log_bin" ] |
| manifest = "meta/with_log_shard.cml" |
| } |