blob: 177605634734685c4a0913080468eeb54bf92357 [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 {
21 'target_name': 'drivetrain_lib',
22 'type': 'static_library',
23 'sources': [
24 'drivetrain.cc',
25 'drivetrain_motor_plant.cc',
26 ],
27 'dependencies': [
James Kuszmaulf254c1a2013-03-10 16:31:26 -070028 'drivetrain_loop',
29 '<(AOS)/common/common.gyp:controls',
Brian Silverman431500a2013-10-28 19:50:15 -070030 '<(DEPTH)/frc971/frc971.gyp:constants',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070031 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
32 '<(DEPTH)/frc971/queues/queues.gyp:queues',
33 ],
34 'export_dependent_settings': [
35 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
36 '<(AOS)/common/common.gyp:controls',
37 'drivetrain_loop',
38 ],
39 },
40 {
41 'target_name': 'drivetrain_lib_test',
42 'type': 'executable',
43 'sources': [
44 'drivetrain_lib_test.cc',
45 ],
46 'dependencies': [
47 '<(EXTERNALS):gtest',
48 'drivetrain_loop',
49 'drivetrain_lib',
50 '<(AOS)/common/common.gyp:queue_testutils',
51 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
James Kuszmaul3f354742013-03-10 17:27:56 -070052 '<(DEPTH)/frc971/queues/queues.gyp:queues',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070053 ],
54 },
55 {
56 'target_name': 'drivetrain',
57 'type': 'executable',
58 'sources': [
59 'drivetrain_main.cc',
60 ],
61 'dependencies': [
62 '<(AOS)/atom_code/atom_code.gyp:init',
63 'drivetrain_lib',
64 'drivetrain_loop',
65 ],
66 },
67 ],
68}