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': [ |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 11 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 12 | '<(AOS)/common/common.gyp:queues', |
| 13 | ], |
| 14 | 'export_dependent_settings': [ |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 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', |
Austin Schuh | 2054f5f | 2013-10-27 14:54:10 -0700 | [diff] [blame] | 26 | 'polydrivetrain_motor_plant.cc', |
Austin Schuh | 427b370 | 2013-11-02 13:44:09 -0700 | [diff] [blame^] | 27 | 'polydrivetrain_cim_plant.cc', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 28 | ], |
| 29 | 'dependencies': [ |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 30 | 'drivetrain_loop', |
| 31 | '<(AOS)/common/common.gyp:controls', |
| 32 | '<(DEPTH)/frc971/frc971.gyp:common', |
Austin Schuh | 2054f5f | 2013-10-27 14:54:10 -0700 | [diff] [blame] | 33 | '<(DEPTH)/aos/build/externals.gyp:libcdd', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 34 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 35 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
| 36 | ], |
| 37 | 'export_dependent_settings': [ |
Austin Schuh | 2054f5f | 2013-10-27 14:54:10 -0700 | [diff] [blame] | 38 | '<(DEPTH)/aos/build/externals.gyp:libcdd', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 39 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 40 | '<(AOS)/common/common.gyp:controls', |
| 41 | 'drivetrain_loop', |
| 42 | ], |
| 43 | }, |
| 44 | { |
| 45 | 'target_name': 'drivetrain_lib_test', |
| 46 | 'type': 'executable', |
| 47 | 'sources': [ |
| 48 | 'drivetrain_lib_test.cc', |
| 49 | ], |
| 50 | 'dependencies': [ |
| 51 | '<(EXTERNALS):gtest', |
| 52 | 'drivetrain_loop', |
| 53 | 'drivetrain_lib', |
| 54 | '<(AOS)/common/common.gyp:queue_testutils', |
| 55 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
James Kuszmaul | 3f35474 | 2013-03-10 17:27:56 -0700 | [diff] [blame] | 56 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 57 | ], |
| 58 | }, |
| 59 | { |
| 60 | 'target_name': 'drivetrain', |
| 61 | 'type': 'executable', |
| 62 | 'sources': [ |
| 63 | 'drivetrain_main.cc', |
| 64 | ], |
| 65 | 'dependencies': [ |
| 66 | '<(AOS)/atom_code/atom_code.gyp:init', |
| 67 | 'drivetrain_lib', |
| 68 | 'drivetrain_loop', |
| 69 | ], |
| 70 | }, |
| 71 | ], |
| 72 | } |