blob: 6570490592e433e08a8a39e19ebd63d7dcb41244 [file] [log] [blame]
load("//tools:environments.bzl", "mcu_cpus")
cc_library(
name = "time",
srcs = [
"time.cc",
],
hdrs = [
"time.h",
],
visibility = ["//visibility:public"],
deps = [
"//aos:macros",
"//aos/ipc_lib:shared_mem",
"//aos/logging",
"//aos/mutex",
"//aos/type_traits",
],
)
# TODO(Brian): Remove this hack once bazel chases deps through selects correctly.
cc_library(
name = "time_mcu",
srcs = [
"time.cc",
],
hdrs = [
"time.h",
],
restricted_to = mcu_cpus,
visibility = ["//visibility:public"],
deps = [
"//aos:macros",
"//aos/type_traits",
"//motors/core",
],
)
cc_test(
name = "time_test",
srcs = [
"time_test.cc",
],
deps = [
":time",
"//aos/logging",
"//aos/testing:googletest",
"//aos/util:death_test_log_implementation",
],
)