SConscript 435 B

12345678910111213141516171819
  1. from building import *
  2. Import('rtconfig')
  3. src = []
  4. cwd = GetCurrentDir()
  5. group = []
  6. CPPPATH = [cwd]
  7. if GetDepend('RT_USING_LIBC'):
  8. src += Glob('*.c')
  9. else:
  10. if GetDepend('RT_USING_MINI_TIME'):
  11. src += ['time.c']
  12. if (rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'iar') and rtconfig.ARCH != 'sim' :
  13. group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH)
  14. Return('group')