2013-07-21 17:19:30 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2023-01-09 10:14:23 +08:00
|
|
|
src = Glob('*.c') + Glob('*_rvds.S')
|
2013-07-21 17:19:30 +08:00
|
|
|
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2023-01-09 10:14:23 +08:00
|
|
|
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
|
2013-07-21 17:19:30 +08:00
|
|
|
|
2022-05-31 06:11:15 +08:00
|
|
|
if rtconfig.PLATFORM in ['iccarm']:
|
2023-01-09 10:14:23 +08:00
|
|
|
src = Glob('*.c') + Glob('*_iar.S')
|
2013-07-21 17:19:30 +08:00
|
|
|
|
2022-08-15 22:32:27 +08:00
|
|
|
if rtconfig.PLATFORM in ['cl', 'mingw']:
|
2023-01-09 10:14:23 +08:00
|
|
|
src = Glob('*.c')
|
2013-07-21 17:19:30 +08:00
|
|
|
|
2020-12-19 16:49:11 +08:00
|
|
|
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
|
2013-07-21 17:19:30 +08:00
|
|
|
|
|
|
|
Return('group')
|