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