SConscript 460 B

12345678910111213141516
  1. Import('rtconfig')
  2. from building import *
  3. if GetDepend('RT_USING_NEWLIB') and rtconfig.CROSS_TOOL != 'gcc':
  4. print '================ERROR============================'
  5. print 'Please use GNU GCC compiler if using newlib'
  6. print '================================================='
  7. exit(0)
  8. cwd = GetCurrentDir()
  9. src = Glob('*.c')
  10. CPPPATH = [cwd]
  11. group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH)
  12. Return('group')