John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | cc_library( |
| 4 | name = "mutex", |
| 5 | srcs = [ |
| 6 | "mutex.cc", |
| 7 | ], |
| 8 | hdrs = [ |
| 9 | "mutex.h", |
| 10 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 11 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 12 | deps = [ |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 13 | "//aos/ipc_lib:aos_sync", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 14 | "//aos/type_traits", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 15 | "@com_google_absl//absl/log", |
| 16 | "@com_google_absl//absl/log:check", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 17 | ], |
| 18 | ) |
| 19 | |
| 20 | cc_test( |
| 21 | name = "mutex_test", |
| 22 | srcs = [ |
| 23 | "mutex_test.cc", |
| 24 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 26 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 27 | ":mutex", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 28 | "//aos/testing:googletest", |
| 29 | "//aos/testing:test_logging", |
| 30 | "//aos/testing:test_shm", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 31 | "//aos/time", |
| 32 | "//aos/util:death_test_log_implementation", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 33 | "@com_google_absl//absl/log", |
| 34 | "@com_google_absl//absl/log:check", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 35 | ], |
| 36 | ) |