blob: beeb2b0512188af4ff11a55376b43f48357315df [file] [log] [blame]
Alex Perryd5e13572020-02-22 15:15:08 -08001load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_py_library", "flatbuffer_ts_library")
Austin Schuh972e47e2018-12-20 17:20:58 -08002
Brian Silverman258b9172015-09-19 14:32:57 -04003filegroup(
Brian Silverman6470f442018-08-05 12:08:16 -07004 name = "prime_binaries",
5 srcs = [
Austin Schuh944df342019-12-21 17:08:55 -08006 "//aos:aos_dump",
Tyler Chatowe6f5bef2020-10-31 14:22:04 -07007 "//aos:aos_dump_autocomplete.sh",
Austin Schuh91d8d062020-11-02 17:11:13 -08008 "//aos/starter",
Brian Silverman6470f442018-08-05 12:08:16 -07009 ],
10 visibility = ["//visibility:public"],
Austin Schuh1eceeb92015-11-08 21:16:06 -080011)
Austin Schuhc80dd152016-02-29 01:47:44 -080012
13filegroup(
Brian Silverman6470f442018-08-05 12:08:16 -070014 name = "prime_start_binaries",
15 srcs = [
James Kuszmaul38735e82019-12-07 16:42:06 -080016 "//aos/events/logging:logger_main",
Brian Silverman6470f442018-08-05 12:08:16 -070017 ],
18 visibility = ["//visibility:public"],
Austin Schuhc80dd152016-02-29 01:47:44 -080019)
Brian Silverman6470f442018-08-05 12:08:16 -070020
Austin Schuhc80dd152016-02-29 01:47:44 -080021filegroup(
Brian Silverman6470f442018-08-05 12:08:16 -070022 name = "prime_binaries_stripped",
23 srcs = [
24 # starter is hard coded to look for a non-stripped core...
Austin Schuh944df342019-12-21 17:08:55 -080025 "//aos:aos_dump.stripped",
John Park398c74a2018-10-20 21:17:39 -070026 "//aos/starter",
Tyler Chatowe6f5bef2020-10-31 14:22:04 -070027 "//aos:aos_dump_autocomplete.sh",
Brian Silverman6470f442018-08-05 12:08:16 -070028 ],
29 visibility = ["//visibility:public"],
30)
31
32filegroup(
33 name = "prime_start_binaries_stripped",
34 srcs = [
James Kuszmaul38735e82019-12-07 16:42:06 -080035 "//aos/events/logging:logger_main.stripped",
Brian Silverman6470f442018-08-05 12:08:16 -070036 ],
37 visibility = ["//visibility:public"],
Austin Schuhc80dd152016-02-29 01:47:44 -080038)
Sabina Davis2ed5ea22017-09-26 22:27:42 -070039
40cc_library(
John Park33858a32018-09-28 23:05:48 -070041 name = "math",
42 hdrs = [
43 "commonmath.h",
44 ],
John Park33858a32018-09-28 23:05:48 -070045 visibility = ["//visibility:public"],
46)
47
48cc_library(
John Park33858a32018-09-28 23:05:48 -070049 name = "byteorder",
50 hdrs = [
51 "byteorder.h",
52 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080053 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070054 visibility = ["//visibility:public"],
55)
56
Brian Silverman6470f442018-08-05 12:08:16 -070057py_library(
58 name = "python_init",
59 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -080060 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070061 visibility = ["//visibility:public"],
Sabina Davis2ed5ea22017-09-26 22:27:42 -070062)
John Park33858a32018-09-28 23:05:48 -070063
64cc_library(
Austin Schuh972e47e2018-12-20 17:20:58 -080065 name = "macros",
66 hdrs = [
John Park33858a32018-09-28 23:05:48 -070067 "macros.h",
John Park33858a32018-09-28 23:05:48 -070068 ],
69 visibility = ["//visibility:public"],
70)
71
72cc_library(
73 name = "gtest_prod",
74 hdrs = [
75 "gtest_prod.h",
76 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080077 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070078 visibility = ["//visibility:public"],
79)
80
81cc_library(
82 name = "network_port",
83 hdrs = [
84 "network_port.h",
85 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080086 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070087 visibility = ["//visibility:public"],
88)
89
John Park33858a32018-09-28 23:05:48 -070090cc_library(
91 name = "unique_malloc_ptr",
92 hdrs = [
93 "unique_malloc_ptr.h",
94 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080095 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070096 visibility = ["//visibility:public"],
97)
98
99cc_library(
100 name = "condition",
101 srcs = [
102 "condition.cc",
103 ],
104 hdrs = [
105 "condition.h",
106 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800107 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700108 visibility = ["//visibility:public"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800109 deps = [
110 "//aos/ipc_lib:aos_sync",
Austin Schuh972e47e2018-12-20 17:20:58 -0800111 "//aos/mutex",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700112 "@com_github_google_glog//:glog",
Austin Schuh972e47e2018-12-20 17:20:58 -0800113 ],
John Park33858a32018-09-28 23:05:48 -0700114)
115
116cc_test(
117 name = "condition_test",
118 srcs = [
119 "condition_test.cc",
120 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800121 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700122 deps = [
123 ":condition",
124 "//aos:die",
John Park398c74a2018-10-20 21:17:39 -0700125 "//aos/ipc_lib:aos_sync",
126 "//aos/ipc_lib:core_lib",
Austin Schuh972e47e2018-12-20 17:20:58 -0800127 "//aos/logging",
128 "//aos/mutex",
John Park33858a32018-09-28 23:05:48 -0700129 "//aos/testing:googletest",
130 "//aos/testing:prevent_exit",
131 "//aos/testing:test_shm",
Austin Schuh972e47e2018-12-20 17:20:58 -0800132 "//aos/time",
John Park33858a32018-09-28 23:05:48 -0700133 ],
134)
135
136cc_library(
137 name = "die",
138 srcs = [
139 "die.cc",
140 ],
141 hdrs = [
142 "die.h",
143 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800144 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800145 visibility = ["//visibility:public"],
John Park33858a32018-09-28 23:05:48 -0700146 deps = [
147 "//aos:macros",
148 "//aos/libc:aos_strerror",
149 ],
John Park33858a32018-09-28 23:05:48 -0700150)
151
John Park33858a32018-09-28 23:05:48 -0700152cc_test(
153 name = "die_test",
154 srcs = [
155 "die_test.cc",
156 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800157 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700158 deps = [
159 ":die",
160 "//aos/testing:googletest",
161 ],
162)
163
164cc_library(
165 name = "event",
166 srcs = [
167 "event.cc",
168 ],
169 hdrs = [
170 "event.h",
171 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800172 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700173 visibility = ["//visibility:public"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800174 deps = [
175 "//aos/ipc_lib:aos_sync",
Austin Schuh972e47e2018-12-20 17:20:58 -0800176 "//aos/time",
Austin Schuh91d8d062020-11-02 17:11:13 -0800177 "//aos/type_traits",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700178 "@com_github_google_glog//:glog",
Austin Schuh972e47e2018-12-20 17:20:58 -0800179 ],
John Park33858a32018-09-28 23:05:48 -0700180)
181
182cc_test(
183 name = "event_test",
184 srcs = [
185 "event_test.cc",
Austin Schuh972e47e2018-12-20 17:20:58 -0800186 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800187 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700188 deps = [
189 ":event",
John Park33858a32018-09-28 23:05:48 -0700190 "//aos/testing:googletest",
191 "//aos/testing:test_logging",
Austin Schuh972e47e2018-12-20 17:20:58 -0800192 "//aos/time",
John Park33858a32018-09-28 23:05:48 -0700193 ],
194)
John Park398c74a2018-10-20 21:17:39 -0700195
196cc_binary(
197 name = "dump_rtprio",
198 srcs = [
199 "dump_rtprio.cc",
200 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800201 target_compatible_with = ["@platforms//os:linux"],
John Park398c74a2018-10-20 21:17:39 -0700202 deps = [
John Park398c74a2018-10-20 21:17:39 -0700203 "//aos/logging",
204 "//aos/logging:implementations",
Austin Schuh972e47e2018-12-20 17:20:58 -0800205 "//aos/time",
John Park398c74a2018-10-20 21:17:39 -0700206 ],
207)
208
209cc_library(
John Park398c74a2018-10-20 21:17:39 -0700210 name = "complex_thread_local",
211 srcs = [
212 "complex_thread_local.cc",
213 ],
214 hdrs = [
215 "complex_thread_local.h",
216 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800217 target_compatible_with = ["@platforms//os:linux"],
John Park398c74a2018-10-20 21:17:39 -0700218 visibility = ["//visibility:public"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800219 deps = [
220 "//aos:die",
John Park65170ac2020-01-08 20:15:24 -0800221 "@com_google_absl//absl/base",
Austin Schuh972e47e2018-12-20 17:20:58 -0800222 ],
John Park398c74a2018-10-20 21:17:39 -0700223)
224
225cc_test(
226 name = "complex_thread_local_test",
227 srcs = [
228 "complex_thread_local_test.cc",
229 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800230 target_compatible_with = ["@platforms//os:linux"],
John Park398c74a2018-10-20 21:17:39 -0700231 deps = [
232 ":complex_thread_local",
233 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -0700234 "//aos/testing:googletest",
235 ],
236)
237
238cc_library(
239 name = "init",
240 srcs = [
241 "init.cc",
242 ],
243 hdrs = [
244 "init.h",
245 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800246 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800247 visibility = ["//visibility:public"],
John Park398c74a2018-10-20 21:17:39 -0700248 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700249 ":realtime",
John Park398c74a2018-10-20 21:17:39 -0700250 "//aos:die",
Austin Schuh972e47e2018-12-20 17:20:58 -0800251 "//aos/logging:implementations",
John Park398c74a2018-10-20 21:17:39 -0700252 ],
John Park398c74a2018-10-20 21:17:39 -0700253)
254
Alex Perrycb7da4b2019-08-28 19:35:56 -0700255cc_library(
256 name = "realtime",
257 srcs = [
258 "realtime.cc",
259 ],
260 hdrs = [
261 "realtime.h",
262 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800263 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700264 visibility = ["//visibility:public"],
265 deps = [
Austin Schuhcc6070c2020-10-10 20:25:56 -0700266 ":thread_local",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700267 "@com_github_google_glog//:glog",
268 ],
269)
270
Austin Schuhcb108412019-10-13 16:09:54 -0700271flatbuffer_cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -0700272 name = "configuration_fbs",
Austin Schuhcb108412019-10-13 16:09:54 -0700273 srcs = ["configuration.fbs"],
James Kuszmaulabb77132020-08-01 19:56:16 -0700274 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800275 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700276 visibility = ["//visibility:public"],
Austin Schuhcb108412019-10-13 16:09:54 -0700277)
278
Alex Perryd5e13572020-02-22 15:15:08 -0800279flatbuffer_ts_library(
280 name = "configuration_ts_fbs",
281 srcs = ["configuration.fbs"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800282 target_compatible_with = ["@platforms//os:linux"],
Alex Perryd5e13572020-02-22 15:15:08 -0800283 visibility = ["//visibility:public"],
284)
285
Brian Silverman28760272020-02-02 13:21:51 -0800286flatbuffer_py_library(
James Kuszmaul7daef362019-12-31 18:28:17 -0800287 name = "configuration_fbs_python",
288 srcs = ["configuration.fbs"],
289 namespace = "aos",
290 tables = [
291 "Configuration",
292 "Channel",
James Kuszmaul84ff3e52020-01-03 19:48:53 -0800293 "Connection",
James Kuszmaul7daef362019-12-31 18:28:17 -0800294 "Map",
295 "Node",
296 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800297 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul7daef362019-12-31 18:28:17 -0800298 visibility = ["//visibility:public"],
299)
300
John Park398c74a2018-10-20 21:17:39 -0700301cc_library(
302 name = "configuration",
303 srcs = [
304 "configuration.cc",
305 ],
306 hdrs = [
307 "configuration.h",
308 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800309 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800310 visibility = ["//visibility:public"],
John Park398c74a2018-10-20 21:17:39 -0700311 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700312 ":configuration_fbs",
Austin Schuhcb108412019-10-13 16:09:54 -0700313 ":flatbuffer_merge",
314 ":flatbuffers",
315 ":json_to_flatbuffer",
John Park398c74a2018-10-20 21:17:39 -0700316 "//aos:unique_malloc_ptr",
Austin Schuh217a9782019-12-21 23:02:50 -0800317 "//aos/network:team_number",
Austin Schuhcb108412019-10-13 16:09:54 -0700318 "//aos/util:file",
319 "@com_github_google_glog//:glog",
320 "@com_google_absl//absl/container:btree",
321 "@com_google_absl//absl/strings",
John Park398c74a2018-10-20 21:17:39 -0700322 ],
John Park398c74a2018-10-20 21:17:39 -0700323)
324
Brian Silvermanf819b442019-01-20 16:51:04 -0800325cc_library(
326 name = "make_unique",
327 hdrs = [
328 "make_unique.h",
329 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800330 target_compatible_with = ["@platforms//os:linux"],
Brian Silvermanf819b442019-01-20 16:51:04 -0800331 visibility = ["//visibility:public"],
332)
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700333
James Kuszmaulabb77132020-08-01 19:56:16 -0700334flatbuffer_ts_library(
335 name = "json_to_flatbuffer_flatbuffer_ts",
336 srcs = ["json_to_flatbuffer.fbs"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800337 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaulabb77132020-08-01 19:56:16 -0700338 visibility = ["//aos:__subpackages__"],
339)
340
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700341flatbuffer_cc_library(
342 name = "json_to_flatbuffer_flatbuffer",
343 srcs = ["json_to_flatbuffer.fbs"],
Tyler Chatow5e369a42019-11-23 11:57:31 -0800344 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800345 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaulabb77132020-08-01 19:56:16 -0700346 visibility = ["//aos:__subpackages__"],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700347)
348
349cc_library(
Austin Schuh43c6a352019-09-30 22:22:10 -0700350 name = "flatbuffer_utils",
351 srcs = ["flatbuffer_utils.cc"],
352 hdrs = ["flatbuffer_utils.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800353 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh43c6a352019-09-30 22:22:10 -0700354 deps = [
355 "@com_github_google_flatbuffers//:flatbuffers",
356 ],
357)
358
359cc_library(
Austin Schuhd7e252d2019-10-06 13:51:02 -0700360 name = "json_tokenizer",
361 srcs = ["json_tokenizer.cc"],
362 hdrs = ["json_tokenizer.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800363 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhd7e252d2019-10-06 13:51:02 -0700364 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700365 "@com_github_google_glog//:glog",
Austin Schuhd7e252d2019-10-06 13:51:02 -0700366 "@com_google_absl//absl/strings",
367 ],
368)
369
370cc_library(
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700371 name = "json_to_flatbuffer",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800372 srcs = [
373 "flatbuffer_introspection.cc",
374 "json_to_flatbuffer.cc",
375 ],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700376 hdrs = ["json_to_flatbuffer.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800377 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700378 visibility = ["//visibility:public"],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700379 deps = [
Tyler Chatowfcf16f42020-07-26 12:41:36 -0700380 ":fast_string_builder",
Austin Schuh43c6a352019-09-30 22:22:10 -0700381 ":flatbuffer_utils",
Austin Schuhe93d8642019-10-13 15:27:07 -0700382 ":flatbuffers",
Austin Schuhd7e252d2019-10-06 13:51:02 -0700383 ":json_tokenizer",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700384 "@com_github_google_flatbuffers//:flatbuffers",
Austin Schuhe93d8642019-10-13 15:27:07 -0700385 "@com_github_google_glog//:glog",
Austin Schuhd339a9b2019-10-05 21:33:32 -0700386 "@com_google_absl//absl/strings",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700387 ],
388)
389
390cc_test(
391 name = "json_to_flatbuffer_test",
392 srcs = [
393 "json_to_flatbuffer_test.cc",
394 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800395 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700396 deps = [
397 ":json_to_flatbuffer",
398 ":json_to_flatbuffer_flatbuffer",
399 "//aos/testing:googletest",
400 ],
401)
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700402
Tyler Chatow5e369a42019-11-23 11:57:31 -0800403cc_test(
404 name = "flatbuffer_introspection_test",
405 srcs = [
406 "flatbuffer_introspection_test.cc",
407 ],
408 data = [
409 ":json_to_flatbuffer_flatbuffer_reflection_out",
410 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800411 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow5e369a42019-11-23 11:57:31 -0800412 deps = [
413 ":json_to_flatbuffer",
414 ":json_to_flatbuffer_flatbuffer",
415 "//aos/testing:googletest",
416 "//aos/util:file",
417 "@com_github_google_flatbuffers//:flatbuffers",
418 ],
419)
420
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700421cc_library(
422 name = "flatbuffer_merge",
423 srcs = ["flatbuffer_merge.cc"],
424 hdrs = ["flatbuffer_merge.h"],
425 copts = ["-Wno-cast-align"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800426 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700427 visibility = ["//visibility:public"],
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700428 deps = [
429 ":flatbuffer_utils",
Austin Schuhe93d8642019-10-13 15:27:07 -0700430 ":flatbuffers",
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700431 "@com_github_google_flatbuffers//:flatbuffers",
432 ],
433)
434
435cc_test(
436 name = "flatbuffer_merge_test",
437 srcs = [
438 "flatbuffer_merge_test.cc",
439 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800440 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700441 deps = [
442 ":flatbuffer_merge",
443 ":json_to_flatbuffer",
444 ":json_to_flatbuffer_flatbuffer",
445 "//aos/testing:googletest",
446 ],
447)
Austin Schuhe93d8642019-10-13 15:27:07 -0700448
449cc_library(
450 name = "flatbuffers",
Austin Schuh40485ed2019-10-26 21:51:44 -0700451 srcs = [
452 "flatbuffers.cc",
453 ],
Austin Schuhe93d8642019-10-13 15:27:07 -0700454 hdrs = [
455 "flatbuffers.h",
456 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800457 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh40485ed2019-10-26 21:51:44 -0700458 visibility = ["//visibility:public"],
Austin Schuhe93d8642019-10-13 15:27:07 -0700459 deps = [
James Kuszmaulad8a8082020-02-14 21:21:58 -0800460 "//aos:macros",
Brian Silverman354697a2020-09-22 21:06:32 -0700461 "//aos/containers:resizeable_buffer",
Austin Schuhe93d8642019-10-13 15:27:07 -0700462 "@com_github_google_flatbuffers//:flatbuffers",
Austin Schuh40485ed2019-10-26 21:51:44 -0700463 "@com_github_google_glog//:glog",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700464 "@com_google_absl//absl/strings",
Austin Schuh6f3babe2020-01-26 20:34:50 -0800465 "@com_google_absl//absl/types:span",
Austin Schuhe93d8642019-10-13 15:27:07 -0700466 ],
467)
Austin Schuhcb108412019-10-13 16:09:54 -0700468
469cc_test(
470 name = "configuration_test",
471 srcs = [
472 "configuration_test.cc",
473 ],
474 data = [
Austin Schuh14d7d3d2020-09-10 18:14:36 -0700475 "//aos/events:pingpong_config",
Austin Schuh6b9c4152019-11-29 12:45:24 -0800476 "//aos/events:pong.bfbs",
James Kuszmaulc0c08da2020-05-10 18:56:07 -0700477 "//aos/testdata:test_configs",
Austin Schuhcb108412019-10-13 16:09:54 -0700478 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800479 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhcb108412019-10-13 16:09:54 -0700480 deps = [
481 ":configuration",
482 "//aos/testing:googletest",
483 "//aos/testing:test_logging",
484 ],
485)
Alex Perrycb7da4b2019-08-28 19:35:56 -0700486
487cc_binary(
488 name = "config_flattener",
489 srcs = [
490 "config_flattener.cc",
491 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800492 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700493 visibility = ["//visibility:public"],
494 deps = [
495 ":configuration",
496 ":init",
497 "//aos/util:file",
498 "@com_github_google_glog//:glog",
499 ],
500)
Tyler Chatow5e369a42019-11-23 11:57:31 -0800501
502cc_binary(
Austin Schuh944df342019-12-21 17:08:55 -0800503 name = "aos_dump",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800504 srcs = [
Austin Schuh944df342019-12-21 17:08:55 -0800505 "aos_dump.cc",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800506 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800507 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow5e369a42019-11-23 11:57:31 -0800508 visibility = ["//visibility:public"],
509 deps = [
510 ":configuration",
511 ":json_to_flatbuffer",
512 "//aos:init",
513 "//aos/events:shm_event_loop",
514 "@com_github_google_glog//:glog",
515 ],
516)
Brian Silverman79ec7fc2020-06-08 20:11:22 -0500517
Jim Ostrowski17ce54d2020-10-24 17:24:01 -0700518cc_binary(
519 name = "aos_graph_nodes",
520 srcs = [
521 "aos_graph_nodes.cc",
522 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800523 target_compatible_with = ["@platforms//os:linux"],
Jim Ostrowski17ce54d2020-10-24 17:24:01 -0700524 visibility = ["//visibility:public"],
525 deps = [
526 ":configuration",
527 ":json_to_flatbuffer",
528 "//aos:init",
529 "//aos/events:shm_event_loop",
530 "@com_github_google_glog//:glog",
531 ],
532)
533
Brian Silverman79ec7fc2020-06-08 20:11:22 -0500534cc_library(
535 name = "ftrace",
536 srcs = [
537 "ftrace.cc",
538 ],
539 hdrs = [
540 "ftrace.h",
541 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800542 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman79ec7fc2020-06-08 20:11:22 -0500543 visibility = ["//visibility:public"],
544 deps = [
545 "@com_github_google_glog//:glog",
546 ],
547)
Tyler Chatowfcf16f42020-07-26 12:41:36 -0700548
549cc_library(
550 name = "fast_string_builder",
551 srcs = [
552 "fast_string_builder.cc",
553 ],
554 hdrs = [
555 "fast_string_builder.h",
556 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800557 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatowfcf16f42020-07-26 12:41:36 -0700558 deps = [
559 "@com_github_google_glog//:glog",
560 "@com_google_absl//absl/strings",
561 "@com_google_absl//absl/strings:str_format",
562 ],
563)
Brian Silvermanb47f5552020-10-01 15:08:14 -0700564
565cc_library(
566 name = "thread_local",
567 hdrs = [
568 "thread_local.h",
569 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800570 target_compatible_with = ["@platforms//os:linux"],
Brian Silvermanb47f5552020-10-01 15:08:14 -0700571 visibility = ["//visibility:public"],
572)
Austin Schuhcc6070c2020-10-10 20:25:56 -0700573
574cc_test(
575 name = "realtime_test",
576 srcs = [
577 "realtime_test.cc",
578 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800579 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhcc6070c2020-10-10 20:25:56 -0700580 visibility = ["//visibility:public"],
581 deps = [
582 ":realtime",
583 "//aos/testing:googletest",
584 ],
585)
Austin Schuh977a5ed2020-12-02 23:20:04 -0800586
587cc_test(
588 name = "flatbuffers_test",
589 srcs = [
590 "flatbuffers_test.cc",
591 ],
592 deps = [
593 ":flatbuffers",
594 ":json_to_flatbuffer",
595 ":json_to_flatbuffer_flatbuffer",
596 "//aos/testing:googletest",
597 ],
598)