blob: 9cfb01950948546e514cd865b8b6493ca8630081 [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': [
Austin Schuh00558222013-03-03 14:16:16 -080011 '<(AOS)/common/common.gyp:control_loop_queues',
12 '<(AOS)/common/common.gyp:queues',
13 ],
14 'export_dependent_settings': [
Austin Schuh00558222013-03-03 14:16:16 -080015 '<(AOS)/common/common.gyp:control_loop_queues',
16 '<(AOS)/common/common.gyp:queues',
17 ],
18 'includes': ['../../../aos/build/queues.gypi'],
19 },
20 {
21 'target_name': 'index_lib',
22 'type': 'static_library',
23 'sources': [
24 'index.cc',
25 'index_motor_plant.cc',
26 ],
27 'dependencies': [
Austin Schuh00558222013-03-03 14:16:16 -080028 'index_loop',
29 '<(AOS)/common/common.gyp:controls',
30 '<(DEPTH)/frc971/frc971.gyp:common',
31 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
Austin Schuha3e8e032013-03-10 18:43:14 -070032 '<(DEPTH)/frc971/control_loops/shooter/shooter.gyp:shooter_loop',
Austin Schuh00558222013-03-03 14:16:16 -080033 ],
34 'export_dependent_settings': [
35 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
36 '<(AOS)/common/common.gyp:controls',
37 'index_loop',
38 ],
39 },
40 {
41 'target_name': 'index_lib_test',
42 'type': 'executable',
43 'sources': [
44 'index_lib_test.cc',
45 'transfer_motor_plant.cc',
46 ],
47 'dependencies': [
48 '<(EXTERNALS):gtest',
Austin Schuh00558222013-03-03 14:16:16 -080049 'index_loop',
50 'index_lib',
51 '<(AOS)/common/common.gyp:queue_testutils',
52 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
Austin Schuha3e8e032013-03-10 18:43:14 -070053 '<(DEPTH)/frc971/control_loops/shooter/shooter.gyp:shooter_loop',
Austin Schuh00558222013-03-03 14:16:16 -080054 ],
55 },
56 {
57 'target_name': 'index',
58 'type': 'executable',
59 'sources': [
60 'index_main.cc',
61 ],
62 'dependencies': [
Brian Silverman94195052013-03-09 13:45:05 -080063 '<(AOS)/atom_code/atom_code.gyp:init',
Austin Schuh00558222013-03-03 14:16:16 -080064 'index_lib',
65 'index_loop',
66 ],
67 },
68 ],
69}