blob: f9f160fa59ef17548c37e8b74344bbc55298718e [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 {
10 'target_name': 'control_loops',
11 'type': 'static_library',
12 'sources': ['<@(loop_files)'],
13 'variables': {
14 'header_path': 'frc971/control_loops',
15 },
16 'dependencies': [
brians343bc112013-02-10 01:53:46 +000017 '<(AOS)/common/common.gyp:control_loop_queues',
18 '<(AOS)/common/common.gyp:queues',
19 ],
20 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +000021 '<(AOS)/common/common.gyp:control_loop_queues',
22 '<(AOS)/common/common.gyp:queues',
23 ],
24 'includes': ['../../aos/build/queues.gypi'],
25 },
26 {
Austin Schuhdc1c84a2013-02-23 16:33:10 -080027 'target_name': 'wrist_lib',
28 'type': 'static_library',
29 'sources': [
30 'wrist.cc',
31 'wrist_motor_plant.cc',
32 ],
33 'dependencies': [
34 '<(AOS)/build/aos.gyp:libaos',
35 'control_loops',
36 '<(AOS)/common/common.gyp:controls',
37 '<(DEPTH)/frc971/frc971.gyp:common',
38 '<(EXTERNALS):eigen',
39 ],
Austin Schuh464ee1a2013-03-01 22:37:39 -080040 'export_dependent_settings': [
41 '<(EXTERNALS):eigen',
42 '<(AOS)/common/common.gyp:controls',
43 'control_loops',
44 ],
Austin Schuhdc1c84a2013-02-23 16:33:10 -080045 },
46 {
47 'target_name': 'wrist_lib_test',
48 'type': 'executable',
49 'sources': [
50 'wrist_lib_test.cc',
51 ],
52 'dependencies': [
53 '<(EXTERNALS):gtest',
54 '<(AOS)/build/aos.gyp:libaos',
55 'control_loops',
56 'wrist_lib',
57 '<(AOS)/common/common.gyp:queue_testutils',
58 '<(EXTERNALS):eigen',
59 ],
60 },
61 {
62 'target_name': 'wrist',
63 'type': 'executable',
64 'sources': [
65 'wrist_main.cc',
66 ],
67 'dependencies': [
68 '<(AOS)/build/aos.gyp:libaos',
69 'wrist_lib',
70 'control_loops',
71 ],
72 },
73 {
brians343bc112013-02-10 01:53:46 +000074 'target_name': 'DriveTrain',
75 'type': 'executable',
76 'sources': [
77 'DriveTrain.cc',
78 ],
79 'dependencies': [
80 '<(AOS)/build/aos.gyp:logging',
81 '<(AOS)/common/common.gyp:controls',
brians343bc112013-02-10 01:53:46 +000082 'control_loops',
83 '<(DEPTH)/frc971/queues/queues.gyp:queues',
84 '<(EXTERNALS):eigen',
Brian Silvermanf665d692013-02-17 22:11:39 -080085 '<(AOS)/atom_code/atom_code.gyp:init',
brians343bc112013-02-10 01:53:46 +000086 ],
87 },
88 ],
89}