blob: ef7f6a3848d6e122451a49a4dd73141ba3d47aae [file]
# Copyright 2019 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")
fuchsia_package("httpsdate-time-source") {
deps = [ ":service" ]
}
fuchsia_package("httpsdate-time-source-pull") {
deps = [ ":service" ]
}
group("tests") {
testonly = true
deps = [
":httpsdate-time-source-tests",
"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_binary("bin") {
sources = [
"src/bound.rs",
"src/constants.rs",
"src/datatypes.rs",
"src/diagnostics/cobalt.rs",
"src/diagnostics/composite.rs",
"src/diagnostics/fake.rs",
"src/diagnostics/inspect.rs",
"src/diagnostics/mod.rs",
"src/httpsdate.rs",
"src/main.rs",
"src/sampler.rs",
]
output_name = "httpsdate_time_source"
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
deps = [
":httpsdate_config",
"//sdk/fidl/fuchsia.metrics:fuchsia.metrics_rust",
"//sdk/fidl/fuchsia.net.interfaces:fuchsia.net.interfaces_rust",
"//sdk/fidl/fuchsia.time.external:fuchsia.time.external_rust",
"//sdk/rust/zx",
"//src/lib/cobalt/rust/builders",
"//src/lib/diagnostics/inspect/runtime/rust",
"//src/lib/diagnostics/inspect/rust:fuchsia-inspect",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl/rust/fidl-contrib",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-runtime",
"//src/lib/fuchsia-sync",
"//src/lib/network/fidl_fuchsia_net_interfaces_ext",
"//src/sys/time/lib/httpdate-hyper",
"//src/sys/time/lib/pull-source",
"//src/sys/time/lib/push-source",
"//src/sys/time/lib/time_metrics_registry",
"//third_party/cobalt/src/lib/client/rust:cobalt-client",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:log",
"//third_party/rust_crates:rand",
]
}
rustc_test("httpsdate_time_source_bin_test") {
sources = [
"src/bound.rs",
"src/constants.rs",
"src/datatypes.rs",
"src/diagnostics/cobalt.rs",
"src/diagnostics/composite.rs",
"src/diagnostics/fake.rs",
"src/diagnostics/inspect.rs",
"src/diagnostics/mod.rs",
"src/httpsdate.rs",
"src/main.rs",
"src/sampler.rs",
]
edition = "2024"
proc_macro_deps = [ "//third_party/rust_crates:async-trait" ]
deps = [
":httpsdate_config",
"//sdk/fidl/fuchsia.metrics:fuchsia.metrics_rust",
"//sdk/fidl/fuchsia.net.interfaces:fuchsia.net.interfaces_rust",
"//sdk/fidl/fuchsia.time.external:fuchsia.time.external_rust",
"//sdk/rust/zx",
"//src/lib/cobalt/rust/builders",
"//src/lib/diagnostics/inspect/runtime/rust",
"//src/lib/diagnostics/inspect/rust:fuchsia-inspect",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl/rust/fidl-contrib",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-runtime",
"//src/lib/fuchsia-sync",
"//src/lib/network/fidl_fuchsia_net_interfaces_ext",
"//src/sys/time/lib/httpdate-hyper",
"//src/sys/time/lib/pull-source",
"//src/sys/time/lib/push-source",
"//src/sys/time/lib/time_metrics_registry",
"//third_party/cobalt/src/lib/client/rust:cobalt-client",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:log",
"//third_party/rust_crates:rand",
] + [
"//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions",
"//third_party/rust_crates:assert_matches",
]
source_root = "src/main.rs"
}
fuchsia_unittest_package("httpsdate-time-source-tests") {
package_name = "httpsdate-time-source-tests-gn"
component_name = "httpsdate-time-source-tests"
deps = [ ":httpsdate_time_source_bin_test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
visibility = [
":*",
"//src/sys:*",
]
}
fuchsia_component_manifest("manifest") {
component_name = "httpsdate_time_source"
manifest = "meta/service.cml"
}
fuchsia_component("service") {
cm_label = ":manifest"
visibility = [
":*",
"//src/sys/time/httpsdate_time_source/tests:*",
]
deps = [ ":bin" ]
}
fuchsia_structured_config_rust_lib("httpsdate_config") {
cm_label = ":manifest"
}