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

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

CPPPATH = [cwd]
CPPDEFINES = ['RT_USING_ARM_LIBC']

if GetDepend('RT_USING_MODULE') == False:
    SrcRemove(src, ['libc_syms.c'])

if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
    group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'], 
        CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

Return('group')