blob: d0fe261cd317edaaeaaf7c23f60aa4a1ad784217 [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 ],
40 },
41 {
42 'target_name': 'wrist_lib_test',
43 'type': 'executable',
44 'sources': [
45 'wrist_lib_test.cc',
46 ],
47 'dependencies': [
48 '<(EXTERNALS):gtest',
49 '<(AOS)/build/aos.gyp:libaos',
50 'control_loops',
51 'wrist_lib',
52 '<(AOS)/common/common.gyp:queue_testutils',
53 '<(EXTERNALS):eigen',
54 ],
55 },
56 {
57 'target_name': 'wrist',
58 'type': 'executable',
59 'sources': [
60 'wrist_main.cc',
61 ],
62 'dependencies': [
63 '<(AOS)/build/aos.gyp:libaos',
64 'wrist_lib',
65 'control_loops',
66 ],
67 },
68 {
brians343bc112013-02-10 01:53:46 +000069 'target_name': 'DriveTrain',
70 'type': 'executable',
71 'sources': [
72 'DriveTrain.cc',
73 ],
74 'dependencies': [
75 '<(AOS)/build/aos.gyp:logging',
76 '<(AOS)/common/common.gyp:controls',
brians343bc112013-02-10 01:53:46 +000077 'control_loops',
78 '<(DEPTH)/frc971/queues/queues.gyp:queues',
79 '<(EXTERNALS):eigen',
Brian Silvermanf665d692013-02-17 22:11:39 -080080 '<(AOS)/atom_code/atom_code.gyp:init',
brians343bc112013-02-10 01:53:46 +000081 ],
82 },
83 ],
84}