SConscript 577 B

1234567891011121314151617181920212223
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. CPPPATH = [cwd]
  6. # The set of source files associated with this SConscript file.
  7. if rtconfig.PLATFORM in ['armcc', 'armclang']:
  8. src = Glob('*.c') + Glob('*_rvds.S')
  9. if rtconfig.PLATFORM in ['gcc']:
  10. src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
  11. if rtconfig.PLATFORM in ['iccarm']:
  12. src = Glob('*.c') + Glob('*_iar.S')
  13. if rtconfig.PLATFORM in ['cl', 'mingw']:
  14. src = Glob('*.c')
  15. group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
  16. Return('group')