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 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 11 | deps = [ |
| 12 | "//aos:die", |
| 13 | "//aos/type_traits:type_traits", |
| 14 | "//aos/logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 15 | "//aos/ipc_lib:aos_sync", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 16 | ], |
| 17 | ) |
| 18 | |
| 19 | cc_test( |
| 20 | name = "mutex_test", |
| 21 | srcs = [ |
| 22 | "mutex_test.cc", |
| 23 | ], |
| 24 | deps = [ |
| 25 | "//aos:die", |
| 26 | ":mutex", |
| 27 | "//aos/time:time", |
| 28 | "//aos/logging", |
| 29 | "//aos/util:death_test_log_implementation", |
| 30 | "//aos/util:thread", |
| 31 | "//aos/testing:googletest", |
| 32 | "//aos/testing:test_logging", |
| 33 | "//aos/testing:test_shm", |
| 34 | ], |
| 35 | ) |