rt-thread/bsp/at91/at91sam9g45/platform/SConscript

24 lines
577 B
Python
Raw Normal View History

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