John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 1 | load("//tools:environments.bzl", "mcu_cpus") |
Alex Perry | d5e1357 | 2020-02-22 15:15:08 -0800 | [diff] [blame] | 2 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_py_library", "flatbuffer_ts_library") |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 3 | |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 4 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 5 | name = "prime_binaries", |
| 6 | srcs = [ |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 7 | "//aos:aos_dump", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 8 | "//aos/starter", |
Tyler Chatow | e6f5bef | 2020-10-31 14:22:04 -0700 | [diff] [blame^] | 9 | "//aos:aos_dump_autocomplete.sh", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 10 | ], |
| 11 | visibility = ["//visibility:public"], |
Austin Schuh | 1eceeb9 | 2015-11-08 21:16:06 -0800 | [diff] [blame] | 12 | ) |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 13 | |
| 14 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 15 | name = "prime_start_binaries", |
| 16 | srcs = [ |
James Kuszmaul | 38735e8 | 2019-12-07 16:42:06 -0800 | [diff] [blame] | 17 | "//aos/events/logging:logger_main", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 18 | ], |
| 19 | visibility = ["//visibility:public"], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 20 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 21 | |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 22 | filegroup( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 23 | name = "prime_binaries_stripped", |
| 24 | srcs = [ |
| 25 | # starter is hard coded to look for a non-stripped core... |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 26 | "//aos:aos_dump.stripped", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 27 | "//aos/starter", |
Tyler Chatow | e6f5bef | 2020-10-31 14:22:04 -0700 | [diff] [blame^] | 28 | "//aos:aos_dump_autocomplete.sh", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 29 | ], |
| 30 | visibility = ["//visibility:public"], |
| 31 | ) |
| 32 | |
| 33 | filegroup( |
| 34 | name = "prime_start_binaries_stripped", |
| 35 | srcs = [ |
James Kuszmaul | 38735e8 | 2019-12-07 16:42:06 -0800 | [diff] [blame] | 36 | "//aos/events/logging:logger_main.stripped", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 37 | ], |
| 38 | visibility = ["//visibility:public"], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 39 | ) |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 40 | |
| 41 | cc_library( |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 42 | name = "math", |
| 43 | hdrs = [ |
| 44 | "commonmath.h", |
| 45 | ], |
| 46 | compatible_with = mcu_cpus, |
| 47 | visibility = ["//visibility:public"], |
| 48 | ) |
| 49 | |
| 50 | cc_library( |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 51 | name = "byteorder", |
| 52 | hdrs = [ |
| 53 | "byteorder.h", |
| 54 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 55 | visibility = ["//visibility:public"], |
| 56 | ) |
| 57 | |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 58 | py_library( |
| 59 | name = "python_init", |
| 60 | srcs = ["__init__.py"], |
| 61 | visibility = ["//visibility:public"], |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 62 | ) |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 63 | |
| 64 | cc_library( |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 65 | name = "macros", |
| 66 | hdrs = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 67 | "macros.h", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 68 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 69 | compatible_with = mcu_cpus, |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 70 | visibility = ["//visibility:public"], |
| 71 | ) |
| 72 | |
| 73 | cc_library( |
| 74 | name = "gtest_prod", |
| 75 | hdrs = [ |
| 76 | "gtest_prod.h", |
| 77 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 78 | visibility = ["//visibility:public"], |
| 79 | ) |
| 80 | |
| 81 | cc_library( |
| 82 | name = "network_port", |
| 83 | hdrs = [ |
| 84 | "network_port.h", |
| 85 | ], |
| 86 | visibility = ["//visibility:public"], |
| 87 | ) |
| 88 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 89 | cc_library( |
| 90 | name = "unique_malloc_ptr", |
| 91 | hdrs = [ |
| 92 | "unique_malloc_ptr.h", |
| 93 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 94 | visibility = ["//visibility:public"], |
| 95 | ) |
| 96 | |
| 97 | cc_library( |
| 98 | name = "condition", |
| 99 | srcs = [ |
| 100 | "condition.cc", |
| 101 | ], |
| 102 | hdrs = [ |
| 103 | "condition.h", |
| 104 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 105 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 106 | deps = [ |
| 107 | "//aos/ipc_lib:aos_sync", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 108 | "//aos/mutex", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 109 | "@com_github_google_glog//:glog", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 110 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 111 | ) |
| 112 | |
| 113 | cc_test( |
| 114 | name = "condition_test", |
| 115 | srcs = [ |
| 116 | "condition_test.cc", |
| 117 | ], |
| 118 | deps = [ |
| 119 | ":condition", |
| 120 | "//aos:die", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 121 | "//aos/ipc_lib:aos_sync", |
| 122 | "//aos/ipc_lib:core_lib", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 123 | "//aos/logging", |
| 124 | "//aos/mutex", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 125 | "//aos/testing:googletest", |
| 126 | "//aos/testing:prevent_exit", |
| 127 | "//aos/testing:test_shm", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 128 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 129 | ], |
| 130 | ) |
| 131 | |
| 132 | cc_library( |
| 133 | name = "die", |
| 134 | srcs = [ |
| 135 | "die.cc", |
| 136 | ], |
| 137 | hdrs = [ |
| 138 | "die.h", |
| 139 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 140 | visibility = ["//visibility:public"], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 141 | deps = [ |
| 142 | "//aos:macros", |
| 143 | "//aos/libc:aos_strerror", |
| 144 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 145 | ) |
| 146 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 147 | cc_test( |
| 148 | name = "die_test", |
| 149 | srcs = [ |
| 150 | "die_test.cc", |
| 151 | ], |
| 152 | deps = [ |
| 153 | ":die", |
| 154 | "//aos/testing:googletest", |
| 155 | ], |
| 156 | ) |
| 157 | |
| 158 | cc_library( |
| 159 | name = "event", |
| 160 | srcs = [ |
| 161 | "event.cc", |
| 162 | ], |
| 163 | hdrs = [ |
| 164 | "event.h", |
| 165 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 166 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 167 | deps = [ |
| 168 | "//aos/ipc_lib:aos_sync", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 169 | "//aos/time", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 170 | "@com_github_google_glog//:glog", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 171 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 172 | ) |
| 173 | |
| 174 | cc_test( |
| 175 | name = "event_test", |
| 176 | srcs = [ |
| 177 | "event_test.cc", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 178 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 179 | deps = [ |
| 180 | ":event", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 181 | "//aos/testing:googletest", |
| 182 | "//aos/testing:test_logging", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 183 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 184 | ], |
| 185 | ) |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 186 | |
| 187 | cc_binary( |
| 188 | name = "dump_rtprio", |
| 189 | srcs = [ |
| 190 | "dump_rtprio.cc", |
| 191 | ], |
| 192 | deps = [ |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 193 | "//aos/logging", |
| 194 | "//aos/logging:implementations", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 195 | "//aos/time", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 196 | ], |
| 197 | ) |
| 198 | |
| 199 | cc_library( |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 200 | name = "complex_thread_local", |
| 201 | srcs = [ |
| 202 | "complex_thread_local.cc", |
| 203 | ], |
| 204 | hdrs = [ |
| 205 | "complex_thread_local.h", |
| 206 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 207 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 208 | deps = [ |
| 209 | "//aos:die", |
John Park | 65170ac | 2020-01-08 20:15:24 -0800 | [diff] [blame] | 210 | "@com_google_absl//absl/base", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 211 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 212 | ) |
| 213 | |
| 214 | cc_test( |
| 215 | name = "complex_thread_local_test", |
| 216 | srcs = [ |
| 217 | "complex_thread_local_test.cc", |
| 218 | ], |
| 219 | deps = [ |
| 220 | ":complex_thread_local", |
| 221 | "//aos/logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 222 | "//aos/testing:googletest", |
| 223 | ], |
| 224 | ) |
| 225 | |
| 226 | cc_library( |
| 227 | name = "init", |
| 228 | srcs = [ |
| 229 | "init.cc", |
| 230 | ], |
| 231 | hdrs = [ |
| 232 | "init.h", |
| 233 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 234 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 235 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 236 | ":realtime", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 237 | "//aos:die", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 238 | "//aos/logging:implementations", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 239 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 240 | ) |
| 241 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 242 | cc_library( |
| 243 | name = "realtime", |
| 244 | srcs = [ |
| 245 | "realtime.cc", |
| 246 | ], |
| 247 | hdrs = [ |
| 248 | "realtime.h", |
| 249 | ], |
| 250 | visibility = ["//visibility:public"], |
| 251 | deps = [ |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 252 | ":thread_local", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 253 | "@com_github_google_glog//:glog", |
| 254 | ], |
| 255 | ) |
| 256 | |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 257 | flatbuffer_cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 258 | name = "configuration_fbs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 259 | srcs = ["configuration.fbs"], |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 260 | gen_reflections = 1, |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 261 | visibility = ["//visibility:public"], |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 262 | ) |
| 263 | |
Alex Perry | d5e1357 | 2020-02-22 15:15:08 -0800 | [diff] [blame] | 264 | flatbuffer_ts_library( |
| 265 | name = "configuration_ts_fbs", |
| 266 | srcs = ["configuration.fbs"], |
| 267 | visibility = ["//visibility:public"], |
| 268 | ) |
| 269 | |
Brian Silverman | 2876027 | 2020-02-02 13:21:51 -0800 | [diff] [blame] | 270 | flatbuffer_py_library( |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 271 | name = "configuration_fbs_python", |
| 272 | srcs = ["configuration.fbs"], |
| 273 | namespace = "aos", |
| 274 | tables = [ |
| 275 | "Configuration", |
| 276 | "Channel", |
James Kuszmaul | 84ff3e5 | 2020-01-03 19:48:53 -0800 | [diff] [blame] | 277 | "Connection", |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 278 | "Map", |
| 279 | "Node", |
| 280 | ], |
| 281 | visibility = ["//visibility:public"], |
| 282 | ) |
| 283 | |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 284 | cc_library( |
| 285 | name = "configuration", |
| 286 | srcs = [ |
| 287 | "configuration.cc", |
| 288 | ], |
| 289 | hdrs = [ |
| 290 | "configuration.h", |
| 291 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 292 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 293 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 294 | ":configuration_fbs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 295 | ":flatbuffer_merge", |
| 296 | ":flatbuffers", |
| 297 | ":json_to_flatbuffer", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 298 | "//aos:unique_malloc_ptr", |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 299 | "//aos/network:team_number", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 300 | "//aos/util:file", |
| 301 | "@com_github_google_glog//:glog", |
| 302 | "@com_google_absl//absl/container:btree", |
| 303 | "@com_google_absl//absl/strings", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 304 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 305 | ) |
| 306 | |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 307 | cc_library( |
| 308 | name = "make_unique", |
| 309 | hdrs = [ |
| 310 | "make_unique.h", |
| 311 | ], |
| 312 | visibility = ["//visibility:public"], |
| 313 | ) |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 314 | |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 315 | flatbuffer_ts_library( |
| 316 | name = "json_to_flatbuffer_flatbuffer_ts", |
| 317 | srcs = ["json_to_flatbuffer.fbs"], |
| 318 | visibility = ["//aos:__subpackages__"], |
| 319 | ) |
| 320 | |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 321 | flatbuffer_cc_library( |
| 322 | name = "json_to_flatbuffer_flatbuffer", |
| 323 | srcs = ["json_to_flatbuffer.fbs"], |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 324 | gen_reflections = 1, |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 325 | visibility = ["//aos:__subpackages__"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 326 | ) |
| 327 | |
| 328 | cc_library( |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 329 | name = "flatbuffer_utils", |
| 330 | srcs = ["flatbuffer_utils.cc"], |
| 331 | hdrs = ["flatbuffer_utils.h"], |
| 332 | deps = [ |
| 333 | "@com_github_google_flatbuffers//:flatbuffers", |
| 334 | ], |
| 335 | ) |
| 336 | |
| 337 | cc_library( |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 338 | name = "json_tokenizer", |
| 339 | srcs = ["json_tokenizer.cc"], |
| 340 | hdrs = ["json_tokenizer.h"], |
| 341 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 342 | "@com_github_google_glog//:glog", |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 343 | "@com_google_absl//absl/strings", |
| 344 | ], |
| 345 | ) |
| 346 | |
| 347 | cc_library( |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 348 | name = "json_to_flatbuffer", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 349 | srcs = [ |
| 350 | "flatbuffer_introspection.cc", |
| 351 | "json_to_flatbuffer.cc", |
| 352 | ], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 353 | hdrs = ["json_to_flatbuffer.h"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 354 | visibility = ["//visibility:public"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 355 | deps = [ |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 356 | ":fast_string_builder", |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 357 | ":flatbuffer_utils", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 358 | ":flatbuffers", |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 359 | ":json_tokenizer", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 360 | "@com_github_google_flatbuffers//:flatbuffers", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 361 | "@com_github_google_glog//:glog", |
Austin Schuh | d339a9b | 2019-10-05 21:33:32 -0700 | [diff] [blame] | 362 | "@com_google_absl//absl/strings", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 363 | ], |
| 364 | ) |
| 365 | |
| 366 | cc_test( |
| 367 | name = "json_to_flatbuffer_test", |
| 368 | srcs = [ |
| 369 | "json_to_flatbuffer_test.cc", |
| 370 | ], |
| 371 | deps = [ |
| 372 | ":json_to_flatbuffer", |
| 373 | ":json_to_flatbuffer_flatbuffer", |
| 374 | "//aos/testing:googletest", |
| 375 | ], |
| 376 | ) |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 377 | |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 378 | cc_test( |
| 379 | name = "flatbuffer_introspection_test", |
| 380 | srcs = [ |
| 381 | "flatbuffer_introspection_test.cc", |
| 382 | ], |
| 383 | data = [ |
| 384 | ":json_to_flatbuffer_flatbuffer_reflection_out", |
| 385 | ], |
| 386 | deps = [ |
| 387 | ":json_to_flatbuffer", |
| 388 | ":json_to_flatbuffer_flatbuffer", |
| 389 | "//aos/testing:googletest", |
| 390 | "//aos/util:file", |
| 391 | "@com_github_google_flatbuffers//:flatbuffers", |
| 392 | ], |
| 393 | ) |
| 394 | |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 395 | cc_library( |
| 396 | name = "flatbuffer_merge", |
| 397 | srcs = ["flatbuffer_merge.cc"], |
| 398 | hdrs = ["flatbuffer_merge.h"], |
| 399 | copts = ["-Wno-cast-align"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 400 | visibility = ["//visibility:public"], |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 401 | deps = [ |
| 402 | ":flatbuffer_utils", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 403 | ":flatbuffers", |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 404 | "@com_github_google_flatbuffers//:flatbuffers", |
| 405 | ], |
| 406 | ) |
| 407 | |
| 408 | cc_test( |
| 409 | name = "flatbuffer_merge_test", |
| 410 | srcs = [ |
| 411 | "flatbuffer_merge_test.cc", |
| 412 | ], |
| 413 | deps = [ |
| 414 | ":flatbuffer_merge", |
| 415 | ":json_to_flatbuffer", |
| 416 | ":json_to_flatbuffer_flatbuffer", |
| 417 | "//aos/testing:googletest", |
| 418 | ], |
| 419 | ) |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 420 | |
| 421 | cc_library( |
| 422 | name = "flatbuffers", |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 423 | srcs = [ |
| 424 | "flatbuffers.cc", |
| 425 | ], |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 426 | hdrs = [ |
| 427 | "flatbuffers.h", |
| 428 | ], |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 429 | visibility = ["//visibility:public"], |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 430 | deps = [ |
James Kuszmaul | ad8a808 | 2020-02-14 21:21:58 -0800 | [diff] [blame] | 431 | "//aos:macros", |
Brian Silverman | 354697a | 2020-09-22 21:06:32 -0700 | [diff] [blame] | 432 | "//aos/containers:resizeable_buffer", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 433 | "@com_github_google_flatbuffers//:flatbuffers", |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 434 | "@com_github_google_glog//:glog", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 435 | "@com_google_absl//absl/strings", |
Austin Schuh | 6f3babe | 2020-01-26 20:34:50 -0800 | [diff] [blame] | 436 | "@com_google_absl//absl/types:span", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 437 | ], |
| 438 | ) |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 439 | |
| 440 | cc_test( |
| 441 | name = "configuration_test", |
| 442 | srcs = [ |
| 443 | "configuration_test.cc", |
| 444 | ], |
| 445 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 446 | "//aos/events:pingpong_config", |
Austin Schuh | 6b9c415 | 2019-11-29 12:45:24 -0800 | [diff] [blame] | 447 | "//aos/events:pong.bfbs", |
James Kuszmaul | c0c08da | 2020-05-10 18:56:07 -0700 | [diff] [blame] | 448 | "//aos/testdata:test_configs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 449 | ], |
| 450 | deps = [ |
| 451 | ":configuration", |
| 452 | "//aos/testing:googletest", |
| 453 | "//aos/testing:test_logging", |
| 454 | ], |
| 455 | ) |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 456 | |
| 457 | cc_binary( |
| 458 | name = "config_flattener", |
| 459 | srcs = [ |
| 460 | "config_flattener.cc", |
| 461 | ], |
| 462 | visibility = ["//visibility:public"], |
| 463 | deps = [ |
| 464 | ":configuration", |
| 465 | ":init", |
| 466 | "//aos/util:file", |
| 467 | "@com_github_google_glog//:glog", |
| 468 | ], |
| 469 | ) |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 470 | |
| 471 | cc_binary( |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 472 | name = "aos_dump", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 473 | srcs = [ |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 474 | "aos_dump.cc", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 475 | ], |
| 476 | visibility = ["//visibility:public"], |
| 477 | deps = [ |
| 478 | ":configuration", |
| 479 | ":json_to_flatbuffer", |
| 480 | "//aos:init", |
| 481 | "//aos/events:shm_event_loop", |
| 482 | "@com_github_google_glog//:glog", |
| 483 | ], |
| 484 | ) |
Brian Silverman | 79ec7fc | 2020-06-08 20:11:22 -0500 | [diff] [blame] | 485 | |
| 486 | cc_library( |
| 487 | name = "ftrace", |
| 488 | srcs = [ |
| 489 | "ftrace.cc", |
| 490 | ], |
| 491 | hdrs = [ |
| 492 | "ftrace.h", |
| 493 | ], |
| 494 | visibility = ["//visibility:public"], |
| 495 | deps = [ |
| 496 | "@com_github_google_glog//:glog", |
| 497 | ], |
| 498 | ) |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 499 | |
| 500 | cc_library( |
| 501 | name = "fast_string_builder", |
| 502 | srcs = [ |
| 503 | "fast_string_builder.cc", |
| 504 | ], |
| 505 | hdrs = [ |
| 506 | "fast_string_builder.h", |
| 507 | ], |
| 508 | deps = [ |
| 509 | "@com_github_google_glog//:glog", |
| 510 | "@com_google_absl//absl/strings", |
| 511 | "@com_google_absl//absl/strings:str_format", |
| 512 | ], |
| 513 | ) |
Brian Silverman | b47f555 | 2020-10-01 15:08:14 -0700 | [diff] [blame] | 514 | |
| 515 | cc_library( |
| 516 | name = "thread_local", |
| 517 | hdrs = [ |
| 518 | "thread_local.h", |
| 519 | ], |
| 520 | visibility = ["//visibility:public"], |
| 521 | ) |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 522 | |
| 523 | cc_test( |
| 524 | name = "realtime_test", |
| 525 | srcs = [ |
| 526 | "realtime_test.cc", |
| 527 | ], |
| 528 | visibility = ["//visibility:public"], |
| 529 | deps = [ |
| 530 | ":realtime", |
| 531 | "//aos/testing:googletest", |
| 532 | ], |
| 533 | ) |