blob: 0c94f35afbe6f96036c674c59d87db1863d7779b [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
Austin Schuh00e302a2020-12-21 11:53:30 -08003exports_files(["aos_dump_autocomplete.sh"])
4
Brian Silverman258b9172015-09-19 14:32:57 -04005filegroup(
Brian Silverman6470f442018-08-05 12:08:16 -07006 name = "prime_binaries",
7 srcs = [
Austin Schuh944df342019-12-21 17:08:55 -08008 "//aos:aos_dump",
Tyler Chatowe6f5bef2020-10-31 14:22:04 -07009 "//aos:aos_dump_autocomplete.sh",
Brian Silvermanea2c95f2021-02-10 18:10:26 -080010 "//aos:aos_send",
Austin Schuh91d8d062020-11-02 17:11:13 -080011 "//aos/starter",
Brian Silverman6470f442018-08-05 12:08:16 -070012 ],
13 visibility = ["//visibility:public"],
Austin Schuh1eceeb92015-11-08 21:16:06 -080014)
Austin Schuhc80dd152016-02-29 01:47:44 -080015
16filegroup(
Brian Silverman6470f442018-08-05 12:08:16 -070017 name = "prime_start_binaries",
18 srcs = [
James Kuszmaul38735e82019-12-07 16:42:06 -080019 "//aos/events/logging:logger_main",
Brian Silverman6470f442018-08-05 12:08:16 -070020 ],
21 visibility = ["//visibility:public"],
Austin Schuhc80dd152016-02-29 01:47:44 -080022)
Brian Silverman6470f442018-08-05 12:08:16 -070023
Austin Schuhc80dd152016-02-29 01:47:44 -080024filegroup(
Brian Silverman6470f442018-08-05 12:08:16 -070025 name = "prime_binaries_stripped",
26 srcs = [
Austin Schuh944df342019-12-21 17:08:55 -080027 "//aos:aos_dump.stripped",
Tyler Chatowe6f5bef2020-10-31 14:22:04 -070028 "//aos:aos_dump_autocomplete.sh",
Brian Silvermanea2c95f2021-02-10 18:10:26 -080029 "//aos:aos_send.stripped",
30 "//aos/starter",
Brian Silverman6470f442018-08-05 12:08:16 -070031 ],
32 visibility = ["//visibility:public"],
33)
34
35filegroup(
36 name = "prime_start_binaries_stripped",
37 srcs = [
James Kuszmaul38735e82019-12-07 16:42:06 -080038 "//aos/events/logging:logger_main.stripped",
Brian Silverman6470f442018-08-05 12:08:16 -070039 ],
40 visibility = ["//visibility:public"],
Austin Schuhc80dd152016-02-29 01:47:44 -080041)
Sabina Davis2ed5ea22017-09-26 22:27:42 -070042
43cc_library(
John Park33858a32018-09-28 23:05:48 -070044 name = "math",
45 hdrs = [
46 "commonmath.h",
47 ],
John Park33858a32018-09-28 23:05:48 -070048 visibility = ["//visibility:public"],
49)
50
Brian Silverman6470f442018-08-05 12:08:16 -070051py_library(
52 name = "python_init",
53 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -080054 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070055 visibility = ["//visibility:public"],
Sabina Davis2ed5ea22017-09-26 22:27:42 -070056)
John Park33858a32018-09-28 23:05:48 -070057
58cc_library(
Austin Schuh972e47e2018-12-20 17:20:58 -080059 name = "macros",
60 hdrs = [
John Park33858a32018-09-28 23:05:48 -070061 "macros.h",
John Park33858a32018-09-28 23:05:48 -070062 ],
63 visibility = ["//visibility:public"],
64)
65
66cc_library(
67 name = "gtest_prod",
68 hdrs = [
69 "gtest_prod.h",
70 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080071 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070072 visibility = ["//visibility:public"],
73)
74
75cc_library(
John Park33858a32018-09-28 23:05:48 -070076 name = "unique_malloc_ptr",
77 hdrs = [
78 "unique_malloc_ptr.h",
79 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080080 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070081 visibility = ["//visibility:public"],
82)
83
84cc_library(
85 name = "condition",
86 srcs = [
87 "condition.cc",
88 ],
89 hdrs = [
90 "condition.h",
91 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080092 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -070093 visibility = ["//visibility:public"],
Austin Schuh972e47e2018-12-20 17:20:58 -080094 deps = [
95 "//aos/ipc_lib:aos_sync",
Austin Schuh972e47e2018-12-20 17:20:58 -080096 "//aos/mutex",
Alex Perrycb7da4b2019-08-28 19:35:56 -070097 "@com_github_google_glog//:glog",
Austin Schuh972e47e2018-12-20 17:20:58 -080098 ],
John Park33858a32018-09-28 23:05:48 -070099)
100
101cc_test(
102 name = "condition_test",
103 srcs = [
104 "condition_test.cc",
105 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800106 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700107 deps = [
108 ":condition",
109 "//aos:die",
John Park398c74a2018-10-20 21:17:39 -0700110 "//aos/ipc_lib:aos_sync",
111 "//aos/ipc_lib:core_lib",
Austin Schuh972e47e2018-12-20 17:20:58 -0800112 "//aos/logging",
113 "//aos/mutex",
John Park33858a32018-09-28 23:05:48 -0700114 "//aos/testing:googletest",
115 "//aos/testing:prevent_exit",
116 "//aos/testing:test_shm",
Austin Schuh972e47e2018-12-20 17:20:58 -0800117 "//aos/time",
John Park33858a32018-09-28 23:05:48 -0700118 ],
119)
120
121cc_library(
122 name = "die",
123 srcs = [
124 "die.cc",
125 ],
126 hdrs = [
127 "die.h",
128 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800129 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800130 visibility = ["//visibility:public"],
John Park33858a32018-09-28 23:05:48 -0700131 deps = [
132 "//aos:macros",
133 "//aos/libc:aos_strerror",
134 ],
John Park33858a32018-09-28 23:05:48 -0700135)
136
John Park33858a32018-09-28 23:05:48 -0700137cc_test(
138 name = "die_test",
139 srcs = [
140 "die_test.cc",
141 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800142 target_compatible_with = ["@platforms//os:linux"],
John Park33858a32018-09-28 23:05:48 -0700143 deps = [
144 ":die",
145 "//aos/testing:googletest",
146 ],
147)
148
John Park398c74a2018-10-20 21:17:39 -0700149cc_binary(
150 name = "dump_rtprio",
151 srcs = [
152 "dump_rtprio.cc",
153 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800154 target_compatible_with = ["@platforms//os:linux"],
John Park398c74a2018-10-20 21:17:39 -0700155 deps = [
John Park398c74a2018-10-20 21:17:39 -0700156 "//aos/logging",
157 "//aos/logging:implementations",
Austin Schuh972e47e2018-12-20 17:20:58 -0800158 "//aos/time",
John Park398c74a2018-10-20 21:17:39 -0700159 ],
160)
161
162cc_library(
John Park398c74a2018-10-20 21:17:39 -0700163 name = "complex_thread_local",
164 srcs = [
165 "complex_thread_local.cc",
166 ],
167 hdrs = [
168 "complex_thread_local.h",
169 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800170 target_compatible_with = ["@platforms//os:linux"],
John Park398c74a2018-10-20 21:17:39 -0700171 visibility = ["//visibility:public"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800172 deps = [
173 "//aos:die",
John Park65170ac2020-01-08 20:15:24 -0800174 "@com_google_absl//absl/base",
Austin Schuh972e47e2018-12-20 17:20:58 -0800175 ],
John Park398c74a2018-10-20 21:17:39 -0700176)
177
178cc_test(
179 name = "complex_thread_local_test",
180 srcs = [
181 "complex_thread_local_test.cc",
182 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800183 target_compatible_with = ["@platforms//os:linux"],
John Park398c74a2018-10-20 21:17:39 -0700184 deps = [
185 ":complex_thread_local",
186 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -0700187 "//aos/testing:googletest",
188 ],
189)
190
191cc_library(
192 name = "init",
193 srcs = [
194 "init.cc",
195 ],
196 hdrs = [
197 "init.h",
198 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800199 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800200 visibility = ["//visibility:public"],
John Park398c74a2018-10-20 21:17:39 -0700201 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700202 ":realtime",
John Park398c74a2018-10-20 21:17:39 -0700203 "//aos:die",
Austin Schuh972e47e2018-12-20 17:20:58 -0800204 "//aos/logging:implementations",
John Park398c74a2018-10-20 21:17:39 -0700205 ],
John Park398c74a2018-10-20 21:17:39 -0700206)
207
Alex Perrycb7da4b2019-08-28 19:35:56 -0700208cc_library(
209 name = "realtime",
210 srcs = [
211 "realtime.cc",
212 ],
213 hdrs = [
214 "realtime.h",
215 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800216 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700217 visibility = ["//visibility:public"],
218 deps = [
Austin Schuhcc6070c2020-10-10 20:25:56 -0700219 ":thread_local",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700220 "@com_github_google_glog//:glog",
221 ],
222)
223
Austin Schuhcb108412019-10-13 16:09:54 -0700224flatbuffer_cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -0700225 name = "configuration_fbs",
Austin Schuhcb108412019-10-13 16:09:54 -0700226 srcs = ["configuration.fbs"],
James Kuszmaulabb77132020-08-01 19:56:16 -0700227 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800228 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700229 visibility = ["//visibility:public"],
Austin Schuhcb108412019-10-13 16:09:54 -0700230)
231
Alex Perryd5e13572020-02-22 15:15:08 -0800232flatbuffer_ts_library(
233 name = "configuration_ts_fbs",
234 srcs = ["configuration.fbs"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800235 target_compatible_with = ["@platforms//os:linux"],
Alex Perryd5e13572020-02-22 15:15:08 -0800236 visibility = ["//visibility:public"],
237)
238
Brian Silverman28760272020-02-02 13:21:51 -0800239flatbuffer_py_library(
James Kuszmaul7daef362019-12-31 18:28:17 -0800240 name = "configuration_fbs_python",
241 srcs = ["configuration.fbs"],
242 namespace = "aos",
243 tables = [
244 "Configuration",
245 "Channel",
James Kuszmaul84ff3e52020-01-03 19:48:53 -0800246 "Connection",
James Kuszmaul7daef362019-12-31 18:28:17 -0800247 "Map",
248 "Node",
249 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800250 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul7daef362019-12-31 18:28:17 -0800251 visibility = ["//visibility:public"],
252)
253
John Park398c74a2018-10-20 21:17:39 -0700254cc_library(
255 name = "configuration",
256 srcs = [
257 "configuration.cc",
258 ],
259 hdrs = [
260 "configuration.h",
261 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800262 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh972e47e2018-12-20 17:20:58 -0800263 visibility = ["//visibility:public"],
John Park398c74a2018-10-20 21:17:39 -0700264 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700265 ":configuration_fbs",
Austin Schuhcb108412019-10-13 16:09:54 -0700266 ":flatbuffer_merge",
267 ":flatbuffers",
268 ":json_to_flatbuffer",
John Park398c74a2018-10-20 21:17:39 -0700269 "//aos:unique_malloc_ptr",
Austin Schuh217a9782019-12-21 23:02:50 -0800270 "//aos/network:team_number",
Austin Schuhcb108412019-10-13 16:09:54 -0700271 "//aos/util:file",
272 "@com_github_google_glog//:glog",
273 "@com_google_absl//absl/container:btree",
274 "@com_google_absl//absl/strings",
John Park398c74a2018-10-20 21:17:39 -0700275 ],
John Park398c74a2018-10-20 21:17:39 -0700276)
277
Brian Silvermanf819b442019-01-20 16:51:04 -0800278cc_library(
279 name = "make_unique",
280 hdrs = [
281 "make_unique.h",
282 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800283 target_compatible_with = ["@platforms//os:linux"],
Brian Silvermanf819b442019-01-20 16:51:04 -0800284 visibility = ["//visibility:public"],
285)
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700286
James Kuszmaulabb77132020-08-01 19:56:16 -0700287flatbuffer_ts_library(
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800288 name = "json_to_flatbuffer_fbs_ts",
James Kuszmaulabb77132020-08-01 19:56:16 -0700289 srcs = ["json_to_flatbuffer.fbs"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800290 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaulabb77132020-08-01 19:56:16 -0700291 visibility = ["//aos:__subpackages__"],
292)
293
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700294flatbuffer_cc_library(
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800295 name = "json_to_flatbuffer_fbs",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700296 srcs = ["json_to_flatbuffer.fbs"],
Tyler Chatow5e369a42019-11-23 11:57:31 -0800297 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800298 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaulabb77132020-08-01 19:56:16 -0700299 visibility = ["//aos:__subpackages__"],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700300)
301
302cc_library(
Austin Schuh43c6a352019-09-30 22:22:10 -0700303 name = "flatbuffer_utils",
304 srcs = ["flatbuffer_utils.cc"],
305 hdrs = ["flatbuffer_utils.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800306 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh43c6a352019-09-30 22:22:10 -0700307 deps = [
308 "@com_github_google_flatbuffers//:flatbuffers",
Brian Silvermancf4fb662021-02-10 17:54:53 -0800309 "@com_github_google_glog//:glog",
Austin Schuh43c6a352019-09-30 22:22:10 -0700310 ],
311)
312
313cc_library(
Austin Schuhd7e252d2019-10-06 13:51:02 -0700314 name = "json_tokenizer",
315 srcs = ["json_tokenizer.cc"],
316 hdrs = ["json_tokenizer.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800317 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhd7e252d2019-10-06 13:51:02 -0700318 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700319 "@com_github_google_glog//:glog",
Austin Schuhd7e252d2019-10-06 13:51:02 -0700320 "@com_google_absl//absl/strings",
321 ],
322)
323
324cc_library(
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700325 name = "json_to_flatbuffer",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800326 srcs = [
327 "flatbuffer_introspection.cc",
328 "json_to_flatbuffer.cc",
329 ],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700330 hdrs = ["json_to_flatbuffer.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800331 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700332 visibility = ["//visibility:public"],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700333 deps = [
Tyler Chatowfcf16f42020-07-26 12:41:36 -0700334 ":fast_string_builder",
Austin Schuh43c6a352019-09-30 22:22:10 -0700335 ":flatbuffer_utils",
Austin Schuhe93d8642019-10-13 15:27:07 -0700336 ":flatbuffers",
Austin Schuhd7e252d2019-10-06 13:51:02 -0700337 ":json_tokenizer",
Austin Schuhbba10282021-03-20 22:03:28 -0700338 "//aos/util:file",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700339 "@com_github_google_flatbuffers//:flatbuffers",
Austin Schuhe93d8642019-10-13 15:27:07 -0700340 "@com_github_google_glog//:glog",
Austin Schuhd339a9b2019-10-05 21:33:32 -0700341 "@com_google_absl//absl/strings",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700342 ],
343)
344
345cc_test(
346 name = "json_to_flatbuffer_test",
347 srcs = [
348 "json_to_flatbuffer_test.cc",
349 ],
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800350 data = [
351 ":json_to_flatbuffer_fbs_reflection_out",
352 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800353 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700354 deps = [
355 ":json_to_flatbuffer",
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800356 ":json_to_flatbuffer_fbs",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700357 "//aos/testing:googletest",
Austin Schuh373f1762021-06-02 21:07:09 -0700358 "//aos/testing:path",
Austin Schuh3e95e5d2019-09-20 00:08:54 -0700359 ],
360)
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700361
Tyler Chatow5e369a42019-11-23 11:57:31 -0800362cc_test(
363 name = "flatbuffer_introspection_test",
364 srcs = [
365 "flatbuffer_introspection_test.cc",
366 ],
367 data = [
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800368 ":json_to_flatbuffer_fbs_reflection_out",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800369 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800370 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow5e369a42019-11-23 11:57:31 -0800371 deps = [
372 ":json_to_flatbuffer",
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800373 ":json_to_flatbuffer_fbs",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800374 "//aos/testing:googletest",
Austin Schuh373f1762021-06-02 21:07:09 -0700375 "//aos/testing:path",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800376 "//aos/util:file",
377 "@com_github_google_flatbuffers//:flatbuffers",
378 ],
379)
380
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700381cc_library(
382 name = "flatbuffer_merge",
383 srcs = ["flatbuffer_merge.cc"],
384 hdrs = ["flatbuffer_merge.h"],
385 copts = ["-Wno-cast-align"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800386 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700387 visibility = ["//visibility:public"],
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700388 deps = [
389 ":flatbuffer_utils",
Austin Schuhe93d8642019-10-13 15:27:07 -0700390 ":flatbuffers",
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700391 "@com_github_google_flatbuffers//:flatbuffers",
392 ],
393)
394
395cc_test(
396 name = "flatbuffer_merge_test",
397 srcs = [
398 "flatbuffer_merge_test.cc",
399 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800400 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700401 deps = [
402 ":flatbuffer_merge",
403 ":json_to_flatbuffer",
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800404 ":json_to_flatbuffer_fbs",
Austin Schuh09d7ffa2019-10-03 23:43:34 -0700405 "//aos/testing:googletest",
406 ],
407)
Austin Schuhe93d8642019-10-13 15:27:07 -0700408
409cc_library(
410 name = "flatbuffers",
Austin Schuh40485ed2019-10-26 21:51:44 -0700411 srcs = [
412 "flatbuffers.cc",
413 ],
Austin Schuhe93d8642019-10-13 15:27:07 -0700414 hdrs = [
415 "flatbuffers.h",
416 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800417 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh40485ed2019-10-26 21:51:44 -0700418 visibility = ["//visibility:public"],
Austin Schuhe93d8642019-10-13 15:27:07 -0700419 deps = [
James Kuszmaulad8a8082020-02-14 21:21:58 -0800420 "//aos:macros",
Brian Silverman354697a2020-09-22 21:06:32 -0700421 "//aos/containers:resizeable_buffer",
Austin Schuhe93d8642019-10-13 15:27:07 -0700422 "@com_github_google_flatbuffers//:flatbuffers",
Austin Schuh40485ed2019-10-26 21:51:44 -0700423 "@com_github_google_glog//:glog",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700424 "@com_google_absl//absl/strings",
Austin Schuh6f3babe2020-01-26 20:34:50 -0800425 "@com_google_absl//absl/types:span",
Austin Schuhe93d8642019-10-13 15:27:07 -0700426 ],
427)
Austin Schuhcb108412019-10-13 16:09:54 -0700428
429cc_test(
430 name = "configuration_test",
431 srcs = [
432 "configuration_test.cc",
433 ],
434 data = [
Austin Schuh14d7d3d2020-09-10 18:14:36 -0700435 "//aos/events:pingpong_config",
Austin Schuh6b9c4152019-11-29 12:45:24 -0800436 "//aos/events:pong.bfbs",
James Kuszmaulc0c08da2020-05-10 18:56:07 -0700437 "//aos/testdata:test_configs",
Austin Schuhcb108412019-10-13 16:09:54 -0700438 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800439 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhcb108412019-10-13 16:09:54 -0700440 deps = [
441 ":configuration",
Austin Schuh1ef01ef2021-02-07 20:40:36 -0800442 "//aos/testing:flatbuffer_eq",
Austin Schuhcb108412019-10-13 16:09:54 -0700443 "//aos/testing:googletest",
Austin Schuh373f1762021-06-02 21:07:09 -0700444 "//aos/testing:path",
Austin Schuhcb108412019-10-13 16:09:54 -0700445 "//aos/testing:test_logging",
446 ],
447)
Alex Perrycb7da4b2019-08-28 19:35:56 -0700448
449cc_binary(
450 name = "config_flattener",
451 srcs = [
452 "config_flattener.cc",
453 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800454 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700455 visibility = ["//visibility:public"],
456 deps = [
457 ":configuration",
458 ":init",
459 "//aos/util:file",
460 "@com_github_google_glog//:glog",
461 ],
462)
Tyler Chatow5e369a42019-11-23 11:57:31 -0800463
Brian Silvermanea2c95f2021-02-10 18:10:26 -0800464cc_library(
465 name = "aos_cli_utils",
466 srcs = [
467 "aos_cli_utils.cc",
468 ],
469 hdrs = [
470 "aos_cli_utils.h",
471 ],
472 target_compatible_with = ["@platforms//os:linux"],
473 visibility = ["//visibility:public"],
474 deps = [
475 ":configuration",
476 "//aos:init",
477 "//aos/events:shm_event_loop",
478 "@com_github_google_glog//:glog",
479 ],
480)
481
Tyler Chatow5e369a42019-11-23 11:57:31 -0800482cc_binary(
Austin Schuh944df342019-12-21 17:08:55 -0800483 name = "aos_dump",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800484 srcs = [
Austin Schuh944df342019-12-21 17:08:55 -0800485 "aos_dump.cc",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800486 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800487 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow5e369a42019-11-23 11:57:31 -0800488 visibility = ["//visibility:public"],
489 deps = [
Brian Silvermanea2c95f2021-02-10 18:10:26 -0800490 ":aos_cli_utils",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800491 ":configuration",
492 ":json_to_flatbuffer",
493 "//aos:init",
Brian Silvermanea2c95f2021-02-10 18:10:26 -0800494 "@com_github_google_glog//:glog",
495 ],
496)
497
498cc_binary(
499 name = "aos_send",
500 srcs = [
501 "aos_send.cc",
502 ],
503 target_compatible_with = ["@platforms//os:linux"],
504 visibility = ["//visibility:public"],
505 deps = [
506 ":aos_cli_utils",
507 ":configuration",
508 ":init",
509 ":json_to_flatbuffer",
510 "@com_github_gflags_gflags//:gflags",
Tyler Chatow5e369a42019-11-23 11:57:31 -0800511 "@com_github_google_glog//:glog",
512 ],
513)
Brian Silverman79ec7fc2020-06-08 20:11:22 -0500514
Jim Ostrowski17ce54d2020-10-24 17:24:01 -0700515cc_binary(
516 name = "aos_graph_nodes",
517 srcs = [
518 "aos_graph_nodes.cc",
519 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800520 target_compatible_with = ["@platforms//os:linux"],
Jim Ostrowski17ce54d2020-10-24 17:24:01 -0700521 visibility = ["//visibility:public"],
522 deps = [
523 ":configuration",
524 ":json_to_flatbuffer",
525 "//aos:init",
526 "//aos/events:shm_event_loop",
527 "@com_github_google_glog//:glog",
528 ],
529)
530
Brian Silverman79ec7fc2020-06-08 20:11:22 -0500531cc_library(
532 name = "ftrace",
533 srcs = [
534 "ftrace.cc",
535 ],
536 hdrs = [
537 "ftrace.h",
538 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800539 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman79ec7fc2020-06-08 20:11:22 -0500540 visibility = ["//visibility:public"],
541 deps = [
542 "@com_github_google_glog//:glog",
543 ],
544)
Tyler Chatowfcf16f42020-07-26 12:41:36 -0700545
546cc_library(
547 name = "fast_string_builder",
548 srcs = [
549 "fast_string_builder.cc",
550 ],
551 hdrs = [
552 "fast_string_builder.h",
553 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800554 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatowfcf16f42020-07-26 12:41:36 -0700555 deps = [
556 "@com_github_google_glog//:glog",
557 "@com_google_absl//absl/strings",
558 "@com_google_absl//absl/strings:str_format",
559 ],
560)
Brian Silvermanb47f5552020-10-01 15:08:14 -0700561
562cc_library(
563 name = "thread_local",
564 hdrs = [
565 "thread_local.h",
566 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800567 target_compatible_with = ["@platforms//os:linux"],
Brian Silvermanb47f5552020-10-01 15:08:14 -0700568 visibility = ["//visibility:public"],
569)
Austin Schuhcc6070c2020-10-10 20:25:56 -0700570
571cc_test(
572 name = "realtime_test",
573 srcs = [
574 "realtime_test.cc",
575 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800576 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhcc6070c2020-10-10 20:25:56 -0700577 visibility = ["//visibility:public"],
578 deps = [
579 ":realtime",
580 "//aos/testing:googletest",
581 ],
582)
Austin Schuh977a5ed2020-12-02 23:20:04 -0800583
584cc_test(
585 name = "flatbuffers_test",
586 srcs = [
587 "flatbuffers_test.cc",
588 ],
589 deps = [
590 ":flatbuffers",
591 ":json_to_flatbuffer",
Brian Silvermanc5105ab2021-02-10 17:55:38 -0800592 ":json_to_flatbuffer_fbs",
Austin Schuh977a5ed2020-12-02 23:20:04 -0800593 "//aos/testing:googletest",
594 ],
595)
Austin Schuh0de30f32020-12-06 12:44:28 -0800596
597py_binary(
598 name = "flatbuffers_static",
599 srcs = ["flatbuffers_static.py"],
600 visibility = ["//visibility:public"],
601)
Austin Schuh4385b142021-03-14 21:31:13 -0700602
603cc_library(
604 name = "uuid",
605 srcs = ["uuid.cc"],
606 hdrs = ["uuid.h"],
607 target_compatible_with = ["@platforms//os:linux"],
608 visibility = ["//visibility:public"],
609 deps = [
Austin Schuh8902fa52021-03-14 22:39:24 -0700610 "@com_github_gflags_gflags//:gflags",
Austin Schuh4385b142021-03-14 21:31:13 -0700611 "@com_github_google_flatbuffers//:flatbuffers",
612 "@com_github_google_glog//:glog",
613 "@com_google_absl//absl/types:span",
614 ],
615)
616
617cc_test(
618 name = "uuid_test",
619 srcs = ["uuid_test.cc"],
620 target_compatible_with = ["@platforms//os:linux"],
621 deps = [
622 ":uuid",
623 "//aos/testing:googletest",
624 ],
625)