summaryrefslogtreecommitdiff
path: root/components/libc/compilers/minilibc/SConscript
blob: 518d8005716e8aa72c1ec6ffd043935e5efae76f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from building import *
Import('rtconfig')

src = Glob('*.c') + Glob('*.cpp')
cwd = GetCurrentDir()
group = []

CPPPATH = [cwd]
CPPDEFINES = ['RT_USING_MINILIBC']

if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim' and not GetDepend('RT_USING_LIBC'):
    group = DefineGroup('libc', src, depend = [''],
        CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

Return('group')