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