brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | { |
| 2 | 'variables': { |
| 3 | 'loop_files': [ |
| 4 | 'DriveTrain.q', |
Austin Schuh | d78ab54 | 2013-03-01 22:22:19 -0800 | [diff] [blame^] | 5 | 'index_motor.q', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 6 | ] |
| 7 | }, |
| 8 | 'targets': [ |
| 9 | { |
Brian Silverman | 5275ade | 2013-03-03 12:58:25 -0800 | [diff] [blame] | 10 | 'target_name': 'state_feedback_loop', |
| 11 | 'type': 'static_library', |
| 12 | 'sources': [ |
| 13 | #'state_feedback_loop.h' |
Austin Schuh | f188181 | 2013-03-03 13:08:33 -0800 | [diff] [blame] | 14 | #'StateFeedbackLoop.h' |
Brian Silverman | 5275ade | 2013-03-03 12:58:25 -0800 | [diff] [blame] | 15 | ], |
| 16 | 'dependencies': [ |
| 17 | '<(EXTERNALS):eigen', |
| 18 | ], |
| 19 | 'export_dependent_settings': [ |
| 20 | '<(EXTERNALS):eigen', |
| 21 | ], |
| 22 | }, |
| 23 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 24 | 'target_name': 'control_loops', |
| 25 | 'type': 'static_library', |
| 26 | 'sources': ['<@(loop_files)'], |
| 27 | 'variables': { |
| 28 | 'header_path': 'frc971/control_loops', |
| 29 | }, |
| 30 | 'dependencies': [ |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 31 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 32 | '<(AOS)/common/common.gyp:queues', |
| 33 | ], |
| 34 | 'export_dependent_settings': [ |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 35 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 36 | '<(AOS)/common/common.gyp:queues', |
| 37 | ], |
| 38 | 'includes': ['../../aos/build/queues.gypi'], |
| 39 | }, |
| 40 | { |
Austin Schuh | d78ab54 | 2013-03-01 22:22:19 -0800 | [diff] [blame^] | 41 | { |
| 42 | 'target_name': 'index_lib', |
| 43 | 'type': 'static_library', |
| 44 | 'sources': [ |
| 45 | 'index.cc', |
| 46 | 'index_motor_plant.cc', |
| 47 | ], |
| 48 | 'dependencies': [ |
| 49 | '<(AOS)/build/aos.gyp:libaos', |
| 50 | 'control_loops', |
| 51 | '<(AOS)/common/common.gyp:controls', |
| 52 | '<(DEPTH)/frc971/frc971.gyp:common', |
| 53 | '<(EXTERNALS):eigen', |
| 54 | ], |
| 55 | }, |
| 56 | { |
| 57 | 'target_name': 'index_lib_test', |
| 58 | 'type': 'executable', |
| 59 | 'sources': [ |
| 60 | 'index_lib_test.cc', |
| 61 | 'transfer_motor_plant.cc', |
| 62 | ], |
| 63 | 'dependencies': [ |
| 64 | '<(EXTERNALS):gtest', |
| 65 | '<(AOS)/build/aos.gyp:libaos', |
| 66 | 'control_loops', |
| 67 | 'index_lib', |
| 68 | '<(AOS)/common/common.gyp:queue_testutils', |
| 69 | '<(EXTERNALS):eigen', |
| 70 | ], |
| 71 | }, |
| 72 | { |
| 73 | 'target_name': 'index', |
| 74 | 'type': 'executable', |
| 75 | 'sources': [ |
| 76 | 'index_main.cc', |
| 77 | ], |
| 78 | 'dependencies': [ |
| 79 | '<(AOS)/build/aos.gyp:libaos', |
| 80 | 'index_lib', |
| 81 | 'control_loops', |
| 82 | ], |
| 83 | }, |
| 84 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 85 | 'target_name': 'DriveTrain', |
| 86 | 'type': 'executable', |
| 87 | 'sources': [ |
| 88 | 'DriveTrain.cc', |
| 89 | ], |
| 90 | 'dependencies': [ |
| 91 | '<(AOS)/build/aos.gyp:logging', |
| 92 | '<(AOS)/common/common.gyp:controls', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 93 | 'control_loops', |
| 94 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 95 | '<(AOS)/atom_code/atom_code.gyp:init', |
Austin Schuh | f188181 | 2013-03-03 13:08:33 -0800 | [diff] [blame] | 96 | 'state_feedback_loop', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 97 | ], |
| 98 | }, |
| 99 | ], |
| 100 | } |