blob: 2b985785421fe27a6557373346eb6b5879b00a69 [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',
Austin Schuh2054f5f2013-10-27 14:54:10 -070026 'polydrivetrain_motor_plant.cc',
Austin Schuh427b3702013-11-02 13:44:09 -070027 'polydrivetrain_cim_plant.cc',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070028 ],
29 'dependencies': [
James Kuszmaulf254c1a2013-03-10 16:31:26 -070030 'drivetrain_loop',
31 '<(AOS)/common/common.gyp:controls',
Brian Silverman431500a2013-10-28 19:50:15 -070032 '<(DEPTH)/frc971/frc971.gyp:constants',
Austin Schuh2054f5f2013-10-27 14:54:10 -070033 '<(DEPTH)/aos/build/externals.gyp:libcdd',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070034 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
35 '<(DEPTH)/frc971/queues/queues.gyp:queues',
36 ],
37 'export_dependent_settings': [
Austin Schuh2054f5f2013-10-27 14:54:10 -070038 '<(DEPTH)/aos/build/externals.gyp:libcdd',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070039 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
40 '<(AOS)/common/common.gyp:controls',
41 'drivetrain_loop',
42 ],
43 },
44 {
45 'target_name': 'drivetrain_lib_test',
46 'type': 'executable',
47 'sources': [
48 'drivetrain_lib_test.cc',
49 ],
50 'dependencies': [
51 '<(EXTERNALS):gtest',
52 'drivetrain_loop',
53 'drivetrain_lib',
54 '<(AOS)/common/common.gyp:queue_testutils',
55 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
James Kuszmaul3f354742013-03-10 17:27:56 -070056 '<(DEPTH)/frc971/queues/queues.gyp:queues',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070057 ],
58 },
59 {
60 'target_name': 'drivetrain',
61 'type': 'executable',
62 'sources': [
63 'drivetrain_main.cc',
64 ],
65 'dependencies': [
66 '<(AOS)/atom_code/atom_code.gyp:init',
67 'drivetrain_lib',
68 'drivetrain_loop',
69 ],
70 },
71 ],
72}