blob: 8c9a16e0a61f1c452ed9ee89b807b1fa3086573d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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']:
src = Glob('*.c') + Glob('*_rvds.S')
if rtconfig.PLATFORM in ['gcc']:
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
if rtconfig.PLATFORM in ['iccarm']:
src = Glob('*.c') + Glob('*_iar.S')
if rtconfig.PLATFORM in ['cl', 'mingw']:
src = Glob('*.c')
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|