Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 2 | name = "aos_sync", |
| 3 | srcs = [ |
| 4 | "aos_sync.cc", |
| 5 | ], |
| 6 | hdrs = [ |
| 7 | "aos_sync.h", |
| 8 | ], |
| 9 | linkopts = [ |
| 10 | "-lpthread", |
| 11 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 12 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 13 | visibility = ["//visibility:public"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 14 | deps = [ |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 15 | ":shm_observers", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 16 | "//aos:macros", |
Brian Silverman | b47f555 | 2020-10-01 15:08:14 -0700 | [diff] [blame] | 17 | "//aos:thread_local", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 18 | "//aos/util:compiler_memory_barrier", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | "@com_github_google_glog//:glog", |
| 20 | "@com_google_absl//absl/base", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 21 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 22 | ) |
| 23 | |
| 24 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 25 | name = "core_lib", |
| 26 | srcs = [ |
| 27 | "core_lib.c", |
| 28 | ], |
| 29 | hdrs = [ |
| 30 | "core_lib.h", |
| 31 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 32 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 33 | visibility = ["//visibility:public"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 34 | deps = [ |
| 35 | ":aos_sync", |
| 36 | ":shared_mem_types", |
| 37 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 38 | ) |
| 39 | |
| 40 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 41 | name = "shared_mem", |
| 42 | srcs = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 43 | "shared_mem.cc", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 44 | ], |
| 45 | hdrs = [ |
| 46 | "shared_mem.h", |
| 47 | ], |
| 48 | linkopts = [ |
| 49 | "-lrt", |
| 50 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 51 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 52 | visibility = ["//visibility:public"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 53 | deps = [ |
| 54 | ":aos_sync", |
| 55 | ":core_lib", |
| 56 | ":shared_mem_types", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 57 | "@com_github_google_glog//:glog", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 58 | ], |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 59 | ) |
| 60 | |
| 61 | cc_library( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 62 | # TODO(Brian): This should be shared_mem{,.h}, and the other one should be |
| 63 | # shared_mem_init{,.cc,.h}. |
| 64 | name = "shared_mem_types", |
| 65 | hdrs = [ |
| 66 | "shared_mem_types.h", |
| 67 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 68 | target_compatible_with = ["@platforms//os:linux"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 69 | deps = [ |
| 70 | ":aos_sync", |
| 71 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 72 | ) |
| 73 | |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 74 | cc_test( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 75 | name = "ipc_stress_test", |
| 76 | srcs = [ |
| 77 | "ipc_stress_test.cc", |
| 78 | ], |
| 79 | tags = [ |
| 80 | "manual", |
| 81 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 82 | target_compatible_with = ["@platforms//os:linux"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 83 | deps = [ |
| 84 | ":core_lib", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 85 | "//aos:die", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 86 | "//aos/libc:aos_strsignal", |
| 87 | "//aos/libc:dirname", |
| 88 | "//aos/logging", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 89 | "//aos/mutex", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 90 | "//aos/testing:googletest", |
| 91 | "//aos/testing:test_shm", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 92 | "//aos/time", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 93 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 94 | ) |
| 95 | |
Brian Silverman | e4d8b28 | 2015-12-24 13:44:48 -0800 | [diff] [blame] | 96 | cc_binary( |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 97 | name = "ipc_comparison", |
| 98 | srcs = [ |
| 99 | "ipc_comparison.cc", |
| 100 | ], |
Brian Silverman | 687896e | 2020-10-01 15:05:38 -0700 | [diff] [blame] | 101 | linkopts = ["-lrt"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 102 | target_compatible_with = ["@platforms//os:linux"], |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 103 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 104 | ":event", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 105 | "//aos:condition", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 106 | "//aos:init", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 107 | "//aos/logging", |
| 108 | "//aos/logging:implementations", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 109 | "//aos/mutex", |
| 110 | "@com_github_gflags_gflags//:gflags", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 111 | ], |
Brian Silverman | e4d8b28 | 2015-12-24 13:44:48 -0800 | [diff] [blame] | 112 | ) |
Austin Schuh | 6c590f8 | 2019-09-11 19:23:12 -0700 | [diff] [blame] | 113 | |
| 114 | cc_library( |
| 115 | name = "signalfd", |
| 116 | srcs = [ |
| 117 | "signalfd.cc", |
| 118 | ], |
| 119 | hdrs = [ |
| 120 | "signalfd.h", |
| 121 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 122 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 123 | visibility = ["//visibility:public"], |
Austin Schuh | 6c590f8 | 2019-09-11 19:23:12 -0700 | [diff] [blame] | 124 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 125 | "@com_github_google_glog//:glog", |
Austin Schuh | 6c590f8 | 2019-09-11 19:23:12 -0700 | [diff] [blame] | 126 | ], |
| 127 | ) |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 128 | |
Brian Silverman | 407cc53 | 2019-11-03 11:40:56 -0800 | [diff] [blame] | 129 | cc_test( |
| 130 | name = "signalfd_test", |
| 131 | srcs = [ |
| 132 | "signalfd_test.cc", |
| 133 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 134 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 407cc53 | 2019-11-03 11:40:56 -0800 | [diff] [blame] | 135 | deps = [ |
| 136 | ":signalfd", |
| 137 | "//aos/testing:googletest", |
| 138 | "//aos/testing:test_logging", |
| 139 | "@com_github_google_glog//:glog", |
| 140 | ], |
| 141 | ) |
| 142 | |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 143 | cc_library( |
| 144 | name = "index", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 145 | srcs = ["index.cc"], |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 146 | hdrs = ["index.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 147 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 148 | visibility = ["//visibility:public"], |
Brian Silverman | 177567e | 2020-08-12 19:51:33 -0700 | [diff] [blame] | 149 | deps = [ |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 150 | ":shm_observers", |
Brian Silverman | 177567e | 2020-08-12 19:51:33 -0700 | [diff] [blame] | 151 | "@com_github_google_glog//:glog", |
| 152 | ], |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 153 | ) |
| 154 | |
| 155 | cc_test( |
| 156 | name = "index_test", |
| 157 | srcs = ["index_test.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 158 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 159 | deps = [ |
| 160 | ":index", |
| 161 | "//aos/testing:googletest", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 162 | "@com_github_google_glog//:glog", |
Austin Schuh | 25356e2 | 2019-09-11 19:27:07 -0700 | [diff] [blame] | 163 | ], |
| 164 | ) |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 165 | |
| 166 | cc_library( |
| 167 | name = "lockless_queue", |
| 168 | srcs = [ |
| 169 | "lockless_queue.cc", |
| 170 | "lockless_queue_memory.h", |
| 171 | ], |
| 172 | hdrs = ["lockless_queue.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 173 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 174 | visibility = ["//visibility:public"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 175 | deps = [ |
| 176 | ":aos_sync", |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 177 | ":data_alignment", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 178 | ":index", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 179 | "//aos:realtime", |
Austin Schuh | 8902fa5 | 2021-03-14 22:39:24 -0700 | [diff] [blame] | 180 | "//aos:uuid", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 181 | "//aos/time", |
| 182 | "//aos/util:compiler_memory_barrier", |
Austin Schuh | f257f3c | 2019-10-27 21:00:43 -0700 | [diff] [blame] | 183 | "@com_github_google_glog//:glog", |
Austin Schuh | be41674 | 2020-10-03 17:24:26 -0700 | [diff] [blame] | 184 | "@com_google_absl//absl/strings", |
Brian Silverman | 0eaa1da | 2020-08-12 20:03:52 -0700 | [diff] [blame] | 185 | "@com_google_absl//absl/types:span", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 186 | ], |
| 187 | ) |
| 188 | |
| 189 | cc_library( |
| 190 | name = "queue_racer", |
| 191 | testonly = True, |
| 192 | srcs = [ |
| 193 | "queue_racer.cc", |
| 194 | ], |
| 195 | hdrs = [ |
| 196 | "queue_racer.h", |
| 197 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 198 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 199 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 200 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 201 | ":lockless_queue", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 202 | "//aos/testing:googletest", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 203 | ], |
| 204 | ) |
| 205 | |
| 206 | cc_test( |
| 207 | name = "lockless_queue_test", |
| 208 | timeout = "eternal", |
| 209 | srcs = ["lockless_queue_test.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 210 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 211 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 212 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 213 | ":lockless_queue", |
| 214 | ":queue_racer", |
| 215 | ":signalfd", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 216 | "//aos/events:epoll", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 217 | "//aos/testing:googletest", |
| 218 | "//aos/testing:prevent_exit", |
Eric Schmiedeberg | ef44b8a | 2022-02-28 17:30:38 -0700 | [diff] [blame^] | 219 | "//aos/util:phased_loop", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 220 | ], |
| 221 | ) |
| 222 | |
| 223 | cc_test( |
| 224 | name = "lockless_queue_death_test", |
| 225 | srcs = ["lockless_queue_death_test.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 226 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 227 | deps = [ |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 228 | ":event", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 229 | ":lockless_queue", |
| 230 | ":queue_racer", |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 231 | ":shm_observers", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 232 | ":signalfd", |
Austin Schuh | 20b2b08 | 2019-09-11 20:42:56 -0700 | [diff] [blame] | 233 | "//aos/events:epoll", |
| 234 | "//aos/libc:aos_strsignal", |
| 235 | "//aos/testing:googletest", |
| 236 | "//aos/testing:prevent_exit", |
| 237 | "//aos/testing:test_logging", |
| 238 | ], |
| 239 | ) |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 240 | |
| 241 | cc_library( |
| 242 | name = "data_alignment", |
| 243 | hdrs = [ |
| 244 | "data_alignment.h", |
| 245 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 246 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | a1652f3 | 2020-01-29 20:41:44 -0800 | [diff] [blame] | 247 | visibility = ["//visibility:public"], |
| 248 | deps = [ |
| 249 | "@com_github_google_glog//:glog", |
| 250 | ], |
| 251 | ) |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 252 | |
| 253 | cc_library( |
| 254 | name = "latency_lib", |
| 255 | srcs = ["latency_lib.cc"], |
| 256 | hdrs = ["latency_lib.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 257 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 258 | deps = [ |
| 259 | "//aos:realtime", |
| 260 | "//aos/logging", |
| 261 | "//aos/time", |
| 262 | "@com_github_google_glog//:glog", |
| 263 | ], |
| 264 | ) |
| 265 | |
| 266 | cc_binary( |
| 267 | name = "signal_stress", |
| 268 | srcs = [ |
| 269 | "signal_stress.cc", |
| 270 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 271 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 272 | deps = [ |
| 273 | ":latency_lib", |
| 274 | "//aos:init", |
| 275 | "//aos/events:epoll", |
| 276 | "@com_github_gflags_gflags//:gflags", |
| 277 | ], |
| 278 | ) |
| 279 | |
| 280 | cc_binary( |
| 281 | name = "futex_latency", |
| 282 | srcs = [ |
| 283 | "futex_latency.cc", |
| 284 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 285 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 286 | deps = [ |
| 287 | ":latency_lib", |
| 288 | "//aos:condition", |
| 289 | "//aos:init", |
| 290 | "//aos/mutex", |
| 291 | "@com_github_gflags_gflags//:gflags", |
| 292 | ], |
| 293 | ) |
| 294 | |
| 295 | cc_binary( |
| 296 | name = "named_pipe_latency", |
| 297 | srcs = [ |
| 298 | "named_pipe_latency.cc", |
| 299 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 300 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 301 | deps = [ |
| 302 | ":latency_lib", |
| 303 | "//aos:init", |
| 304 | "//aos/events:epoll", |
| 305 | "@com_github_gflags_gflags//:gflags", |
| 306 | ], |
| 307 | ) |
| 308 | |
| 309 | cc_binary( |
| 310 | name = "eventfd_latency", |
| 311 | srcs = [ |
| 312 | "eventfd_latency.cc", |
| 313 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 314 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 5af45eb | 2019-09-16 20:54:18 -0700 | [diff] [blame] | 315 | deps = [ |
| 316 | ":latency_lib", |
| 317 | "//aos:init", |
| 318 | "//aos/events:epoll", |
| 319 | "@com_github_gflags_gflags//:gflags", |
| 320 | ], |
| 321 | ) |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 322 | |
| 323 | cc_binary( |
| 324 | name = "print_lockless_queue_memory", |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 325 | srcs = [ |
| 326 | "print_lockless_queue_memory.cc", |
| 327 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 328 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 4d6207a | 2020-09-18 15:26:52 -0700 | [diff] [blame] | 329 | visibility = ["//visibility:public"], |
Brian Silverman | 001f24d | 2020-08-12 19:33:20 -0700 | [diff] [blame] | 330 | deps = [ |
| 331 | ":lockless_queue", |
| 332 | ], |
| 333 | ) |
Brian Silverman | 7b266d9 | 2021-02-17 21:24:02 -0800 | [diff] [blame] | 334 | |
| 335 | cc_library( |
| 336 | name = "event", |
| 337 | srcs = [ |
| 338 | "event.cc", |
| 339 | ], |
| 340 | hdrs = [ |
| 341 | "event.h", |
| 342 | ], |
| 343 | target_compatible_with = ["@platforms//os:linux"], |
| 344 | visibility = ["//visibility:public"], |
| 345 | deps = [ |
| 346 | "//aos/ipc_lib:aos_sync", |
| 347 | "//aos/time", |
| 348 | "//aos/type_traits", |
| 349 | "@com_github_google_glog//:glog", |
| 350 | ], |
| 351 | ) |
| 352 | |
| 353 | cc_test( |
| 354 | name = "event_test", |
| 355 | srcs = [ |
| 356 | "event_test.cc", |
| 357 | ], |
| 358 | target_compatible_with = ["@platforms//os:linux"], |
| 359 | deps = [ |
| 360 | ":event", |
| 361 | "//aos/testing:googletest", |
| 362 | "//aos/testing:test_logging", |
| 363 | "//aos/time", |
| 364 | ], |
| 365 | ) |
Brian Silverman | 1ed5df5 | 2021-09-13 20:14:06 -0700 | [diff] [blame] | 366 | |
| 367 | cc_library( |
| 368 | name = "shm_observers", |
| 369 | srcs = [ |
| 370 | "shm_observers.cc", |
| 371 | ], |
| 372 | hdrs = [ |
| 373 | "shm_observers.h", |
| 374 | ], |
| 375 | ) |