blob: 89a232102efa0ad7d2f85d650c63e45c6496842f [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',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070027 ],
28 'dependencies': [
James Kuszmaulf254c1a2013-03-10 16:31:26 -070029 'drivetrain_loop',
30 '<(AOS)/common/common.gyp:controls',
31 '<(DEPTH)/frc971/frc971.gyp:common',
Austin Schuh2054f5f2013-10-27 14:54:10 -070032 '<(DEPTH)/aos/build/externals.gyp:libcdd',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070033 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
34 '<(DEPTH)/frc971/queues/queues.gyp:queues',
35 ],
36 'export_dependent_settings': [
Austin Schuh2054f5f2013-10-27 14:54:10 -070037 '<(DEPTH)/aos/build/externals.gyp:libcdd',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070038 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
39 '<(AOS)/common/common.gyp:controls',
40 'drivetrain_loop',
41 ],
42 },
43 {
44 'target_name': 'drivetrain_lib_test',
45 'type': 'executable',
46 'sources': [
47 'drivetrain_lib_test.cc',
48 ],
49 'dependencies': [
50 '<(EXTERNALS):gtest',
51 'drivetrain_loop',
52 'drivetrain_lib',
53 '<(AOS)/common/common.gyp:queue_testutils',
54 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
James Kuszmaul3f354742013-03-10 17:27:56 -070055 '<(DEPTH)/frc971/queues/queues.gyp:queues',
James Kuszmaulf254c1a2013-03-10 16:31:26 -070056 ],
57 },
58 {
59 'target_name': 'drivetrain',
60 'type': 'executable',
61 'sources': [
62 'drivetrain_main.cc',
63 ],
64 'dependencies': [
65 '<(AOS)/atom_code/atom_code.gyp:init',
66 'drivetrain_lib',
67 'drivetrain_loop',
68 ],
69 },
70 ],
71}