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