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