SConscript 344 B

123456789101112131415161718
  1. # RT-Thread building script for component
  2. from building import *
  3. Import('rtconfig')
  4. cwd = GetCurrentDir()
  5. src = Glob('*.c') + Glob('*.cpp')
  6. if rtconfig.PLATFORM == 'gcc':
  7. src += Glob('*_gcc.S')
  8. CPPPATH = [cwd]
  9. ASFLAGS = ''
  10. group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
  11. Return('group')