James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 1 | { |
| 2 | 'targets': [ |
| 3 | { |
| 4 | 'target_name': 'drivetrain_loop', |
| 5 | 'type': 'static_library', |
| 6 | 'sources': ['drivetrain.q'], |
| 7 | 'variables': { |
| 8 | 'header_path': 'frc971/control_loops/drivetrain', |
| 9 | }, |
| 10 | 'dependencies': [ |
| 11 | '<(AOS)/build/aos.gyp:libaos', |
| 12 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 13 | '<(AOS)/common/common.gyp:queues', |
| 14 | ], |
| 15 | 'export_dependent_settings': [ |
| 16 | '<(AOS)/build/aos.gyp:libaos', |
| 17 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 18 | '<(AOS)/common/common.gyp:queues', |
| 19 | ], |
| 20 | 'includes': ['../../../aos/build/queues.gypi'], |
| 21 | }, |
| 22 | { |
| 23 | 'target_name': 'drivetrain_lib', |
| 24 | 'type': 'static_library', |
| 25 | 'sources': [ |
| 26 | 'drivetrain.cc', |
| 27 | 'drivetrain_motor_plant.cc', |
| 28 | ], |
| 29 | 'dependencies': [ |
| 30 | '<(AOS)/build/aos.gyp:libaos', |
| 31 | 'drivetrain_loop', |
| 32 | '<(AOS)/common/common.gyp:controls', |
| 33 | '<(DEPTH)/frc971/frc971.gyp:common', |
| 34 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 35 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
| 36 | ], |
| 37 | 'export_dependent_settings': [ |
| 38 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 39 | '<(AOS)/common/common.gyp:controls', |
| 40 | 'drivetrain_loop', |
| 41 | ], |
| 42 | }, |
| 43 | { |
| 44 | 'target_name': 'drivetrain_lib_test', |
| 45 | 'type': 'executable', |
| 46 | 'sources': [ |
| 47 | 'drivetrain_lib_test.cc', |
| 48 | ], |
| 49 | 'dependencies': [ |
| 50 | '<(EXTERNALS):gtest', |
| 51 | 'drivetrain_loop', |
| 52 | 'drivetrain_lib', |
| 53 | '<(AOS)/common/common.gyp:queue_testutils', |
| 54 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
James Kuszmaul | 3f35474 | 2013-03-10 17:27:56 -0700 | [diff] [blame^] | 55 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 56 | ], |
| 57 | }, |
| 58 | { |
| 59 | 'target_name': 'drivetrain', |
| 60 | 'type': 'executable', |
| 61 | 'sources': [ |
| 62 | 'drivetrain_main.cc', |
| 63 | ], |
| 64 | 'dependencies': [ |
| 65 | '<(AOS)/atom_code/atom_code.gyp:init', |
| 66 | 'drivetrain_lib', |
| 67 | 'drivetrain_loop', |
| 68 | ], |
| 69 | }, |
| 70 | ], |
| 71 | } |