Brian Silverman | d1805b6 | 2022-07-20 20:47:05 -0700 | [diff] [blame] | 1 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_py_library", "flatbuffer_rust_library", "flatbuffer_ts_library") |
| 2 | load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") |
Brian Silverman | 7edd1ce | 2022-07-23 16:10:54 -0700 | [diff] [blame] | 3 | load("//tools/build_rules:autocxx.bzl", "autocxx_library") |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 4 | |
Austin Schuh | 00e302a | 2020-12-21 11:53:30 -0800 | [diff] [blame] | 5 | exports_files(["aos_dump_autocomplete.sh"]) |
| 6 | |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 7 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 8 | name = "prime_binaries", |
| 9 | srcs = [ |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 10 | "//aos:aos_dump", |
Tyler Chatow | e6f5bef | 2020-10-31 14:22:04 -0700 | [diff] [blame] | 11 | "//aos:aos_dump_autocomplete.sh", |
Brian Silverman | ea2c95f | 2021-02-10 18:10:26 -0800 | [diff] [blame] | 12 | "//aos:aos_send", |
Austin Schuh | 91d8d06 | 2020-11-02 17:11:13 -0800 | [diff] [blame] | 13 | "//aos/starter", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 14 | ], |
| 15 | visibility = ["//visibility:public"], |
Austin Schuh | 1eceeb9 | 2015-11-08 21:16:06 -0800 | [diff] [blame] | 16 | ) |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 17 | |
| 18 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 19 | name = "prime_start_binaries", |
| 20 | srcs = [ |
James Kuszmaul | 38735e8 | 2019-12-07 16:42:06 -0800 | [diff] [blame] | 21 | "//aos/events/logging:logger_main", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 22 | ], |
| 23 | visibility = ["//visibility:public"], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 24 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 25 | |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 26 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 27 | name = "prime_binaries_stripped", |
| 28 | srcs = [ |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 29 | "//aos:aos_dump.stripped", |
Tyler Chatow | e6f5bef | 2020-10-31 14:22:04 -0700 | [diff] [blame] | 30 | "//aos:aos_dump_autocomplete.sh", |
Brian Silverman | ea2c95f | 2021-02-10 18:10:26 -0800 | [diff] [blame] | 31 | "//aos:aos_send.stripped", |
Austin Schuh | 44e0b14 | 2021-10-16 15:51:10 -0700 | [diff] [blame] | 32 | "//aos/starter:starter_stripped", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 33 | ], |
| 34 | visibility = ["//visibility:public"], |
| 35 | ) |
| 36 | |
| 37 | filegroup( |
| 38 | name = "prime_start_binaries_stripped", |
| 39 | srcs = [ |
James Kuszmaul | 38735e8 | 2019-12-07 16:42:06 -0800 | [diff] [blame] | 40 | "//aos/events/logging:logger_main.stripped", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 41 | ], |
| 42 | visibility = ["//visibility:public"], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 43 | ) |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 44 | |
| 45 | cc_library( |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 46 | name = "math", |
| 47 | hdrs = [ |
| 48 | "commonmath.h", |
| 49 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 50 | visibility = ["//visibility:public"], |
| 51 | ) |
| 52 | |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 53 | py_library( |
| 54 | name = "python_init", |
| 55 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 56 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 57 | visibility = ["//visibility:public"], |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 58 | ) |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 59 | |
| 60 | cc_library( |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 61 | name = "macros", |
| 62 | hdrs = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 63 | "macros.h", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 64 | ], |
| 65 | visibility = ["//visibility:public"], |
| 66 | ) |
| 67 | |
| 68 | cc_library( |
| 69 | name = "gtest_prod", |
| 70 | hdrs = [ |
| 71 | "gtest_prod.h", |
| 72 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 73 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 74 | visibility = ["//visibility:public"], |
| 75 | ) |
| 76 | |
| 77 | cc_library( |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 78 | name = "unique_malloc_ptr", |
| 79 | hdrs = [ |
| 80 | "unique_malloc_ptr.h", |
| 81 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 82 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 83 | visibility = ["//visibility:public"], |
| 84 | ) |
| 85 | |
| 86 | cc_library( |
| 87 | name = "condition", |
| 88 | srcs = [ |
| 89 | "condition.cc", |
| 90 | ], |
| 91 | hdrs = [ |
| 92 | "condition.h", |
| 93 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 94 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 95 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 96 | deps = [ |
| 97 | "//aos/ipc_lib:aos_sync", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 98 | "//aos/mutex", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 99 | "@com_github_google_glog//:glog", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 100 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 101 | ) |
| 102 | |
| 103 | cc_test( |
| 104 | name = "condition_test", |
| 105 | srcs = [ |
| 106 | "condition_test.cc", |
| 107 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 108 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 109 | deps = [ |
| 110 | ":condition", |
| 111 | "//aos:die", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 112 | "//aos/ipc_lib:aos_sync", |
| 113 | "//aos/ipc_lib:core_lib", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 114 | "//aos/logging", |
| 115 | "//aos/mutex", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 116 | "//aos/testing:googletest", |
| 117 | "//aos/testing:prevent_exit", |
| 118 | "//aos/testing:test_shm", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 119 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 120 | ], |
| 121 | ) |
| 122 | |
| 123 | cc_library( |
| 124 | name = "die", |
| 125 | srcs = [ |
| 126 | "die.cc", |
| 127 | ], |
| 128 | hdrs = [ |
| 129 | "die.h", |
| 130 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 131 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 132 | visibility = ["//visibility:public"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 133 | deps = [ |
| 134 | "//aos:macros", |
| 135 | "//aos/libc:aos_strerror", |
| 136 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 137 | ) |
| 138 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 139 | cc_test( |
| 140 | name = "die_test", |
| 141 | srcs = [ |
| 142 | "die_test.cc", |
| 143 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 144 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 145 | deps = [ |
| 146 | ":die", |
| 147 | "//aos/testing:googletest", |
| 148 | ], |
| 149 | ) |
| 150 | |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 151 | cc_binary( |
| 152 | name = "dump_rtprio", |
| 153 | srcs = [ |
| 154 | "dump_rtprio.cc", |
| 155 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 156 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 157 | deps = [ |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 158 | "//aos/time", |
Brian Silverman | 3eb60d2 | 2021-11-04 19:06:47 -0700 | [diff] [blame] | 159 | "@com_github_google_glog//:glog", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 160 | ], |
| 161 | ) |
| 162 | |
| 163 | cc_library( |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 164 | name = "init", |
| 165 | srcs = [ |
| 166 | "init.cc", |
| 167 | ], |
| 168 | hdrs = [ |
| 169 | "init.h", |
| 170 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 171 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 172 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 173 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 174 | ":realtime", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 175 | "//aos:die", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 176 | "//aos/logging:implementations", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 177 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 178 | ) |
| 179 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 180 | cc_library( |
| 181 | name = "realtime", |
| 182 | srcs = [ |
| 183 | "realtime.cc", |
| 184 | ], |
| 185 | hdrs = [ |
| 186 | "realtime.h", |
| 187 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 188 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 189 | visibility = ["//visibility:public"], |
| 190 | deps = [ |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 191 | ":thread_local", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 192 | "@com_github_google_glog//:glog", |
| 193 | ], |
| 194 | ) |
| 195 | |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 196 | flatbuffer_cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 197 | name = "configuration_fbs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 198 | srcs = ["configuration.fbs"], |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 199 | gen_reflections = 1, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 200 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 201 | visibility = ["//visibility:public"], |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 202 | ) |
| 203 | |
Alex Perry | d5e1357 | 2020-02-22 15:15:08 -0800 | [diff] [blame] | 204 | flatbuffer_ts_library( |
| 205 | name = "configuration_ts_fbs", |
| 206 | srcs = ["configuration.fbs"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 207 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | d5e1357 | 2020-02-22 15:15:08 -0800 | [diff] [blame] | 208 | visibility = ["//visibility:public"], |
| 209 | ) |
| 210 | |
Brian Silverman | 2876027 | 2020-02-02 13:21:51 -0800 | [diff] [blame] | 211 | flatbuffer_py_library( |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 212 | name = "configuration_fbs_python", |
| 213 | srcs = ["configuration.fbs"], |
| 214 | namespace = "aos", |
| 215 | tables = [ |
| 216 | "Configuration", |
| 217 | "Channel", |
James Kuszmaul | 84ff3e5 | 2020-01-03 19:48:53 -0800 | [diff] [blame] | 218 | "Connection", |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 219 | "Map", |
| 220 | "Node", |
| 221 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 222 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 223 | visibility = ["//visibility:public"], |
| 224 | ) |
| 225 | |
Brian Silverman | 7edd1ce | 2022-07-23 16:10:54 -0700 | [diff] [blame] | 226 | flatbuffer_rust_library( |
| 227 | name = "configuration_rust_fbs", |
| 228 | srcs = ["configuration.fbs"], |
| 229 | crate_name = "aos_configuration_fbs", |
| 230 | target_compatible_with = ["//tools/platforms/rust:has_support"], |
| 231 | visibility = ["//visibility:public"], |
| 232 | ) |
| 233 | |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 234 | cc_library( |
| 235 | name = "configuration", |
| 236 | srcs = [ |
| 237 | "configuration.cc", |
| 238 | ], |
| 239 | hdrs = [ |
| 240 | "configuration.h", |
| 241 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 242 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 243 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 244 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 245 | ":configuration_fbs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 246 | ":flatbuffer_merge", |
| 247 | ":flatbuffers", |
| 248 | ":json_to_flatbuffer", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 249 | "//aos:unique_malloc_ptr", |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 250 | "//aos/network:team_number", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 251 | "//aos/util:file", |
| 252 | "@com_github_google_glog//:glog", |
| 253 | "@com_google_absl//absl/container:btree", |
| 254 | "@com_google_absl//absl/strings", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 255 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 256 | ) |
| 257 | |
Brian Silverman | 7edd1ce | 2022-07-23 16:10:54 -0700 | [diff] [blame] | 258 | cc_library( |
| 259 | name = "configuration_for_rust", |
| 260 | srcs = [ |
| 261 | "configuration_for_rust.cc", |
| 262 | ], |
| 263 | hdrs = [ |
| 264 | "configuration_for_rust.h", |
| 265 | ], |
| 266 | deps = [ |
| 267 | ":configuration", |
| 268 | ":for_rust", |
| 269 | "//third_party/cargo:cxx_cc", |
| 270 | ], |
| 271 | ) |
| 272 | |
| 273 | autocxx_library( |
| 274 | name = "configuration_rs", |
| 275 | srcs = ["configuration.rs"], |
| 276 | crate_name = "aos_configuration", |
| 277 | libs = [ |
| 278 | ":configuration", |
| 279 | ":configuration_for_rust", |
| 280 | ":configuration_fbs", |
| 281 | ], |
| 282 | override_cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux", |
| 283 | target_compatible_with = ["//tools/platforms/rust:has_support"], |
| 284 | visibility = ["//visibility:public"], |
| 285 | deps = [ |
| 286 | ":configuration_rust_fbs", |
| 287 | ":flatbuffers_rs", |
| 288 | "//third_party/cargo:thiserror", |
| 289 | ], |
| 290 | ) |
| 291 | |
| 292 | rust_test( |
| 293 | name = "configuration_rs_test", |
| 294 | crate = ":configuration_rs", |
| 295 | data = [ |
| 296 | "//aos/testdata:test_configs", |
| 297 | ], |
| 298 | # TODO: Make Rust play happy with pic vs nopic. Details at: |
| 299 | # https://github.com/bazelbuild/rules_rust/issues/118 |
| 300 | rustc_flags = ["-Crelocation-model=static"], |
| 301 | ) |
| 302 | |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 303 | flatbuffer_ts_library( |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 304 | name = "json_to_flatbuffer_fbs_ts", |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 305 | srcs = ["json_to_flatbuffer.fbs"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 306 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 307 | visibility = ["//aos:__subpackages__"], |
| 308 | ) |
| 309 | |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 310 | flatbuffer_cc_library( |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 311 | name = "json_to_flatbuffer_fbs", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 312 | srcs = ["json_to_flatbuffer.fbs"], |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 313 | gen_reflections = 1, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 314 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 315 | visibility = ["//aos:__subpackages__"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 316 | ) |
| 317 | |
Brian Silverman | d1805b6 | 2022-07-20 20:47:05 -0700 | [diff] [blame] | 318 | flatbuffer_rust_library( |
| 319 | name = "json_to_flatbuffer_rust_fbs", |
| 320 | srcs = ["json_to_flatbuffer.fbs"], |
| 321 | crate_name = "aos_json_to_flatbuffer_fbs", |
| 322 | target_compatible_with = ["//tools/platforms/rust:has_support"], |
| 323 | visibility = ["//aos:__subpackages__"], |
| 324 | ) |
| 325 | |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 326 | cc_library( |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 327 | name = "flatbuffer_utils", |
| 328 | srcs = ["flatbuffer_utils.cc"], |
| 329 | hdrs = ["flatbuffer_utils.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 330 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 4ed5fb1 | 2022-03-22 15:20:04 -0700 | [diff] [blame] | 331 | visibility = ["//visibility:public"], |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 332 | deps = [ |
| 333 | "@com_github_google_flatbuffers//:flatbuffers", |
Brian Silverman | cf4fb66 | 2021-02-10 17:54:53 -0800 | [diff] [blame] | 334 | "@com_github_google_glog//:glog", |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 335 | ], |
| 336 | ) |
| 337 | |
| 338 | cc_library( |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 339 | name = "json_tokenizer", |
| 340 | srcs = ["json_tokenizer.cc"], |
| 341 | hdrs = ["json_tokenizer.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 342 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 343 | deps = [ |
Pallavi Madhukar | e2eb281 | 2022-07-19 09:56:09 -0700 | [diff] [blame] | 344 | "@com_github_google_flatbuffers//:flatbuffers", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 345 | "@com_github_google_glog//:glog", |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 346 | "@com_google_absl//absl/strings", |
| 347 | ], |
| 348 | ) |
| 349 | |
| 350 | cc_library( |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 351 | name = "json_to_flatbuffer", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 352 | srcs = [ |
| 353 | "flatbuffer_introspection.cc", |
| 354 | "json_to_flatbuffer.cc", |
| 355 | ], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 356 | hdrs = ["json_to_flatbuffer.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 357 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 358 | visibility = ["//visibility:public"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 359 | deps = [ |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 360 | ":fast_string_builder", |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 361 | ":flatbuffer_utils", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 362 | ":flatbuffers", |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 363 | ":json_tokenizer", |
Austin Schuh | bba1028 | 2021-03-20 22:03:28 -0700 | [diff] [blame] | 364 | "//aos/util:file", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 365 | "@com_github_google_flatbuffers//:flatbuffers", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 366 | "@com_github_google_glog//:glog", |
Austin Schuh | d339a9b | 2019-10-05 21:33:32 -0700 | [diff] [blame] | 367 | "@com_google_absl//absl/strings", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 368 | ], |
| 369 | ) |
| 370 | |
| 371 | cc_test( |
| 372 | name = "json_to_flatbuffer_test", |
| 373 | srcs = [ |
| 374 | "json_to_flatbuffer_test.cc", |
| 375 | ], |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 376 | data = [ |
| 377 | ":json_to_flatbuffer_fbs_reflection_out", |
| 378 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 379 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 380 | deps = [ |
| 381 | ":json_to_flatbuffer", |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 382 | ":json_to_flatbuffer_fbs", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 383 | "//aos/testing:googletest", |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 384 | "//aos/testing:path", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 385 | ], |
| 386 | ) |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 387 | |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 388 | cc_test( |
| 389 | name = "flatbuffer_introspection_test", |
| 390 | srcs = [ |
| 391 | "flatbuffer_introspection_test.cc", |
| 392 | ], |
| 393 | data = [ |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 394 | ":json_to_flatbuffer_fbs_reflection_out", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 395 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 396 | target_compatible_with = ["@platforms//os:linux"], |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 397 | deps = [ |
| 398 | ":json_to_flatbuffer", |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 399 | ":json_to_flatbuffer_fbs", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 400 | "//aos/testing:googletest", |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 401 | "//aos/testing:path", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 402 | "//aos/util:file", |
| 403 | "@com_github_google_flatbuffers//:flatbuffers", |
| 404 | ], |
| 405 | ) |
| 406 | |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 407 | cc_library( |
| 408 | name = "flatbuffer_merge", |
| 409 | srcs = ["flatbuffer_merge.cc"], |
| 410 | hdrs = ["flatbuffer_merge.h"], |
| 411 | copts = ["-Wno-cast-align"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 412 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 413 | visibility = ["//visibility:public"], |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 414 | deps = [ |
| 415 | ":flatbuffer_utils", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 416 | ":flatbuffers", |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 417 | "@com_github_google_flatbuffers//:flatbuffers", |
| 418 | ], |
| 419 | ) |
| 420 | |
| 421 | cc_test( |
| 422 | name = "flatbuffer_merge_test", |
| 423 | srcs = [ |
| 424 | "flatbuffer_merge_test.cc", |
| 425 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 426 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 427 | deps = [ |
| 428 | ":flatbuffer_merge", |
| 429 | ":json_to_flatbuffer", |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 430 | ":json_to_flatbuffer_fbs", |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 431 | "//aos/testing:googletest", |
| 432 | ], |
| 433 | ) |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 434 | |
| 435 | cc_library( |
| 436 | name = "flatbuffers", |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 437 | srcs = [ |
| 438 | "flatbuffers.cc", |
| 439 | ], |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 440 | hdrs = [ |
| 441 | "flatbuffers.h", |
| 442 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 443 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 444 | visibility = ["//visibility:public"], |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 445 | deps = [ |
James Kuszmaul | ad8a808 | 2020-02-14 21:21:58 -0800 | [diff] [blame] | 446 | "//aos:macros", |
Brian Silverman | 354697a | 2020-09-22 21:06:32 -0700 | [diff] [blame] | 447 | "//aos/containers:resizeable_buffer", |
davidjevans | 8b9b52f | 2021-09-17 08:57:30 -0700 | [diff] [blame] | 448 | "//aos/util:file", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 449 | "@com_github_google_flatbuffers//:flatbuffers", |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 450 | "@com_github_google_glog//:glog", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 451 | "@com_google_absl//absl/strings", |
Austin Schuh | 6f3babe | 2020-01-26 20:34:50 -0800 | [diff] [blame] | 452 | "@com_google_absl//absl/types:span", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 453 | ], |
| 454 | ) |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 455 | |
Brian Silverman | d1805b6 | 2022-07-20 20:47:05 -0700 | [diff] [blame] | 456 | rust_library( |
| 457 | name = "flatbuffers_rs", |
| 458 | srcs = ["flatbuffers.rs"], |
| 459 | crate_name = "aos_flatbuffers", |
| 460 | target_compatible_with = ["//tools/platforms/rust:has_support"], |
| 461 | visibility = ["//visibility:public"], |
| 462 | deps = [ |
| 463 | "@com_github_google_flatbuffers//rust", |
| 464 | ], |
| 465 | ) |
| 466 | |
| 467 | rust_test( |
| 468 | name = "flatbuffers_rs_test", |
| 469 | crate = ":flatbuffers_rs", |
| 470 | deps = [ |
| 471 | ":json_to_flatbuffer_rust_fbs", |
| 472 | ], |
| 473 | ) |
| 474 | |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 475 | cc_test( |
| 476 | name = "configuration_test", |
| 477 | srcs = [ |
| 478 | "configuration_test.cc", |
| 479 | ], |
| 480 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 481 | "//aos/events:pingpong_config", |
Brian Silverman | dae15a1 | 2022-07-23 12:55:20 -0700 | [diff] [blame] | 482 | "//aos/events:pong_fbs_reflection_out", |
James Kuszmaul | c0c08da | 2020-05-10 18:56:07 -0700 | [diff] [blame] | 483 | "//aos/testdata:test_configs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 484 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 485 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 486 | deps = [ |
| 487 | ":configuration", |
Austin Schuh | 1ef01ef | 2021-02-07 20:40:36 -0800 | [diff] [blame] | 488 | "//aos/testing:flatbuffer_eq", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 489 | "//aos/testing:googletest", |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 490 | "//aos/testing:path", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 491 | "//aos/testing:test_logging", |
| 492 | ], |
| 493 | ) |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 494 | |
| 495 | cc_binary( |
| 496 | name = "config_flattener", |
| 497 | srcs = [ |
| 498 | "config_flattener.cc", |
| 499 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 500 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 501 | visibility = ["//visibility:public"], |
| 502 | deps = [ |
| 503 | ":configuration", |
| 504 | ":init", |
| 505 | "//aos/util:file", |
| 506 | "@com_github_google_glog//:glog", |
| 507 | ], |
| 508 | ) |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 509 | |
Brian Silverman | ea2c95f | 2021-02-10 18:10:26 -0800 | [diff] [blame] | 510 | cc_library( |
| 511 | name = "aos_cli_utils", |
| 512 | srcs = [ |
| 513 | "aos_cli_utils.cc", |
| 514 | ], |
| 515 | hdrs = [ |
| 516 | "aos_cli_utils.h", |
| 517 | ], |
| 518 | target_compatible_with = ["@platforms//os:linux"], |
| 519 | visibility = ["//visibility:public"], |
| 520 | deps = [ |
| 521 | ":configuration", |
| 522 | "//aos:init", |
| 523 | "//aos/events:shm_event_loop", |
| 524 | "@com_github_google_glog//:glog", |
| 525 | ], |
| 526 | ) |
| 527 | |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 528 | cc_binary( |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 529 | name = "aos_dump", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 530 | srcs = [ |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 531 | "aos_dump.cc", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 532 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 533 | target_compatible_with = ["@platforms//os:linux"], |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 534 | visibility = ["//visibility:public"], |
| 535 | deps = [ |
Brian Silverman | ea2c95f | 2021-02-10 18:10:26 -0800 | [diff] [blame] | 536 | ":aos_cli_utils", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 537 | ":configuration", |
| 538 | ":json_to_flatbuffer", |
| 539 | "//aos:init", |
Brian Silverman | ea2c95f | 2021-02-10 18:10:26 -0800 | [diff] [blame] | 540 | "@com_github_google_glog//:glog", |
| 541 | ], |
| 542 | ) |
| 543 | |
| 544 | cc_binary( |
| 545 | name = "aos_send", |
| 546 | srcs = [ |
| 547 | "aos_send.cc", |
| 548 | ], |
| 549 | target_compatible_with = ["@platforms//os:linux"], |
| 550 | visibility = ["//visibility:public"], |
| 551 | deps = [ |
| 552 | ":aos_cli_utils", |
| 553 | ":configuration", |
| 554 | ":init", |
| 555 | ":json_to_flatbuffer", |
| 556 | "@com_github_gflags_gflags//:gflags", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 557 | "@com_github_google_glog//:glog", |
| 558 | ], |
| 559 | ) |
Brian Silverman | 79ec7fc | 2020-06-08 20:11:22 -0500 | [diff] [blame] | 560 | |
Jim Ostrowski | 17ce54d | 2020-10-24 17:24:01 -0700 | [diff] [blame] | 561 | cc_binary( |
| 562 | name = "aos_graph_nodes", |
| 563 | srcs = [ |
| 564 | "aos_graph_nodes.cc", |
| 565 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 566 | target_compatible_with = ["@platforms//os:linux"], |
Jim Ostrowski | 17ce54d | 2020-10-24 17:24:01 -0700 | [diff] [blame] | 567 | visibility = ["//visibility:public"], |
| 568 | deps = [ |
| 569 | ":configuration", |
| 570 | ":json_to_flatbuffer", |
| 571 | "//aos:init", |
| 572 | "//aos/events:shm_event_loop", |
| 573 | "@com_github_google_glog//:glog", |
| 574 | ], |
| 575 | ) |
| 576 | |
Brian Silverman | 79ec7fc | 2020-06-08 20:11:22 -0500 | [diff] [blame] | 577 | cc_library( |
| 578 | name = "ftrace", |
| 579 | srcs = [ |
| 580 | "ftrace.cc", |
| 581 | ], |
| 582 | hdrs = [ |
| 583 | "ftrace.h", |
| 584 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 585 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 79ec7fc | 2020-06-08 20:11:22 -0500 | [diff] [blame] | 586 | visibility = ["//visibility:public"], |
| 587 | deps = [ |
| 588 | "@com_github_google_glog//:glog", |
| 589 | ], |
| 590 | ) |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 591 | |
| 592 | cc_library( |
| 593 | name = "fast_string_builder", |
| 594 | srcs = [ |
| 595 | "fast_string_builder.cc", |
| 596 | ], |
| 597 | hdrs = [ |
| 598 | "fast_string_builder.h", |
| 599 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 600 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 4ed5fb1 | 2022-03-22 15:20:04 -0700 | [diff] [blame] | 601 | visibility = ["//visibility:public"], |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 602 | deps = [ |
| 603 | "@com_github_google_glog//:glog", |
| 604 | "@com_google_absl//absl/strings", |
| 605 | "@com_google_absl//absl/strings:str_format", |
| 606 | ], |
| 607 | ) |
Brian Silverman | b47f555 | 2020-10-01 15:08:14 -0700 | [diff] [blame] | 608 | |
| 609 | cc_library( |
| 610 | name = "thread_local", |
| 611 | hdrs = [ |
| 612 | "thread_local.h", |
| 613 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 614 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | b47f555 | 2020-10-01 15:08:14 -0700 | [diff] [blame] | 615 | visibility = ["//visibility:public"], |
| 616 | ) |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 617 | |
| 618 | cc_test( |
| 619 | name = "realtime_test", |
| 620 | srcs = [ |
| 621 | "realtime_test.cc", |
| 622 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 623 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 624 | visibility = ["//visibility:public"], |
| 625 | deps = [ |
Austin Schuh | 77f3f22 | 2022-06-10 16:49:21 -0700 | [diff] [blame] | 626 | ":init", |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 627 | ":realtime", |
Austin Schuh | 77f3f22 | 2022-06-10 16:49:21 -0700 | [diff] [blame] | 628 | "@com_github_gflags_gflags//:gflags", |
| 629 | "@com_github_google_glog//:glog", |
| 630 | "@com_google_googletest//:gtest", |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 631 | ], |
| 632 | ) |
Austin Schuh | 977a5ed | 2020-12-02 23:20:04 -0800 | [diff] [blame] | 633 | |
| 634 | cc_test( |
| 635 | name = "flatbuffers_test", |
| 636 | srcs = [ |
| 637 | "flatbuffers_test.cc", |
| 638 | ], |
| 639 | deps = [ |
| 640 | ":flatbuffers", |
| 641 | ":json_to_flatbuffer", |
Brian Silverman | c5105ab | 2021-02-10 17:55:38 -0800 | [diff] [blame] | 642 | ":json_to_flatbuffer_fbs", |
Austin Schuh | 977a5ed | 2020-12-02 23:20:04 -0800 | [diff] [blame] | 643 | "//aos/testing:googletest", |
davidjevans | 8b9b52f | 2021-09-17 08:57:30 -0700 | [diff] [blame] | 644 | "//aos/testing:tmpdir", |
Austin Schuh | 977a5ed | 2020-12-02 23:20:04 -0800 | [diff] [blame] | 645 | ], |
| 646 | ) |
Austin Schuh | 0de30f3 | 2020-12-06 12:44:28 -0800 | [diff] [blame] | 647 | |
| 648 | py_binary( |
| 649 | name = "flatbuffers_static", |
| 650 | srcs = ["flatbuffers_static.py"], |
| 651 | visibility = ["//visibility:public"], |
| 652 | ) |
Austin Schuh | 4385b14 | 2021-03-14 21:31:13 -0700 | [diff] [blame] | 653 | |
| 654 | cc_library( |
| 655 | name = "uuid", |
| 656 | srcs = ["uuid.cc"], |
| 657 | hdrs = ["uuid.h"], |
| 658 | target_compatible_with = ["@platforms//os:linux"], |
| 659 | visibility = ["//visibility:public"], |
| 660 | deps = [ |
Austin Schuh | 8902fa5 | 2021-03-14 22:39:24 -0700 | [diff] [blame] | 661 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | 4385b14 | 2021-03-14 21:31:13 -0700 | [diff] [blame] | 662 | "@com_github_google_flatbuffers//:flatbuffers", |
| 663 | "@com_github_google_glog//:glog", |
| 664 | "@com_google_absl//absl/types:span", |
| 665 | ], |
| 666 | ) |
| 667 | |
| 668 | cc_test( |
| 669 | name = "uuid_test", |
| 670 | srcs = ["uuid_test.cc"], |
| 671 | target_compatible_with = ["@platforms//os:linux"], |
| 672 | deps = [ |
| 673 | ":uuid", |
| 674 | "//aos/testing:googletest", |
| 675 | ], |
| 676 | ) |
Austin Schuh | 30f7429 | 2021-08-13 17:25:26 -0700 | [diff] [blame] | 677 | |
| 678 | cc_binary( |
| 679 | name = "aos_graph_channels", |
| 680 | srcs = [ |
| 681 | "aos_graph_channels.cc", |
| 682 | ], |
| 683 | target_compatible_with = ["@platforms//os:linux"], |
| 684 | deps = [ |
| 685 | "//aos:configuration", |
| 686 | "//aos:init", |
| 687 | "//aos:json_to_flatbuffer", |
| 688 | "//aos/events:simulated_event_loop", |
| 689 | "//aos/events/logging:log_reader", |
| 690 | "//aos/time", |
| 691 | "@com_github_gflags_gflags//:gflags", |
| 692 | "@com_github_google_glog//:glog", |
| 693 | ], |
| 694 | ) |
Brian Silverman | 7edd1ce | 2022-07-23 16:10:54 -0700 | [diff] [blame] | 695 | |
| 696 | cc_library( |
| 697 | name = "for_rust", |
| 698 | hdrs = [ |
| 699 | "for_rust.h", |
| 700 | ], |
| 701 | visibility = ["//visibility:public"], |
| 702 | deps = [ |
| 703 | "//third_party/cargo:cxx_cc", |
| 704 | ], |
| 705 | ) |