blob: 191d4cfb949e6a19200c8c1205d4ebce7a775b33 [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 = [
16 '//aos/common/logging',
17 '//aos/common:queues',
18 '//aos/common/logging:queue_logging',
19 '//aos/common:time',
20 '//aos/common/controls:control_loop',
21 '//aos/common/util:phased_loop',
22 ],
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',
Brian Silverman100534c2015-09-07 15:51:23 -040052 '//aos/common/logging',
53 '//aos/common/logging:queue_logging',
54 '//aos/common:queues',
55 '//aos/common:time',
56 ':action_queue',
Brian Silverman086cb8c2015-10-26 11:39:40 -040057 '//aos/common:event',
Brian Silverman100534c2015-09-07 15:51:23 -040058 ],
59)