blob: f61da8cdc2feb25d9e3fddc0c66cb98b883dccf5 [file] [log] [blame]
Austin Schuh00558222013-03-03 14:16:16 -08001{
2 'targets': [
3 {
4 'target_name': 'index_loop',
5 'type': 'static_library',
6 'sources': ['index_motor.q'],
7 'variables': {
8 'header_path': 'frc971/control_loops/index',
9 },
10 'dependencies': [
11 '<(AOS)/build/aos.gyp:libaos',
12 '<(AOS)/common/common.gyp:control_loop_queues',
13 '<(AOS)/common/common.gyp:queues',
14 ],
15 'export_dependent_settings': [
16 '<(AOS)/build/aos.gyp:libaos',
17 '<(AOS)/common/common.gyp:control_loop_queues',
18 '<(AOS)/common/common.gyp:queues',
19 ],
20 'includes': ['../../../aos/build/queues.gypi'],
21 },
22 {
23 'target_name': 'index_lib',
24 'type': 'static_library',
25 'sources': [
26 'index.cc',
27 'index_motor_plant.cc',
28 ],
29 'dependencies': [
30 '<(AOS)/build/aos.gyp:libaos',
31 'index_loop',
32 '<(AOS)/common/common.gyp:controls',
33 '<(DEPTH)/frc971/frc971.gyp:common',
34 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
Austin Schuha3e8e032013-03-10 18:43:14 -070035 '<(DEPTH)/frc971/control_loops/shooter/shooter.gyp:shooter_loop',
Austin Schuh00558222013-03-03 14:16:16 -080036 ],
37 'export_dependent_settings': [
38 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
39 '<(AOS)/common/common.gyp:controls',
40 'index_loop',
41 ],
42 },
43 {
44 'target_name': 'index_lib_test',
45 'type': 'executable',
46 'sources': [
47 'index_lib_test.cc',
48 'transfer_motor_plant.cc',
49 ],
50 'dependencies': [
51 '<(EXTERNALS):gtest',
52 '<(AOS)/build/aos.gyp:libaos',
53 'index_loop',
54 'index_lib',
55 '<(AOS)/common/common.gyp:queue_testutils',
56 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
Austin Schuha3e8e032013-03-10 18:43:14 -070057 '<(DEPTH)/frc971/control_loops/shooter/shooter.gyp:shooter_loop',
Austin Schuh00558222013-03-03 14:16:16 -080058 ],
59 },
60 {
61 'target_name': 'index',
62 'type': 'executable',
63 'sources': [
64 'index_main.cc',
65 ],
66 'dependencies': [
Brian Silverman94195052013-03-09 13:45:05 -080067 '<(AOS)/atom_code/atom_code.gyp:init',
Austin Schuh00558222013-03-03 14:16:16 -080068 'index_lib',
69 'index_loop',
70 ],
71 },
72 ],
73}