Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 2 | |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 3 | load("//aos/build:queues.bzl", "queue_library") |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 4 | |
| 5 | cc_library( |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 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:queues", |
| 17 | "//aos/controls:control_loop", |
| 18 | "//aos/logging", |
| 19 | "//aos/logging:queue_logging", |
| 20 | "//aos/time", |
| 21 | "//aos/util:phased_loop", |
| 22 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 23 | ) |
| 24 | |
| 25 | queue_library( |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 26 | name = "action_queue", |
| 27 | srcs = [ |
| 28 | "actions.q", |
| 29 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | queue_library( |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 33 | name = "test_action_queue", |
| 34 | srcs = [ |
| 35 | "test_action.q", |
| 36 | ], |
| 37 | deps = [ |
| 38 | ":action_queue", |
| 39 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 40 | ) |
| 41 | |
| 42 | cc_test( |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 43 | 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 Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 60 | ) |