Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
Austin Schuh | 4f85729 | 2018-02-15 23:42:04 -0800 | [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( |
| 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 | |
| 25 | queue_library( |
| 26 | name = 'action_queue', |
| 27 | srcs = [ |
| 28 | 'actions.q', |
| 29 | ], |
| 30 | ) |
| 31 | |
| 32 | queue_library( |
| 33 | name = 'test_action_queue', |
| 34 | srcs = [ |
| 35 | 'test_action.q', |
| 36 | ], |
| 37 | deps = [ |
| 38 | ':action_queue', |
| 39 | ], |
| 40 | ) |
| 41 | |
| 42 | cc_test( |
| 43 | name = 'action_test', |
| 44 | srcs = [ |
| 45 | 'action_test.cc', |
| 46 | ], |
| 47 | deps = [ |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 48 | '//aos/testing:googletest', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 49 | ':action_lib', |
| 50 | ':test_action_queue', |
Brian Silverman | f5f8d8e | 2015-12-06 18:39:12 -0500 | [diff] [blame] | 51 | '//aos/testing:test_shm', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 52 | '//aos/common/logging', |
| 53 | '//aos/common/logging:queue_logging', |
| 54 | '//aos/common:queues', |
| 55 | '//aos/common:time', |
| 56 | ':action_queue', |
Brian Silverman | 086cb8c | 2015-10-26 11:39:40 -0400 | [diff] [blame] | 57 | '//aos/common:event', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 58 | ], |
| 59 | ) |