| # 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") |
| |
| group("fake-hrtimer") { |
| testonly = true |
| public_deps = [ |
| ":bin", |
| ":tests", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [] |
| } |
| |
| rustc_binary("bin") { |
| output_name = "fake-hrtimer-rust-bin" |
| testonly = true |
| edition = "2024" |
| sources = [ "src/main.rs" ] |
| deps = [ |
| #"//sdk/fidl/fuchsia.time.alarms:fuchsia.time.alarms_rust", |
| "//sdk/fidl/fuchsia.hardware.hrtimer:fuchsia.hardware.hrtimer_rust", |
| |
| #"//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/fidl/fuchsia.power.broker:fuchsia.power.broker_rust", |
| "//sdk/fidl/fuchsia.power.system:fuchsia.power.system_rust", |
| "//sdk/rust/zx", |
| "//src/lib/diagnostics/inspect/runtime/rust", |
| "//src/lib/diagnostics/inspect/rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| |
| #"//src/lib/fuchsia-runtime", |
| "//src/lib/trace/rust:trace-provider", |
| |
| #"//src/sys/time/timekeeper/alarms", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:scopeguard", |
| ] |
| } |
| |
| fuchsia_component("default") { |
| testonly = true |
| manifest = "meta/fake-hrtimer.cml" |
| deps = [ ":bin" ] |
| } |
| |
| # The resulting package URL will be: |
| # fuchsia-pkg://fuchsia.com/wake-alarms#meta/default.cm |
| fuchsia_package("pkg") { |
| package_name = "fake-hrtimer" |
| testonly = true |
| deps = [ ":default" ] |
| } |