brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | { |
| 2 | 'targets': [ |
| 3 | { |
| 4 | # The WPILib code that we've modified. |
| 5 | 'target_name': 'WPILib_changes', |
| 6 | 'type': 'static_library', |
| 7 | 'sources': [ |
brians | 759380a | 2013-03-03 05:31:52 +0000 | [diff] [blame] | 8 | '<(AOS)/externals/WPILib/WPILib/LiveWindow/LiveWindow.cpp', |
brians | fe046f4 | 2013-03-03 23:16:58 +0000 | [diff] [blame] | 9 | '<(AOS)/externals/WPILib/WPILib/AnalogTriggerOutput.cpp', |
| 10 | '<(AOS)/externals/WPILib/WPILib/DigitalInput.cpp', |
| 11 | '<(AOS)/externals/WPILib/WPILib/DigitalSource.cpp', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 12 | ], |
| 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 | } |