blob: 25cc6e3003619041abbe72815cb6df1edf54f65d [file] [log] [blame]
Austin Schuh1bf8a212019-05-26 22:13:14 -07001package(default_visibility = ["//visibility:public"])
Brian Silverman100534c2015-09-07 15:51:23 -04002
Austin Schuh1bf8a212019-05-26 22:13:14 -07003load("//aos/build:queues.bzl", "queue_library")
Brian Silverman100534c2015-09-07 15:51:23 -04004
5cc_library(
Austin Schuh1bf8a212019-05-26 22:13:14 -07006 name = "action_lib",
7 srcs = [
8 "actions.cc",
9 "actor.cc",
10 ],
11 hdrs = [
12 "actions.h",
13 "actor.h",
14 ],
15 deps = [
16 "//aos:queues",
17 "//aos/controls:control_loop",
18 "//aos/logging",
19 "//aos/logging:queue_logging",
20 "//aos/time",
21 "//aos/util:phased_loop",
22 ],
Brian Silverman100534c2015-09-07 15:51:23 -040023)
24
25queue_library(
Austin Schuh1bf8a212019-05-26 22:13:14 -070026 name = "action_queue",
27 srcs = [
28 "actions.q",
29 ],
Brian Silverman100534c2015-09-07 15:51:23 -040030)
31
32queue_library(
Austin Schuh1bf8a212019-05-26 22:13:14 -070033 name = "test_action_queue",
34 srcs = [
35 "test_action.q",
36 ],
37 deps = [
38 ":action_queue",
39 ],
Brian Silverman100534c2015-09-07 15:51:23 -040040)
41
42cc_test(
Austin Schuh1bf8a212019-05-26 22:13:14 -070043 name = "action_test",
44 srcs = [
45 "action_test.cc",
46 ],
47 deps = [
48 ":action_lib",
49 ":action_queue",
50 ":test_action_queue",
51 "//aos:event",
52 "//aos:queues",
53 "//aos/events:simulated_event_loop",
54 "//aos/logging",
55 "//aos/logging:queue_logging",
56 "//aos/testing:googletest",
57 "//aos/testing:test_shm",
58 "//aos/time",
59 ],
Brian Silverman100534c2015-09-07 15:51:23 -040060)