John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 1 | cc_library( |
| 2 | name = "time", |
| 3 | srcs = [ |
| 4 | "time.cc", |
| 5 | ], |
| 6 | hdrs = [ |
| 7 | "time.h", |
| 8 | ], |
Brian Silverman | 3240e10 | 2019-02-16 18:24:24 -0800 | [diff] [blame] | 9 | visibility = ["//visibility:public"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 10 | deps = select({ |
| 11 | "@platforms//os:linux": ["@com_github_google_glog//:glog"], |
| 12 | "//conditions:default": ["//motors/core"], |
| 13 | }), |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | cc_test( |
| 17 | name = "time_test", |
| 18 | srcs = [ |
| 19 | "time_test.cc", |
| 20 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 21 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 22 | deps = [ |
| 23 | ":time", |
| 24 | "//aos/logging", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 25 | "//aos/testing:googletest", |
Brian Silverman | c03a30c | 2019-02-16 18:21:56 -0800 | [diff] [blame] | 26 | "//aos/util:death_test_log_implementation", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 27 | ], |
| 28 | ) |