blob: f0a65d929eb33e451bbb6b2a9c9fe58fa6a6231c [file] [log] [blame]
Brian Silverman6470f442018-08-05 12:08:16 -07001package(default_visibility = ["//visibility:public"])
Brian Silverman100534c2015-09-07 15:51:23 -04002
Brian Silverman246cb222019-02-02 16:38:18 -08003cc_library(
4 name = "bitpacking",
5 hdrs = [
6 "bitpacking.h",
7 ],
8 visibility = ["//visibility:public"],
9 deps = [
10 "//third_party/GSL",
11 ],
12)
13
14cc_test(
15 name = "bitpacking_test",
16 srcs = [
17 "bitpacking_test.cc",
18 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080019 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman246cb222019-02-02 16:38:18 -080020 deps = [
21 ":bitpacking",
22 "//aos/testing:googletest",
23 ],
24)
25
Diana Vandenberg19bb9e22016-02-03 21:24:31 -080026py_library(
Brian Silverman6470f442018-08-05 12:08:16 -070027 name = "py_trapezoid_profile",
28 srcs = [
29 "trapezoid_profile.py",
30 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080031 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070032 deps = [
33 ":python_init",
34 ],
Diana Vandenberg19bb9e22016-02-03 21:24:31 -080035)
36
Brian Silverman100534c2015-09-07 15:51:23 -040037cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -070038 name = "run_command",
39 srcs = [
40 "run_command.cc",
41 ],
42 hdrs = [
43 "run_command.h",
44 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080045 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070046 deps = [
John Park33858a32018-09-28 23:05:48 -070047 "//aos/logging",
Brian Silverman6470f442018-08-05 12:08:16 -070048 ],
Brian Silverman100534c2015-09-07 15:51:23 -040049)
50
51cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -070052 name = "run_command_test",
53 srcs = [
54 "run_command_test.cc",
55 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080056 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070057 deps = [
58 ":run_command",
John Park33858a32018-09-28 23:05:48 -070059 "//aos/logging",
Brian Silverman6470f442018-08-05 12:08:16 -070060 "//aos/testing:googletest",
61 ],
Brian Silverman100534c2015-09-07 15:51:23 -040062)
63
64cc_library(
James Kuszmaul0af658b2019-01-25 18:36:29 -080065 name = "math",
66 hdrs = ["math.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080067 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul0af658b2019-01-25 18:36:29 -080068 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070069 "@org_tuxfamily_eigen//:eigen",
James Kuszmaul0af658b2019-01-25 18:36:29 -080070 ],
71)
72
73cc_test(
74 name = "math_test",
75 srcs = ["math_test.cc"],
Philipp Schraderdada1072020-11-24 11:34:46 -080076 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul0af658b2019-01-25 18:36:29 -080077 deps = [
78 ":math",
79 "//aos/testing:googletest",
80 ],
81)
82
83cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -070084 name = "death_test_log_implementation",
85 hdrs = [
86 "death_test_log_implementation.h",
87 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080088 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070089 deps = [
John Park33858a32018-09-28 23:05:48 -070090 "//aos/logging:implementations",
Brian Silverman6470f442018-08-05 12:08:16 -070091 ],
Brian Silverman100534c2015-09-07 15:51:23 -040092)
93
94cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -070095 name = "inet_addr",
96 srcs = [
97 "inet_addr.cc",
98 ],
99 hdrs = [
100 "inet_addr.h",
101 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800102 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700103 deps = [
John Park33858a32018-09-28 23:05:48 -0700104 "//aos:byteorder",
105 "//aos:network_port",
Brian Silverman6470f442018-08-05 12:08:16 -0700106 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400107)
108
109cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700110 name = "phased_loop",
111 srcs = [
112 "phased_loop.cc",
113 ],
114 hdrs = [
115 "phased_loop.h",
116 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800117 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700118 deps = [
James Kuszmaul0af658b2019-01-25 18:36:29 -0800119 "//aos/time",
Austin Schuhf257f3c2019-10-27 21:00:43 -0700120 "@com_github_google_glog//:glog",
Brian Silverman6470f442018-08-05 12:08:16 -0700121 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400122)
123
124cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700125 name = "log_interval",
126 hdrs = [
127 "log_interval.h",
128 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800129 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700130 deps = [
John Park33858a32018-09-28 23:05:48 -0700131 "//aos/logging",
James Kuszmaul0af658b2019-01-25 18:36:29 -0800132 "//aos/time",
Brian Silverman6470f442018-08-05 12:08:16 -0700133 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400134)
135
136cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700137 name = "string_to_num",
138 hdrs = [
139 "string_to_num.h",
140 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800141 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman100534c2015-09-07 15:51:23 -0400142)
143
144cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700145 name = "string_to_num_test",
146 srcs = [
147 "string_to_num_test.cc",
148 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800149 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700150 deps = [
151 ":string_to_num",
152 "//aos/testing:googletest",
153 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400154)
155
156cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700157 name = "trapezoid_profile",
158 srcs = [
159 "trapezoid_profile.cc",
160 ],
161 hdrs = [
162 "trapezoid_profile.h",
163 ],
164 linkopts = [
165 "-lm",
166 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800167 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700168 deps = [
John Park33858a32018-09-28 23:05:48 -0700169 "//aos/logging",
James Kuszmaul0af658b2019-01-25 18:36:29 -0800170 "//aos/time",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700171 "@org_tuxfamily_eigen//:eigen",
Brian Silverman6470f442018-08-05 12:08:16 -0700172 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400173)
174
175cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700176 name = "trapezoid_profile_test",
177 srcs = [
178 "trapezoid_profile_test.cc",
179 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800180 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700181 deps = [
182 ":trapezoid_profile",
183 "//aos/testing:googletest",
184 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400185)
186
187cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700188 name = "wrapping_counter",
189 srcs = [
190 "wrapping_counter.cc",
191 ],
192 hdrs = [
193 "wrapping_counter.h",
194 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800195 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman100534c2015-09-07 15:51:23 -0400196)
197
198cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700199 name = "wrapping_counter_test",
200 srcs = [
201 "wrapping_counter_test.cc",
202 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800203 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700204 deps = [
205 ":wrapping_counter",
206 "//aos/testing:googletest",
207 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400208)
209
Austin Schuh044e18b2015-10-21 20:17:09 -0700210cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700211 name = "options",
212 hdrs = [
213 "options.h",
214 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800215 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh044e18b2015-10-21 20:17:09 -0700216)
217
Brian Silverman100534c2015-09-07 15:51:23 -0400218cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700219 name = "options_test",
220 srcs = [
221 "options_test.cc",
222 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800223 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700224 deps = [
225 ":options",
226 "//aos/testing:googletest",
227 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400228)
Brian Silverman3d37a5f2014-09-05 18:42:20 -0400229
230cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700231 name = "compiler_memory_barrier",
232 hdrs = [
233 "compiler_memory_barrier.h",
234 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800235 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman3d37a5f2014-09-05 18:42:20 -0400236)
Brian Silverman521e6ba2014-09-04 13:37:46 -0400237
238cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700239 name = "global_factory",
240 hdrs = [
241 "global_factory.h",
242 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800243 target_compatible_with = ["@platforms//os:linux"],
Parker Schuh36416692017-02-18 17:34:15 -0800244)
245
246cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700247 name = "global_factory_test",
248 srcs = [
249 "global_factory_test.cc",
250 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800251 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700252 deps = [
253 ":global_factory",
254 "//aos/testing:googletest",
255 ],
Parker Schuh36416692017-02-18 17:34:15 -0800256)
257
Brian Silvermandcaa3f72015-11-29 05:32:08 +0000258cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700259 name = "phased_loop_test",
260 srcs = [
261 "phased_loop_test.cc",
262 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800263 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700264 deps = [
265 ":phased_loop",
266 "//aos/testing:googletest",
Brian Silverman8babd8f2020-06-23 16:38:50 -0700267 "//aos/time",
Brian Silverman6470f442018-08-05 12:08:16 -0700268 ],
Brian Silvermandcaa3f72015-11-29 05:32:08 +0000269)
Brian Silverman61175fb2016-03-13 15:35:56 -0400270
271cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700272 name = "file",
273 srcs = [
274 "file.cc",
275 ],
276 hdrs = [
277 "file.h",
278 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800279 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700280 deps = [
John Park33858a32018-09-28 23:05:48 -0700281 "//aos/scoped:scoped_fd",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700282 "@com_github_google_glog//:glog",
Austin Schuhcb108412019-10-13 16:09:54 -0700283 "@com_google_absl//absl/strings",
Brian Silverman6470f442018-08-05 12:08:16 -0700284 ],
Brian Silverman61175fb2016-03-13 15:35:56 -0400285)
286
287cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700288 name = "file_test",
289 size = "small",
290 srcs = [
291 "file_test.cc",
292 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800293 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700294 deps = [
295 ":file",
296 "//aos/testing:googletest",
Brian Silverman6470f442018-08-05 12:08:16 -0700297 ],
298)
299
300py_library(
301 name = "python_init",
302 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800303 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700304 visibility = ["//visibility:public"],
John Park33858a32018-09-28 23:05:48 -0700305 deps = ["//aos:python_init"],
Brian Silverman61175fb2016-03-13 15:35:56 -0400306)