SConscript 623 字节
Newer Older
M
Ming, Bai 已提交
1 2
# for libc component
import os
3 4 5
Import('rtconfig')

from building import *
M
Ming, Bai 已提交
6 7 8

objs = []

9 10 11 12 13
if GetDepend('RT_USING_LIBC'):
    if rtconfig.PLATFORM == 'gcc':
        objs = objs + SConscript('newlib/SConscript')
    elif rtconfig.PLATFORM == 'armcc':
        objs = objs + SConscript('armlibc/SConscript')
14 15
    elif rtconfig.PLATFORM == 'iar':
        objs = objs + SConscript('dlib/SConscript')
16
else:
17
    if rtconfig.PLATFORM == 'gcc' and rtconfig.ARCH != 'sim':
18
        objs = objs + SConscript('minilibc/SConscript')
M
Ming, Bai 已提交
19

20 21 22
objs = objs + SConscript('pthreads/SConscript')
objs = objs + SConscript('libdl/SConscript')

M
Ming, Bai 已提交
23
Return('objs')