summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/partial/ls/SConscript
blob: 2665bee0787a893a116698bc62913fe7121457ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from shutil import copy
from building import *

Import('rtconfig')

src   = []
cwd   = GetCurrentDir()
CPPPATH = [cwd]
group = []

if rtconfig.PLATFORM == 'gcc' and GetDepend('SOC_LS'):
    try:
        # There is no 'sys/select.h' in these bsp's gcc toolchain; thus, we need to copy this file from 'nogcc/sys/select.h'
        copy("../../nogcc/sys/select.h", "./sys/select.h")
    except:
        pass

    if GetDepend('RT_USING_LIBC'):
        src += Glob('*.c')

    group = DefineGroup('libc', src, depend = [], CPPPATH = CPPPATH)

Return('group')