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", |
Tyler Chatow | e6f5bef | 2020-10-31 14:22:04 -0700 | [diff] [blame] | 8 | "//aos:aos_dump_autocomplete.sh", |
Austin Schuh | 91d8d06 | 2020-11-02 17:11:13 -0800 | [diff] [blame] | 9 | "//aos/starter", |
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", |
Austin Schuh | 91d8d06 | 2020-11-02 17:11:13 -0800 | [diff] [blame] | 170 | "//aos/type_traits", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 171 | "@com_github_google_glog//:glog", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 172 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 173 | ) |
| 174 | |
| 175 | cc_test( |
| 176 | name = "event_test", |
| 177 | srcs = [ |
| 178 | "event_test.cc", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 179 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 180 | deps = [ |
| 181 | ":event", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 182 | "//aos/testing:googletest", |
| 183 | "//aos/testing:test_logging", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 184 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 185 | ], |
| 186 | ) |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 187 | |
| 188 | cc_binary( |
| 189 | name = "dump_rtprio", |
| 190 | srcs = [ |
| 191 | "dump_rtprio.cc", |
| 192 | ], |
| 193 | deps = [ |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 194 | "//aos/logging", |
| 195 | "//aos/logging:implementations", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 196 | "//aos/time", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 197 | ], |
| 198 | ) |
| 199 | |
| 200 | cc_library( |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 201 | name = "complex_thread_local", |
| 202 | srcs = [ |
| 203 | "complex_thread_local.cc", |
| 204 | ], |
| 205 | hdrs = [ |
| 206 | "complex_thread_local.h", |
| 207 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 208 | visibility = ["//visibility:public"], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 209 | deps = [ |
| 210 | "//aos:die", |
John Park | 65170ac | 2020-01-08 20:15:24 -0800 | [diff] [blame] | 211 | "@com_google_absl//absl/base", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 212 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 213 | ) |
| 214 | |
| 215 | cc_test( |
| 216 | name = "complex_thread_local_test", |
| 217 | srcs = [ |
| 218 | "complex_thread_local_test.cc", |
| 219 | ], |
| 220 | deps = [ |
| 221 | ":complex_thread_local", |
| 222 | "//aos/logging", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 223 | "//aos/testing:googletest", |
| 224 | ], |
| 225 | ) |
| 226 | |
| 227 | cc_library( |
| 228 | name = "init", |
| 229 | srcs = [ |
| 230 | "init.cc", |
| 231 | ], |
| 232 | hdrs = [ |
| 233 | "init.h", |
| 234 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 235 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 236 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 237 | ":realtime", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 238 | "//aos:die", |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 239 | "//aos/logging:implementations", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 240 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 241 | ) |
| 242 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 243 | cc_library( |
| 244 | name = "realtime", |
| 245 | srcs = [ |
| 246 | "realtime.cc", |
| 247 | ], |
| 248 | hdrs = [ |
| 249 | "realtime.h", |
| 250 | ], |
| 251 | visibility = ["//visibility:public"], |
| 252 | deps = [ |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 253 | ":thread_local", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 254 | "@com_github_google_glog//:glog", |
| 255 | ], |
| 256 | ) |
| 257 | |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 258 | flatbuffer_cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 259 | name = "configuration_fbs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 260 | srcs = ["configuration.fbs"], |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 261 | gen_reflections = 1, |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 262 | visibility = ["//visibility:public"], |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 263 | ) |
| 264 | |
Alex Perry | d5e1357 | 2020-02-22 15:15:08 -0800 | [diff] [blame] | 265 | flatbuffer_ts_library( |
| 266 | name = "configuration_ts_fbs", |
| 267 | srcs = ["configuration.fbs"], |
| 268 | visibility = ["//visibility:public"], |
| 269 | ) |
| 270 | |
Brian Silverman | 2876027 | 2020-02-02 13:21:51 -0800 | [diff] [blame] | 271 | flatbuffer_py_library( |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 272 | name = "configuration_fbs_python", |
| 273 | srcs = ["configuration.fbs"], |
| 274 | namespace = "aos", |
| 275 | tables = [ |
| 276 | "Configuration", |
| 277 | "Channel", |
James Kuszmaul | 84ff3e5 | 2020-01-03 19:48:53 -0800 | [diff] [blame] | 278 | "Connection", |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 279 | "Map", |
| 280 | "Node", |
| 281 | ], |
| 282 | visibility = ["//visibility:public"], |
| 283 | ) |
| 284 | |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 285 | cc_library( |
| 286 | name = "configuration", |
| 287 | srcs = [ |
| 288 | "configuration.cc", |
| 289 | ], |
| 290 | hdrs = [ |
| 291 | "configuration.h", |
| 292 | ], |
Austin Schuh | 972e47e | 2018-12-20 17:20:58 -0800 | [diff] [blame] | 293 | visibility = ["//visibility:public"], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 294 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 295 | ":configuration_fbs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 296 | ":flatbuffer_merge", |
| 297 | ":flatbuffers", |
| 298 | ":json_to_flatbuffer", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 299 | "//aos:unique_malloc_ptr", |
Austin Schuh | 217a978 | 2019-12-21 23:02:50 -0800 | [diff] [blame] | 300 | "//aos/network:team_number", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 301 | "//aos/util:file", |
| 302 | "@com_github_google_glog//:glog", |
| 303 | "@com_google_absl//absl/container:btree", |
| 304 | "@com_google_absl//absl/strings", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 305 | ], |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 306 | ) |
| 307 | |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 308 | cc_library( |
| 309 | name = "make_unique", |
| 310 | hdrs = [ |
| 311 | "make_unique.h", |
| 312 | ], |
| 313 | visibility = ["//visibility:public"], |
| 314 | ) |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 315 | |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 316 | flatbuffer_ts_library( |
| 317 | name = "json_to_flatbuffer_flatbuffer_ts", |
| 318 | srcs = ["json_to_flatbuffer.fbs"], |
| 319 | visibility = ["//aos:__subpackages__"], |
| 320 | ) |
| 321 | |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 322 | flatbuffer_cc_library( |
| 323 | name = "json_to_flatbuffer_flatbuffer", |
| 324 | srcs = ["json_to_flatbuffer.fbs"], |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 325 | gen_reflections = 1, |
James Kuszmaul | abb7713 | 2020-08-01 19:56:16 -0700 | [diff] [blame] | 326 | visibility = ["//aos:__subpackages__"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 327 | ) |
| 328 | |
| 329 | cc_library( |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 330 | name = "flatbuffer_utils", |
| 331 | srcs = ["flatbuffer_utils.cc"], |
| 332 | hdrs = ["flatbuffer_utils.h"], |
| 333 | deps = [ |
| 334 | "@com_github_google_flatbuffers//:flatbuffers", |
| 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"], |
| 342 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 343 | "@com_github_google_glog//:glog", |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 344 | "@com_google_absl//absl/strings", |
| 345 | ], |
| 346 | ) |
| 347 | |
| 348 | cc_library( |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 349 | name = "json_to_flatbuffer", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 350 | srcs = [ |
| 351 | "flatbuffer_introspection.cc", |
| 352 | "json_to_flatbuffer.cc", |
| 353 | ], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 354 | hdrs = ["json_to_flatbuffer.h"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 355 | visibility = ["//visibility:public"], |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 356 | deps = [ |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 357 | ":fast_string_builder", |
Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 358 | ":flatbuffer_utils", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 359 | ":flatbuffers", |
Austin Schuh | d7e252d | 2019-10-06 13:51:02 -0700 | [diff] [blame] | 360 | ":json_tokenizer", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 361 | "@com_github_google_flatbuffers//:flatbuffers", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 362 | "@com_github_google_glog//:glog", |
Austin Schuh | d339a9b | 2019-10-05 21:33:32 -0700 | [diff] [blame] | 363 | "@com_google_absl//absl/strings", |
Austin Schuh | 3e95e5d | 2019-09-20 00:08:54 -0700 | [diff] [blame] | 364 | ], |
| 365 | ) |
| 366 | |
| 367 | cc_test( |
| 368 | name = "json_to_flatbuffer_test", |
| 369 | srcs = [ |
| 370 | "json_to_flatbuffer_test.cc", |
| 371 | ], |
| 372 | deps = [ |
| 373 | ":json_to_flatbuffer", |
| 374 | ":json_to_flatbuffer_flatbuffer", |
| 375 | "//aos/testing:googletest", |
| 376 | ], |
| 377 | ) |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 378 | |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 379 | cc_test( |
| 380 | name = "flatbuffer_introspection_test", |
| 381 | srcs = [ |
| 382 | "flatbuffer_introspection_test.cc", |
| 383 | ], |
| 384 | data = [ |
| 385 | ":json_to_flatbuffer_flatbuffer_reflection_out", |
| 386 | ], |
| 387 | deps = [ |
| 388 | ":json_to_flatbuffer", |
| 389 | ":json_to_flatbuffer_flatbuffer", |
| 390 | "//aos/testing:googletest", |
| 391 | "//aos/util:file", |
| 392 | "@com_github_google_flatbuffers//:flatbuffers", |
| 393 | ], |
| 394 | ) |
| 395 | |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 396 | cc_library( |
| 397 | name = "flatbuffer_merge", |
| 398 | srcs = ["flatbuffer_merge.cc"], |
| 399 | hdrs = ["flatbuffer_merge.h"], |
| 400 | copts = ["-Wno-cast-align"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 401 | visibility = ["//visibility:public"], |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 402 | deps = [ |
| 403 | ":flatbuffer_utils", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 404 | ":flatbuffers", |
Austin Schuh | 09d7ffa | 2019-10-03 23:43:34 -0700 | [diff] [blame] | 405 | "@com_github_google_flatbuffers//:flatbuffers", |
| 406 | ], |
| 407 | ) |
| 408 | |
| 409 | cc_test( |
| 410 | name = "flatbuffer_merge_test", |
| 411 | srcs = [ |
| 412 | "flatbuffer_merge_test.cc", |
| 413 | ], |
| 414 | deps = [ |
| 415 | ":flatbuffer_merge", |
| 416 | ":json_to_flatbuffer", |
| 417 | ":json_to_flatbuffer_flatbuffer", |
| 418 | "//aos/testing:googletest", |
| 419 | ], |
| 420 | ) |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 421 | |
| 422 | cc_library( |
| 423 | name = "flatbuffers", |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 424 | srcs = [ |
| 425 | "flatbuffers.cc", |
| 426 | ], |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 427 | hdrs = [ |
| 428 | "flatbuffers.h", |
| 429 | ], |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 430 | visibility = ["//visibility:public"], |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 431 | deps = [ |
James Kuszmaul | ad8a808 | 2020-02-14 21:21:58 -0800 | [diff] [blame] | 432 | "//aos:macros", |
Brian Silverman | 354697a | 2020-09-22 21:06:32 -0700 | [diff] [blame] | 433 | "//aos/containers:resizeable_buffer", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 434 | "@com_github_google_flatbuffers//:flatbuffers", |
Austin Schuh | 40485ed | 2019-10-26 21:51:44 -0700 | [diff] [blame] | 435 | "@com_github_google_glog//:glog", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 436 | "@com_google_absl//absl/strings", |
Austin Schuh | 6f3babe | 2020-01-26 20:34:50 -0800 | [diff] [blame] | 437 | "@com_google_absl//absl/types:span", |
Austin Schuh | e93d864 | 2019-10-13 15:27:07 -0700 | [diff] [blame] | 438 | ], |
| 439 | ) |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 440 | |
| 441 | cc_test( |
| 442 | name = "configuration_test", |
| 443 | srcs = [ |
| 444 | "configuration_test.cc", |
| 445 | ], |
| 446 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 447 | "//aos/events:pingpong_config", |
Austin Schuh | 6b9c415 | 2019-11-29 12:45:24 -0800 | [diff] [blame] | 448 | "//aos/events:pong.bfbs", |
James Kuszmaul | c0c08da | 2020-05-10 18:56:07 -0700 | [diff] [blame] | 449 | "//aos/testdata:test_configs", |
Austin Schuh | cb10841 | 2019-10-13 16:09:54 -0700 | [diff] [blame] | 450 | ], |
| 451 | deps = [ |
| 452 | ":configuration", |
| 453 | "//aos/testing:googletest", |
| 454 | "//aos/testing:test_logging", |
| 455 | ], |
| 456 | ) |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 457 | |
| 458 | cc_binary( |
| 459 | name = "config_flattener", |
| 460 | srcs = [ |
| 461 | "config_flattener.cc", |
| 462 | ], |
| 463 | visibility = ["//visibility:public"], |
| 464 | deps = [ |
| 465 | ":configuration", |
| 466 | ":init", |
| 467 | "//aos/util:file", |
| 468 | "@com_github_google_glog//:glog", |
| 469 | ], |
| 470 | ) |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 471 | |
| 472 | cc_binary( |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 473 | name = "aos_dump", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 474 | srcs = [ |
Austin Schuh | 944df34 | 2019-12-21 17:08:55 -0800 | [diff] [blame] | 475 | "aos_dump.cc", |
Tyler Chatow | 5e369a4 | 2019-11-23 11:57:31 -0800 | [diff] [blame] | 476 | ], |
| 477 | visibility = ["//visibility:public"], |
| 478 | deps = [ |
| 479 | ":configuration", |
| 480 | ":json_to_flatbuffer", |
| 481 | "//aos:init", |
| 482 | "//aos/events:shm_event_loop", |
| 483 | "@com_github_google_glog//:glog", |
| 484 | ], |
| 485 | ) |
Brian Silverman | 79ec7fc | 2020-06-08 20:11:22 -0500 | [diff] [blame] | 486 | |
Jim Ostrowski | 17ce54d | 2020-10-24 17:24:01 -0700 | [diff] [blame] | 487 | cc_binary( |
| 488 | name = "aos_graph_nodes", |
| 489 | srcs = [ |
| 490 | "aos_graph_nodes.cc", |
| 491 | ], |
| 492 | visibility = ["//visibility:public"], |
| 493 | deps = [ |
| 494 | ":configuration", |
| 495 | ":json_to_flatbuffer", |
| 496 | "//aos:init", |
| 497 | "//aos/events:shm_event_loop", |
| 498 | "@com_github_google_glog//:glog", |
| 499 | ], |
| 500 | ) |
| 501 | |
Brian Silverman | 79ec7fc | 2020-06-08 20:11:22 -0500 | [diff] [blame] | 502 | cc_library( |
| 503 | name = "ftrace", |
| 504 | srcs = [ |
| 505 | "ftrace.cc", |
| 506 | ], |
| 507 | hdrs = [ |
| 508 | "ftrace.h", |
| 509 | ], |
| 510 | visibility = ["//visibility:public"], |
| 511 | deps = [ |
| 512 | "@com_github_google_glog//:glog", |
| 513 | ], |
| 514 | ) |
Tyler Chatow | fcf16f4 | 2020-07-26 12:41:36 -0700 | [diff] [blame] | 515 | |
| 516 | cc_library( |
| 517 | name = "fast_string_builder", |
| 518 | srcs = [ |
| 519 | "fast_string_builder.cc", |
| 520 | ], |
| 521 | hdrs = [ |
| 522 | "fast_string_builder.h", |
| 523 | ], |
| 524 | deps = [ |
| 525 | "@com_github_google_glog//:glog", |
| 526 | "@com_google_absl//absl/strings", |
| 527 | "@com_google_absl//absl/strings:str_format", |
| 528 | ], |
| 529 | ) |
Brian Silverman | b47f555 | 2020-10-01 15:08:14 -0700 | [diff] [blame] | 530 | |
| 531 | cc_library( |
| 532 | name = "thread_local", |
| 533 | hdrs = [ |
| 534 | "thread_local.h", |
| 535 | ], |
| 536 | visibility = ["//visibility:public"], |
| 537 | ) |
Austin Schuh | cc6070c | 2020-10-10 20:25:56 -0700 | [diff] [blame] | 538 | |
| 539 | cc_test( |
| 540 | name = "realtime_test", |
| 541 | srcs = [ |
| 542 | "realtime_test.cc", |
| 543 | ], |
| 544 | visibility = ["//visibility:public"], |
| 545 | deps = [ |
| 546 | ":realtime", |
| 547 | "//aos/testing:googletest", |
| 548 | ], |
| 549 | ) |
Austin Schuh | 977a5ed | 2020-12-02 23:20:04 -0800 | [diff] [blame^] | 550 | |
| 551 | cc_test( |
| 552 | name = "flatbuffers_test", |
| 553 | srcs = [ |
| 554 | "flatbuffers_test.cc", |
| 555 | ], |
| 556 | deps = [ |
| 557 | ":flatbuffers", |
| 558 | ":json_to_flatbuffer", |
| 559 | ":json_to_flatbuffer_flatbuffer", |
| 560 | "//aos/testing:googletest", |
| 561 | ], |
| 562 | ) |