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 | ], |
| 11 | compatible_with = [ |
| 12 | "//tools:armhf-debian", |
| 13 | ], |
| 14 | deps = [ |
| 15 | "//aos:die", |
| 16 | "//aos/type_traits:type_traits", |
| 17 | "//aos/logging", |
| 18 | "//aos/linux_code/ipc_lib:aos_sync", |
| 19 | ], |
| 20 | ) |
| 21 | |
| 22 | cc_test( |
| 23 | name = "mutex_test", |
| 24 | srcs = [ |
| 25 | "mutex_test.cc", |
| 26 | ], |
| 27 | deps = [ |
| 28 | "//aos:die", |
| 29 | ":mutex", |
| 30 | "//aos/time:time", |
| 31 | "//aos/logging", |
| 32 | "//aos/util:death_test_log_implementation", |
| 33 | "//aos/util:thread", |
| 34 | "//aos/testing:googletest", |
| 35 | "//aos/testing:test_logging", |
| 36 | "//aos/testing:test_shm", |
| 37 | ], |
| 38 | ) |