blob: b91b32d7a581e06ac12d9c11f39692e6d6021305 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'targets': [
3 {
4# The WPILib code that we've modified.
5 'target_name': 'WPILib_changes',
6 'type': 'static_library',
7 'sources': [
brians759380a2013-03-03 05:31:52 +00008 '<(AOS)/externals/WPILib/WPILib/LiveWindow/LiveWindow.cpp',
briansfe046f42013-03-03 23:16:58 +00009 '<(AOS)/externals/WPILib/WPILib/AnalogTriggerOutput.cpp',
10 '<(AOS)/externals/WPILib/WPILib/DigitalInput.cpp',
11 '<(AOS)/externals/WPILib/WPILib/DigitalSource.cpp',
brians343bc112013-02-10 01:53:46 +000012 ],
13 'dependencies': [
14 '<(EXTERNALS):WPILib',
15 ],
16 'cflags!': ['-Werror'],
17 },
18 {
19 'target_name': 'user_program',
20 'type': 'static_library',
21 'sources': [
22 'main.cc',
23 ],
24 'dependencies': [
25 '../input/input.gyp:SensorReader',
26 '../input/input.gyp:SensorWriter',
27 '../output/output.gyp:MotorWriter',
28 '../output/output.gyp:SensorSender',
29 'WPILib_changes',
30 '<(EXTERNALS):WPILib',
31 '<(AOS)/common/messages/messages.gyp:aos_queues',
32 ],
33 },
34 {
35 'target_name': 'FRC_UserProgram',
36 'type': 'shared_library',
37 'dependencies': [
38 'user_program'
39 ],
40 },
41 {
42 'target_name': 'FRC_UserProgram_WithTests',
43 'type': 'shared_library',
44 'dependencies': [
45 'user_program',
46 # For testing.
47 '<(AOS)/build/aos_all.gyp:Crio',
48 ],
49 },
50 ],
51}