blob: 8df16e22d29e98047eeaa32cf6915053ea27287e [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 = [
Austin Schuhb72be802022-01-02 12:26:28 -080010 "@com_google_absl//absl/types:span",
Brian Silverman246cb222019-02-02 16:38:18 -080011 ],
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(
James Kuszmaul0af658b2019-01-25 18:36:29 -080038 name = "math",
39 hdrs = ["math.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080040 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul0af658b2019-01-25 18:36:29 -080041 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070042 "@org_tuxfamily_eigen//:eigen",
James Kuszmaul0af658b2019-01-25 18:36:29 -080043 ],
44)
45
46cc_test(
47 name = "math_test",
48 srcs = ["math_test.cc"],
Philipp Schraderdada1072020-11-24 11:34:46 -080049 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul0af658b2019-01-25 18:36:29 -080050 deps = [
51 ":math",
52 "//aos/testing:googletest",
53 ],
54)
55
56cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -070057 name = "death_test_log_implementation",
58 hdrs = [
59 "death_test_log_implementation.h",
60 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080061 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070062 deps = [
John Park33858a32018-09-28 23:05:48 -070063 "//aos/logging:implementations",
Brian Silverman6470f442018-08-05 12:08:16 -070064 ],
Brian Silverman100534c2015-09-07 15:51:23 -040065)
66
67cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -070068 name = "phased_loop",
69 srcs = [
70 "phased_loop.cc",
71 ],
72 hdrs = [
73 "phased_loop.h",
74 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080075 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070076 deps = [
James Kuszmaul0af658b2019-01-25 18:36:29 -080077 "//aos/time",
Austin Schuhf257f3c2019-10-27 21:00:43 -070078 "@com_github_google_glog//:glog",
Brian Silverman6470f442018-08-05 12:08:16 -070079 ],
Brian Silverman100534c2015-09-07 15:51:23 -040080)
81
82cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -070083 name = "log_interval",
84 hdrs = [
85 "log_interval.h",
86 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080087 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070088 deps = [
John Park33858a32018-09-28 23:05:48 -070089 "//aos/logging",
James Kuszmaul0af658b2019-01-25 18:36:29 -080090 "//aos/time",
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 = "trapezoid_profile",
96 srcs = [
97 "trapezoid_profile.cc",
98 ],
99 hdrs = [
100 "trapezoid_profile.h",
101 ],
102 linkopts = [
103 "-lm",
104 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800105 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700106 deps = [
John Park33858a32018-09-28 23:05:48 -0700107 "//aos/logging",
James Kuszmaul0af658b2019-01-25 18:36:29 -0800108 "//aos/time",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700109 "@org_tuxfamily_eigen//:eigen",
Brian Silverman6470f442018-08-05 12:08:16 -0700110 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400111)
112
113cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700114 name = "trapezoid_profile_test",
115 srcs = [
116 "trapezoid_profile_test.cc",
117 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800118 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700119 deps = [
120 ":trapezoid_profile",
121 "//aos/testing:googletest",
122 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400123)
124
125cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700126 name = "wrapping_counter",
127 srcs = [
128 "wrapping_counter.cc",
129 ],
130 hdrs = [
131 "wrapping_counter.h",
132 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800133 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman100534c2015-09-07 15:51:23 -0400134)
135
136cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700137 name = "wrapping_counter_test",
138 srcs = [
139 "wrapping_counter_test.cc",
140 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800141 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700142 deps = [
143 ":wrapping_counter",
144 "//aos/testing:googletest",
145 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400146)
147
Austin Schuh044e18b2015-10-21 20:17:09 -0700148cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700149 name = "options",
150 hdrs = [
151 "options.h",
152 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800153 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh044e18b2015-10-21 20:17:09 -0700154)
155
Brian Silverman100534c2015-09-07 15:51:23 -0400156cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700157 name = "options_test",
158 srcs = [
159 "options_test.cc",
160 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800161 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700162 deps = [
163 ":options",
164 "//aos/testing:googletest",
165 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400166)
Brian Silverman3d37a5f2014-09-05 18:42:20 -0400167
168cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700169 name = "compiler_memory_barrier",
170 hdrs = [
171 "compiler_memory_barrier.h",
172 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800173 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman3d37a5f2014-09-05 18:42:20 -0400174)
Brian Silverman521e6ba2014-09-04 13:37:46 -0400175
176cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700177 name = "global_factory",
178 hdrs = [
179 "global_factory.h",
180 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800181 target_compatible_with = ["@platforms//os:linux"],
Parker Schuh36416692017-02-18 17:34:15 -0800182)
183
184cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700185 name = "global_factory_test",
186 srcs = [
187 "global_factory_test.cc",
188 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800189 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700190 deps = [
191 ":global_factory",
192 "//aos/testing:googletest",
193 ],
Parker Schuh36416692017-02-18 17:34:15 -0800194)
195
Brian Silvermandcaa3f72015-11-29 05:32:08 +0000196cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700197 name = "phased_loop_test",
198 srcs = [
199 "phased_loop_test.cc",
200 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800201 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700202 deps = [
203 ":phased_loop",
204 "//aos/testing:googletest",
Brian Silverman8babd8f2020-06-23 16:38:50 -0700205 "//aos/time",
Brian Silverman6470f442018-08-05 12:08:16 -0700206 ],
Brian Silvermandcaa3f72015-11-29 05:32:08 +0000207)
Brian Silverman61175fb2016-03-13 15:35:56 -0400208
209cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700210 name = "file",
211 srcs = [
212 "file.cc",
213 ],
214 hdrs = [
215 "file.h",
216 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800217 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700218 deps = [
John Park33858a32018-09-28 23:05:48 -0700219 "//aos/scoped:scoped_fd",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700220 "@com_github_google_glog//:glog",
Austin Schuhcb108412019-10-13 16:09:54 -0700221 "@com_google_absl//absl/strings",
davidjevans8b9b52f2021-09-17 08:57:30 -0700222 "@com_google_absl//absl/types:span",
Brian Silverman6470f442018-08-05 12:08:16 -0700223 ],
Brian Silverman61175fb2016-03-13 15:35:56 -0400224)
225
226cc_test(
Brian Silverman6470f442018-08-05 12:08:16 -0700227 name = "file_test",
228 size = "small",
229 srcs = [
230 "file_test.cc",
231 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800232 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700233 deps = [
234 ":file",
235 "//aos/testing:googletest",
Brian Silverman6470f442018-08-05 12:08:16 -0700236 ],
237)
238
James Kuszmaul731a05d2022-01-07 17:59:26 -0800239cc_library(
240 name = "scoped_pipe",
241 srcs = ["scoped_pipe.cc"],
242 hdrs = ["scoped_pipe.h"],
243 target_compatible_with = ["@platforms//os:linux"],
244 deps = [
245 "@com_github_google_glog//:glog",
246 "@com_google_absl//absl/types:span",
247 ],
248)
249
250cc_test(
251 name = "scoped_pipe_test",
252 srcs = ["scoped_pipe_test.cc"],
253 target_compatible_with = ["@platforms//os:linux"],
254 deps = [
255 ":scoped_pipe",
256 "//aos/testing:googletest",
257 ],
258)
259
Ravago Jonese12b7902022-02-04 22:50:44 -0800260cc_library(
261 name = "crc32",
262 srcs = ["crc32.cc"],
263 hdrs = ["crc32.h"],
264 deps = [
265 "@com_google_absl//absl/types:span",
266 ],
267)
268
Brian Silverman6470f442018-08-05 12:08:16 -0700269py_library(
270 name = "python_init",
271 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800272 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700273 visibility = ["//visibility:public"],
John Park33858a32018-09-28 23:05:48 -0700274 deps = ["//aos:python_init"],
Brian Silverman61175fb2016-03-13 15:35:56 -0400275)