blob: 5941f63189339ea8738870cb5d3a543e08f6e248 [file] [log] [blame]
James Kuszmaulf254c1a2013-03-10 16:31:26 -07001{
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 Kuszmaulf254c1a2013-03-10 16:31:26 -070011 '<(AOS)/common/common.gyp:control_loop_queues',
12 '<(AOS)/common/common.gyp:queues',
13 ],
14 'export_dependent_settings': [
James Kuszmaulf254c1a2013-03-10 16:31:26 -070015 '<(AOS)/common/common.gyp:control_loop_queues',
16 '<(AOS)/common/common.gyp:queues',
17 ],
18 'includes': ['../../../aos/build/queues.gypi'],
19 },
20 {
Brian Silverman2c590c32013-11-04 18:08:54 -080021 'target_name': 'polydrivetrain_plants',
22 'type': 'static_library',
23 'sources': [
24 'polydrivetrain_dog_motor_plant.cc',
25 'polydrivetrain_clutch_motor_plant.cc',
26 'drivetrain_dog_motor_plant.cc',
27 'drivetrain_clutch_motor_plant.cc',
28 ],
29 'dependencies': [
30 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
31 ],
32 'export_dependent_settings': [
33 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
34 ],
35 },
36 {
James Kuszmaulf254c1a2013-03-10 16:31:26 -070037 'target_name': 'drivetrain_lib',
38 'type': 'static_library',
39 'sources': [
40 'drivetrain.cc',
Austin Schuh427b3702013-11-02 13:44:09 -070041 'polydrivetrain_cim_plant.cc',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070042 ],
43 'dependencies': [
James Kuszmaulf254c1a2013-03-10 16:31:26 -070044 'drivetrain_loop',
45 '<(AOS)/common/common.gyp:controls',
Brian Silverman431500a2013-10-28 19:50:15 -070046 '<(DEPTH)/frc971/frc971.gyp:constants',
Austin Schuh2054f5f2013-10-27 14:54:10 -070047 '<(DEPTH)/aos/build/externals.gyp:libcdd',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070048 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
James Kuszmaulfb0e0ae2014-03-25 07:04:47 -070049 '<(DEPTH)/frc971/control_loops/control_loops.gyp:coerce_goal',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070050 '<(DEPTH)/frc971/queues/queues.gyp:queues',
Brian Silverman50a9d032014-02-16 17:20:57 -080051 '<(AOS)/common/util/util.gyp:log_interval',
Brian Silverman61e41fd2014-02-16 19:08:50 -080052 '<(AOS)/common/logging/logging.gyp:queue_logging',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070053 ],
54 'export_dependent_settings': [
Austin Schuh2054f5f2013-10-27 14:54:10 -070055 '<(DEPTH)/aos/build/externals.gyp:libcdd',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070056 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
James Kuszmaulfb0e0ae2014-03-25 07:04:47 -070057 '<(DEPTH)/frc971/control_loops/control_loops.gyp:coerce_goal',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070058 '<(AOS)/common/common.gyp:controls',
59 'drivetrain_loop',
60 ],
61 },
62 {
63 'target_name': 'drivetrain_lib_test',
64 'type': 'executable',
65 'sources': [
66 'drivetrain_lib_test.cc',
67 ],
68 'dependencies': [
69 '<(EXTERNALS):gtest',
70 'drivetrain_loop',
71 'drivetrain_lib',
72 '<(AOS)/common/common.gyp:queue_testutils',
73 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
James Kuszmaul3f354742013-03-10 17:27:56 -070074 '<(DEPTH)/frc971/queues/queues.gyp:queues',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070075 ],
76 },
77 {
78 'target_name': 'drivetrain',
79 'type': 'executable',
80 'sources': [
81 'drivetrain_main.cc',
82 ],
83 'dependencies': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080084 '<(AOS)/linux_code/linux_code.gyp:init',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070085 'drivetrain_lib',
86 'drivetrain_loop',
87 ],
88 },
89 ],
90}