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 | { |
Brian Silverman | 2c590c3 | 2013-11-04 18:08:54 -0800 | [diff] [blame] | 21 | 'target_name': 'polydrivetrain_plants', |
| 22 | 'type': 'static_library', |
| 23 | 'sources': [ |
| 24 | 'polydrivetrain_dog_motor_plant.cc', |
Brian Silverman | 2c590c3 | 2013-11-04 18:08:54 -0800 | [diff] [blame] | 25 | 'drivetrain_dog_motor_plant.cc', |
Brian Silverman | 2c590c3 | 2013-11-04 18:08:54 -0800 | [diff] [blame] | 26 | ], |
| 27 | 'dependencies': [ |
| 28 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 29 | ], |
| 30 | 'export_dependent_settings': [ |
| 31 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 32 | ], |
| 33 | }, |
| 34 | { |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 35 | 'target_name': 'drivetrain_lib', |
| 36 | 'type': 'static_library', |
| 37 | 'sources': [ |
| 38 | 'drivetrain.cc', |
Austin Schuh | 427b370 | 2013-11-02 13:44:09 -0700 | [diff] [blame] | 39 | 'polydrivetrain_cim_plant.cc', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 40 | ], |
| 41 | 'dependencies': [ |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 42 | 'drivetrain_loop', |
| 43 | '<(AOS)/common/common.gyp:controls', |
Brian Silverman | 431500a | 2013-10-28 19:50:15 -0700 | [diff] [blame] | 44 | '<(DEPTH)/frc971/frc971.gyp:constants', |
Austin Schuh | 2054f5f | 2013-10-27 14:54:10 -0700 | [diff] [blame] | 45 | '<(DEPTH)/aos/build/externals.gyp:libcdd', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 46 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
James Kuszmaul | fb0e0ae | 2014-03-25 07:04:47 -0700 | [diff] [blame] | 47 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:coerce_goal', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 48 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
Brian Silverman | 50a9d03 | 2014-02-16 17:20:57 -0800 | [diff] [blame] | 49 | '<(AOS)/common/util/util.gyp:log_interval', |
Brian Silverman | 61e41fd | 2014-02-16 19:08:50 -0800 | [diff] [blame] | 50 | '<(AOS)/common/logging/logging.gyp:queue_logging', |
Brian Silverman | fd5e2a3 | 2014-02-22 20:02:39 -0800 | [diff] [blame] | 51 | '<(AOS)/common/logging/logging.gyp:matrix_logging', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 52 | ], |
| 53 | 'export_dependent_settings': [ |
Austin Schuh | 2054f5f | 2013-10-27 14:54:10 -0700 | [diff] [blame] | 54 | '<(DEPTH)/aos/build/externals.gyp:libcdd', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 55 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
James Kuszmaul | fb0e0ae | 2014-03-25 07:04:47 -0700 | [diff] [blame] | 56 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:coerce_goal', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 57 | '<(AOS)/common/common.gyp:controls', |
| 58 | 'drivetrain_loop', |
| 59 | ], |
| 60 | }, |
| 61 | { |
| 62 | 'target_name': 'drivetrain_lib_test', |
| 63 | 'type': 'executable', |
| 64 | 'sources': [ |
| 65 | 'drivetrain_lib_test.cc', |
| 66 | ], |
| 67 | 'dependencies': [ |
| 68 | '<(EXTERNALS):gtest', |
| 69 | 'drivetrain_loop', |
| 70 | 'drivetrain_lib', |
| 71 | '<(AOS)/common/common.gyp:queue_testutils', |
| 72 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
James Kuszmaul | 3f35474 | 2013-03-10 17:27:56 -0700 | [diff] [blame] | 73 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 74 | ], |
| 75 | }, |
| 76 | { |
| 77 | 'target_name': 'drivetrain', |
| 78 | 'type': 'executable', |
| 79 | 'sources': [ |
| 80 | 'drivetrain_main.cc', |
| 81 | ], |
| 82 | 'dependencies': [ |
Brian Silverman | 14fd0fb | 2014-01-14 21:42:01 -0800 | [diff] [blame] | 83 | '<(AOS)/linux_code/linux_code.gyp:init', |
James Kuszmaul | f254c1a | 2013-03-10 16:31:26 -0700 | [diff] [blame] | 84 | 'drivetrain_lib', |
| 85 | 'drivetrain_loop', |
| 86 | ], |
| 87 | }, |
| 88 | ], |
| 89 | } |