blob: cdb76c8a896b1a377172674752ccc368e036c426 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'variables': {
3 'loop_files': [
4 'DriveTrain.q',
Austin Schuhdc1c84a2013-02-23 16:33:10 -08005 'wrist_motor.q',
brians343bc112013-02-10 01:53:46 +00006 ]
7 },
8 'targets': [
9 {
Brian Silverman5275ade2013-03-03 12:58:25 -080010 'target_name': 'state_feedback_loop',
11 'type': 'static_library',
12 'sources': [
13 #'state_feedback_loop.h'
14 ],
15 'dependencies': [
16 '<(EXTERNALS):eigen',
17 ],
18 'export_dependent_settings': [
19 '<(EXTERNALS):eigen',
20 ],
21 },
22 {
brians343bc112013-02-10 01:53:46 +000023 'target_name': 'control_loops',
24 'type': 'static_library',
25 'sources': ['<@(loop_files)'],
26 'variables': {
27 'header_path': 'frc971/control_loops',
28 },
29 'dependencies': [
brians343bc112013-02-10 01:53:46 +000030 '<(AOS)/common/common.gyp:control_loop_queues',
31 '<(AOS)/common/common.gyp:queues',
32 ],
33 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +000034 '<(AOS)/common/common.gyp:control_loop_queues',
35 '<(AOS)/common/common.gyp:queues',
36 ],
37 'includes': ['../../aos/build/queues.gypi'],
38 },
39 {
Austin Schuhdc1c84a2013-02-23 16:33:10 -080040 'target_name': 'wrist_lib',
41 'type': 'static_library',
42 'sources': [
43 'wrist.cc',
44 'wrist_motor_plant.cc',
45 ],
46 'dependencies': [
47 '<(AOS)/build/aos.gyp:libaos',
48 'control_loops',
49 '<(AOS)/common/common.gyp:controls',
50 '<(DEPTH)/frc971/frc971.gyp:common',
51 '<(EXTERNALS):eigen',
52 ],
Austin Schuh464ee1a2013-03-01 22:37:39 -080053 'export_dependent_settings': [
54 '<(EXTERNALS):eigen',
55 '<(AOS)/common/common.gyp:controls',
56 'control_loops',
57 ],
Austin Schuhdc1c84a2013-02-23 16:33:10 -080058 },
59 {
60 'target_name': 'wrist_lib_test',
61 'type': 'executable',
62 'sources': [
63 'wrist_lib_test.cc',
64 ],
65 'dependencies': [
66 '<(EXTERNALS):gtest',
67 '<(AOS)/build/aos.gyp:libaos',
68 'control_loops',
69 'wrist_lib',
70 '<(AOS)/common/common.gyp:queue_testutils',
71 '<(EXTERNALS):eigen',
72 ],
73 },
74 {
75 'target_name': 'wrist',
76 'type': 'executable',
77 'sources': [
78 'wrist_main.cc',
79 ],
80 'dependencies': [
81 '<(AOS)/build/aos.gyp:libaos',
82 'wrist_lib',
83 'control_loops',
84 ],
85 },
86 {
brians343bc112013-02-10 01:53:46 +000087 'target_name': 'DriveTrain',
88 'type': 'executable',
89 'sources': [
90 'DriveTrain.cc',
91 ],
92 'dependencies': [
93 '<(AOS)/build/aos.gyp:logging',
94 '<(AOS)/common/common.gyp:controls',
brians343bc112013-02-10 01:53:46 +000095 'control_loops',
96 '<(DEPTH)/frc971/queues/queues.gyp:queues',
97 '<(EXTERNALS):eigen',
Brian Silvermanf665d692013-02-17 22:11:39 -080098 '<(AOS)/atom_code/atom_code.gyp:init',
brians343bc112013-02-10 01:53:46 +000099 ],
100 },
101 ],
102}