rt-thread-official/components/libc/compilers/armlibc/SConscript

22 lines
521 B
Python
Raw Normal View History

from building import *
2017-10-13 12:44:54 +08:00
Import('rtconfig')
2017-10-13 12:44:54 +08:00
src = Glob('*.c') + Glob('*.cpp')
cwd = GetCurrentDir()
group = []
CPPPATH = [cwd]
CPPDEFINES = ['RT_USING_ARM_LIBC']
if GetDepend('RT_USING_DFS') == False:
SrcRemove(src, ['stdio.c'])
if GetDepend('RT_USING_MODULE') == False:
SrcRemove(src, ['libc_syms.c'])
2019-02-18 18:29:22 +08:00
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang':
2017-10-13 12:44:54 +08:00
group = DefineGroup('libc', src, depend = ['RT_USING_LIBC'],
CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')