Tyler Chatow | f31da68 | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | filegroup( |
| 6 | name = 'binaries', |
| 7 | srcs = [ |
| 8 | ':autonomous_action', |
| 9 | ], |
| 10 | ) |
| 11 | |
| 12 | queue_library( |
| 13 | name = 'autonomous_action_queue', |
| 14 | srcs = [ |
| 15 | 'autonomous_action.q', |
| 16 | ], |
| 17 | deps = [ |
| 18 | '//aos/common/actions:action_queue', |
| 19 | ], |
| 20 | ) |
| 21 | |
| 22 | cc_library( |
| 23 | name = 'autonomous_action_lib', |
| 24 | srcs = [ |
| 25 | 'autonomous_actor.cc', |
| 26 | ], |
| 27 | hdrs = [ |
| 28 | 'autonomous_actor.h', |
| 29 | ], |
| 30 | deps = [ |
| 31 | ':autonomous_action_queue', |
| 32 | '//aos/common/util:phased_loop', |
| 33 | '//aos/common/logging', |
| 34 | '//aos/common/actions:action_lib', |
| 35 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 36 | '//frc971/control_loops/drivetrain:drivetrain_config', |
| 37 | ], |
| 38 | ) |
| 39 | |
| 40 | cc_binary( |
| 41 | name = 'autonomous_action', |
| 42 | srcs = [ |
| 43 | 'autonomous_actor_main.cc', |
| 44 | ], |
| 45 | deps = [ |
| 46 | ':autonomous_action_lib', |
| 47 | ':autonomous_action_queue', |
| 48 | '//aos/linux_code:init', |
| 49 | ], |
| 50 | ) |