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

27 lines
621 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.
2021-09-08 11:59:00 +08:00
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
src = Glob('*.c') + Glob('*_rvds.S')
if rtconfig.PLATFORM == 'gcc':
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
if rtconfig.PLATFORM == 'iar':
src = Glob('*.c') + Glob('*_iar.S')
if rtconfig.PLATFORM == 'cl':
src = Glob('*.c')
if rtconfig.PLATFORM == 'mingw':
src = Glob('*.c')
2020-12-19 16:49:11 +08:00
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
Return('group')