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 | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 9 | ], |
| 10 | 'dependencies': [ |
| 11 | '<(EXTERNALS):WPILib', |
| 12 | ], |
| 13 | 'cflags!': ['-Werror'], |
| 14 | }, |
| 15 | { |
| 16 | 'target_name': 'user_program', |
| 17 | 'type': 'static_library', |
| 18 | 'sources': [ |
| 19 | 'main.cc', |
| 20 | ], |
| 21 | 'dependencies': [ |
| 22 | '../input/input.gyp:SensorReader', |
| 23 | '../input/input.gyp:SensorWriter', |
| 24 | '../output/output.gyp:MotorWriter', |
| 25 | '../output/output.gyp:SensorSender', |
| 26 | 'WPILib_changes', |
| 27 | '<(EXTERNALS):WPILib', |
| 28 | '<(AOS)/common/messages/messages.gyp:aos_queues', |
| 29 | ], |
| 30 | }, |
| 31 | { |
| 32 | 'target_name': 'FRC_UserProgram', |
| 33 | 'type': 'shared_library', |
| 34 | 'dependencies': [ |
| 35 | 'user_program' |
| 36 | ], |
| 37 | }, |
| 38 | { |
| 39 | 'target_name': 'FRC_UserProgram_WithTests', |
| 40 | 'type': 'shared_library', |
| 41 | 'dependencies': [ |
| 42 | 'user_program', |
| 43 | # For testing. |
| 44 | '<(AOS)/build/aos_all.gyp:Crio', |
| 45 | ], |
| 46 | }, |
| 47 | ], |
| 48 | } |