blob: f54ba1341881f209b8097421647625c3daa17c71 [file] [log] [blame]
Satsuki Uenobc489a52021-04-27 17:07:05 +00001# Copyright 2021 The Fuchsia Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/components.gni")
6import("//build/fidl/fidl.gni")
7import("//build/rust/rustc_library.gni")
8
9fidl("fidl") {
10 name = "fuchsia.testing.deadline"
11 sources = [ "deadline.fidl" ]
Ian McKellaref9ca802023-01-19 01:22:38 +000012 enable_hlcpp = true
Satsuki Uenobc489a52021-04-27 17:07:05 +000013}
14
15rustc_library("named-timer") {
16 name = "named_timer"
17 with_unit_tests = true
18
Sarah Chan64bf58d2025-12-06 16:25:07 -080019 edition = "2024"
Satsuki Uenobc489a52021-04-27 17:07:05 +000020
21 deps = [
Mitchell Kember0c5eddb2022-07-28 23:36:32 +000022 ":fidl_rust",
Adam Perry180a49c2024-10-03 06:38:50 +000023 "//sdk/rust/zx",
Satsuki Uenobc489a52021-04-27 17:07:05 +000024 "//src/lib/fuchsia-async",
Satsuki Uenobc489a52021-04-27 17:07:05 +000025 ]
26
27 test_deps = [ "//third_party/rust_crates:futures" ]
28
29 sources = [ "src/lib.rs" ]
30
31 non_rust_deps = [ ":named_timer_noop_lib" ]
32}
33
34source_set("named-timer-headers") {
35 sources = [ "named_timer.h" ]
36}
37
38shared_library("named_timer_noop_lib") {
39 sources = [ "noop_timer.cc" ]
40 deps = [ ":named-timer-headers" ]
41}
42
43fuchsia_unittest_package("named-timer-test") {
44 deps = [ ":named-timer_test" ]
45}
46
47group("tests") {
48 testonly = true
49 deps = [ ":named-timer-test" ]
50}