blob: 7a8c8f10c6b83eb0a5d44debc00893d901a41d3b [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'variables': {
3 'loop_files': [
4 'DriveTrain.q',
Austin Schuhd78ab542013-03-01 22:22:19 -08005 'index_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'
Austin Schuhf1881812013-03-03 13:08:33 -080014 #'StateFeedbackLoop.h'
Brian Silverman5275ade2013-03-03 12:58:25 -080015 ],
16 'dependencies': [
17 '<(EXTERNALS):eigen',
18 ],
19 'export_dependent_settings': [
20 '<(EXTERNALS):eigen',
21 ],
22 },
23 {
brians343bc112013-02-10 01:53:46 +000024 'target_name': 'control_loops',
25 'type': 'static_library',
26 'sources': ['<@(loop_files)'],
27 'variables': {
28 'header_path': 'frc971/control_loops',
29 },
30 'dependencies': [
brians343bc112013-02-10 01:53:46 +000031 '<(AOS)/common/common.gyp:control_loop_queues',
32 '<(AOS)/common/common.gyp:queues',
33 ],
34 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +000035 '<(AOS)/common/common.gyp:control_loop_queues',
36 '<(AOS)/common/common.gyp:queues',
37 ],
38 'includes': ['../../aos/build/queues.gypi'],
39 },
40 {
Austin Schuhd78ab542013-03-01 22:22:19 -080041 {
42 'target_name': 'index_lib',
43 'type': 'static_library',
44 'sources': [
45 'index.cc',
46 'index_motor_plant.cc',
47 ],
48 'dependencies': [
49 '<(AOS)/build/aos.gyp:libaos',
50 'control_loops',
51 '<(AOS)/common/common.gyp:controls',
52 '<(DEPTH)/frc971/frc971.gyp:common',
53 '<(EXTERNALS):eigen',
54 ],
55 },
56 {
57 'target_name': 'index_lib_test',
58 'type': 'executable',
59 'sources': [
60 'index_lib_test.cc',
61 'transfer_motor_plant.cc',
62 ],
63 'dependencies': [
64 '<(EXTERNALS):gtest',
65 '<(AOS)/build/aos.gyp:libaos',
66 'control_loops',
67 'index_lib',
68 '<(AOS)/common/common.gyp:queue_testutils',
69 '<(EXTERNALS):eigen',
70 ],
71 },
72 {
73 'target_name': 'index',
74 'type': 'executable',
75 'sources': [
76 'index_main.cc',
77 ],
78 'dependencies': [
79 '<(AOS)/build/aos.gyp:libaos',
80 'index_lib',
81 'control_loops',
82 ],
83 },
84 {
brians343bc112013-02-10 01:53:46 +000085 'target_name': 'DriveTrain',
86 'type': 'executable',
87 'sources': [
88 'DriveTrain.cc',
89 ],
90 'dependencies': [
91 '<(AOS)/build/aos.gyp:logging',
92 '<(AOS)/common/common.gyp:controls',
brians343bc112013-02-10 01:53:46 +000093 'control_loops',
94 '<(DEPTH)/frc971/queues/queues.gyp:queues',
Brian Silvermanf665d692013-02-17 22:11:39 -080095 '<(AOS)/atom_code/atom_code.gyp:init',
Austin Schuhf1881812013-03-03 13:08:33 -080096 'state_feedback_loop',
brians343bc112013-02-10 01:53:46 +000097 ],
98 },
99 ],
100}