blob: c4082ab75726c5cfb3bc93b4b80dd52caf8999e2 [file] [log] [blame]
Brian Silverman100534c2015-09-07 15:51:23 -04001package(default_visibility = ['//visibility:public'])
2
Austin Schuh4f857292018-02-15 23:42:04 -08003load('//aos/build:queues.bzl', 'queue_library')
Brian Silverman100534c2015-09-07 15:51:23 -04004
5cc_library(
6 name = 'action_lib',
7 srcs = [
8 'actions.cc',
9 'actor.cc',
10 ],
11 hdrs = [
12 'actions.h',
13 'actor.h',
14 ],
15 deps = [
John Park33858a32018-09-28 23:05:48 -070016 '//aos/logging',
17 '//aos:queues',
18 '//aos/logging:queue_logging',
19 '//aos/time:time',
20 '//aos/controls:control_loop',
21 '//aos/util:phased_loop',
Brian Silverman100534c2015-09-07 15:51:23 -040022 ],
23)
24
25queue_library(
26 name = 'action_queue',
27 srcs = [
28 'actions.q',
29 ],
30)
31
32queue_library(
33 name = 'test_action_queue',
34 srcs = [
35 'test_action.q',
36 ],
37 deps = [
38 ':action_queue',
39 ],
40)
41
42cc_test(
43 name = 'action_test',
44 srcs = [
45 'action_test.cc',
46 ],
47 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040048 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040049 ':action_lib',
50 ':test_action_queue',
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050051 '//aos/testing:test_shm',
John Park33858a32018-09-28 23:05:48 -070052 '//aos/logging',
53 '//aos/logging:queue_logging',
54 '//aos:queues',
55 '//aos/time:time',
Brian Silverman100534c2015-09-07 15:51:23 -040056 ':action_queue',
John Park33858a32018-09-28 23:05:48 -070057 '//aos:event',
Brian Silverman100534c2015-09-07 15:51:23 -040058 ],
59)