Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame^] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 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 = [ |
| 48 | '//third_party/gtest', |
| 49 | ':action_lib', |
| 50 | ':test_action_queue', |
| 51 | '//aos/common:queue_testutils', |
| 52 | '//aos/common/logging', |
| 53 | '//aos/common/logging:queue_logging', |
| 54 | '//aos/common:queues', |
| 55 | '//aos/common:time', |
| 56 | ':action_queue', |
| 57 | '//aos/linux_code/ipc_lib:event', |
| 58 | ], |
| 59 | ) |