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': [ |
| 8 | '<(AOS)/externals/WPILib/WPILib/DriverStationLCD.cpp', |
| 9 | '<(AOS)/externals/WPILib/WPILib/Synchronized.cpp', |
| 10 | '<(AOS)/externals/WPILib/WPILib/DriverStation.cpp', |
| 11 | '<(AOS)/externals/WPILib/WPILib/Notifier.cpp', |
| 12 | '<(AOS)/externals/WPILib/WPILib/MotorSafetyHelper.cpp', |
| 13 | '<(AOS)/externals/WPILib/WPILib/Resource.cpp', |
| 14 | '<(AOS)/externals/WPILib/WPILib/SolenoidBase.cpp', |
| 15 | ], |
| 16 | 'dependencies': [ |
| 17 | '<(EXTERNALS):WPILib', |
| 18 | ], |
| 19 | 'cflags!': ['-Werror'], |
| 20 | }, |
| 21 | { |
| 22 | 'target_name': 'user_program', |
| 23 | 'type': 'static_library', |
| 24 | 'sources': [ |
| 25 | 'main.cc', |
| 26 | ], |
| 27 | 'dependencies': [ |
| 28 | '../input/input.gyp:SensorReader', |
| 29 | '../input/input.gyp:SensorWriter', |
| 30 | '../output/output.gyp:MotorWriter', |
| 31 | '../output/output.gyp:SensorSender', |
| 32 | 'WPILib_changes', |
| 33 | '<(EXTERNALS):WPILib', |
| 34 | '<(AOS)/common/messages/messages.gyp:aos_queues', |
| 35 | ], |
| 36 | }, |
| 37 | { |
| 38 | 'target_name': 'FRC_UserProgram', |
| 39 | 'type': 'shared_library', |
| 40 | 'dependencies': [ |
| 41 | 'user_program' |
| 42 | ], |
| 43 | }, |
| 44 | { |
| 45 | 'target_name': 'FRC_UserProgram_WithTests', |
| 46 | 'type': 'shared_library', |
| 47 | 'dependencies': [ |
| 48 | 'user_program', |
| 49 | # For testing. |
| 50 | '<(AOS)/build/aos_all.gyp:Crio', |
| 51 | ], |
| 52 | }, |
| 53 | ], |
| 54 | } |