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