Brian Silverman | 4a93ed5 | 2015-10-12 13:48:49 -0400 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | queue_library( |
| 6 | name = 'intake_queue', |
| 7 | srcs = [ |
| 8 | 'intake.q', |
| 9 | ], |
| 10 | deps = [ |
| 11 | '//aos/common/controls:control_loop_queues', |
| 12 | ], |
| 13 | ) |
| 14 | |
| 15 | cc_library( |
| 16 | name = 'intake_lib', |
| 17 | srcs = [ |
| 18 | 'intake.cc', |
| 19 | ], |
| 20 | hdrs = [ |
| 21 | 'intake.h', |
| 22 | ], |
| 23 | deps = [ |
| 24 | ':intake_queue', |
| 25 | '//aos/common/controls:control_loop', |
| 26 | ], |
| 27 | ) |
| 28 | |
| 29 | cc_test( |
| 30 | name = 'intake_lib_test', |
| 31 | srcs = [ |
| 32 | 'intake_lib_test.cc', |
| 33 | ], |
| 34 | deps = [ |
| 35 | '//third_party/googletest', |
| 36 | ':intake_lib', |
| 37 | '//frc971/control_loops:state_feedback_loop', |
| 38 | '//aos/common/controls:control_loop_test', |
| 39 | '//aos/common:time', |
| 40 | '//frc971/control_loops:team_number_test_environment', |
| 41 | ], |
| 42 | ) |
| 43 | |
| 44 | cc_binary( |
| 45 | name = 'intake', |
| 46 | srcs = [ |
| 47 | 'intake_main.cc', |
| 48 | ], |
| 49 | deps = [ |
| 50 | '//aos/linux_code:init', |
| 51 | ':intake_lib', |
| 52 | ], |
| 53 | ) |