blob: cc93a9c418b5f9f7a59541b59ccd923fbea58a27 [file] [log] [blame]
Daniel Petti1f448512013-10-19 19:35:55 +00001{
2 'targets': [
3 {
4 'target_name': 'drivetrain_loop',
5 'type': 'static_library',
6 'sources': ['drivetrain.q'],
7 'variables': {
8 'header_path': 'bot3/control_loops/drivetrain',
9 },
10 'dependencies': [
11 '<(AOS)/common/common.gyp:control_loop_queues',
12 '<(AOS)/common/common.gyp:queues',
13 ],
14 'export_dependent_settings': [
15 '<(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': [
28 'drivetrain_loop',
29 '<(AOS)/common/common.gyp:controls',
Daniel Petti1f448512013-10-19 19:35:55 +000030 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
31 '<(DEPTH)/frc971/queues/queues.gyp:queues',
32 ],
33 'export_dependent_settings': [
34 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
35 '<(AOS)/common/common.gyp:controls',
36 'drivetrain_loop',
37 ],
38 },
39 {
40 'target_name': 'drivetrain_lib_test',
41 'type': 'executable',
42 'sources': [
43 'drivetrain_lib_test.cc',
44 ],
45 'dependencies': [
46 '<(EXTERNALS):gtest',
47 'drivetrain_loop',
48 'drivetrain_lib',
49 '<(AOS)/common/common.gyp:queue_testutils',
50 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
51 '<(DEPTH)/frc971/queues/queues.gyp:queues',
52 ],
53 },
54 {
55 'target_name': 'drivetrain',
56 'type': 'executable',
57 'sources': [
58 'drivetrain_main.cc',
59 ],
60 'dependencies': [
61 '<(AOS)/atom_code/atom_code.gyp:init',
62 'drivetrain_lib',
63 'drivetrain_loop',
64 ],
65 },
66 ],
67}