Daniel Petti | aece37f | 2014-10-25 17:13:44 -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': 'bot3/control_loops/drivetrain', |
| 9 | }, |
| 10 | 'dependencies': [ |
| 11 | '<(AOS)/common/controls/controls.gyp:control_loop_queues', |
| 12 | ], |
| 13 | 'export_dependent_settings': [ |
| 14 | '<(AOS)/common/controls/controls.gyp:control_loop_queues', |
| 15 | ], |
| 16 | 'includes': ['../../../aos/build/queues.gypi'], |
| 17 | }, |
| 18 | { |
| 19 | 'target_name': 'polydrivetrain_plants', |
| 20 | 'type': 'static_library', |
| 21 | 'sources': [ |
| 22 | 'polydrivetrain_dog_motor_plant.cc', |
| 23 | 'drivetrain_dog_motor_plant.cc', |
| 24 | ], |
| 25 | 'dependencies': [ |
| 26 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 27 | ], |
| 28 | 'export_dependent_settings': [ |
| 29 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 30 | ], |
| 31 | }, |
| 32 | { |
| 33 | 'target_name': 'drivetrain_constants', |
| 34 | 'type': 'static_library', |
| 35 | 'sources': [ |
| 36 | #'drivetrain_constants.h' |
| 37 | ], |
| 38 | 'dependencies': [ |
| 39 | 'polydrivetrain_plants', |
| 40 | ], |
| 41 | 'export_dependent_settings': [ |
| 42 | 'polydrivetrain_plants', |
| 43 | ], |
| 44 | }, |
| 45 | { |
| 46 | 'target_name': 'drivetrain_lib', |
| 47 | 'type': 'static_library', |
| 48 | 'sources': [ |
| 49 | 'drivetrain.cc', |
| 50 | 'polydrivetrain_cim_plant.cc', |
| 51 | ], |
| 52 | 'dependencies': [ |
| 53 | 'drivetrain_loop', |
| 54 | 'drivetrain_constants', |
| 55 | '<(AOS)/common/controls/controls.gyp:control_loop', |
| 56 | '<(AOS)/common/controls/controls.gyp:polytope', |
| 57 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 58 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:coerce_goal', |
| 59 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
| 60 | '<(AOS)/common/util/util.gyp:log_interval', |
| 61 | '<(AOS)/common/logging/logging.gyp:queue_logging', |
| 62 | '<(AOS)/common/logging/logging.gyp:matrix_logging', |
| 63 | ], |
| 64 | 'export_dependent_settings': [ |
| 65 | '<(AOS)/common/controls/controls.gyp:polytope', |
| 66 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 67 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:coerce_goal', |
| 68 | '<(AOS)/common/controls/controls.gyp:control_loop', |
| 69 | 'drivetrain_loop', |
| 70 | ], |
| 71 | }, |
| 72 | { |
| 73 | 'target_name': 'drivetrain_lib_test', |
| 74 | 'type': 'executable', |
| 75 | 'sources': [ |
| 76 | 'drivetrain_lib_test.cc', |
| 77 | ], |
| 78 | 'dependencies': [ |
| 79 | '<(EXTERNALS):gtest', |
| 80 | 'drivetrain_loop', |
| 81 | 'drivetrain_lib', |
| 82 | '<(AOS)/common/controls/controls.gyp:control_loop_test', |
| 83 | '<(AOS)/common/network/network.gyp:team_number', |
| 84 | '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop', |
| 85 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
| 86 | '<(AOS)/common/common.gyp:queues', |
| 87 | ], |
| 88 | }, |
| 89 | { |
| 90 | 'target_name': 'drivetrain', |
| 91 | 'type': 'executable', |
| 92 | 'sources': [ |
| 93 | 'drivetrain_main.cc', |
| 94 | ], |
| 95 | 'dependencies': [ |
| 96 | '<(AOS)/linux_code/linux_code.gyp:init', |
| 97 | 'drivetrain_lib', |
| 98 | 'drivetrain_loop', |
| 99 | ], |
| 100 | }, |
| 101 | ], |
| 102 | } |