SConscript 473 B

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