SConscript 554 B

1234567891011121314151617181920212223
  1. from shutil import copy
  2. from building import *
  3. Import('rtconfig')
  4. src = []
  5. cwd = GetCurrentDir()
  6. CPPPATH = [cwd]
  7. group = []
  8. if rtconfig.PLATFORM == 'gcc' and GetDepend('SOC_LS'):
  9. try:
  10. # There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
  11. copy("../../nogcc/sys/select.h", "./sys/select.h")
  12. except:
  13. pass
  14. if GetDepend('RT_USING_LIBC'):
  15. src += Glob('*.c')
  16. group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)
  17. Return('group')