rt-thread/components/SConscript

38 lines
1.2 KiB
Python

# for module compile
Import('env')
Import('rtconfig')
# build each components
objs = ''
if rtconfig.CROSS_TOOL == 'gcc':
if 'RT_USING_NEWLIB' in dir(rtconfig) and rtconfig.RT_USING_NEWLIB:
objs = objs + SConscript('libc/newlib/SConscript')
else:
rtconfig.RT_USING_MINILIBC = True
objs = objs + SConscript('libc/minilibc/SConscript')
if 'RT_USING_FINSH' in dir(rtconfig) and rtconfig.RT_USING_FINSH:
objs = objs + SConscript('finsh/SConscript')
if 'RT_USING_DFS' in dir(rtconfig) and rtconfig.RT_USING_DFS:
objs = objs + SConscript('dfs/SConscript')
if 'RT_USING_LWIP' in dir(rtconfig) and rtconfig.RT_USING_LWIP:
objs = objs + SConscript('net/lwip/SConscript')
if 'RT_USING_MODBUS' in dir(rtconfig) and rtconfig.RT_USING_MODBUS:
objs = objs + SConscript('net/freemodbus/SConscript')
if 'RT_USING_RTGUI' in dir(rtconfig) and rtconfig.RT_USING_RTGUI:
objs = objs + SConscript('rtgui/SConscript')
if 'RT_USING_MODULE' in dir(rtconfig) and rtconfig.RT_USING_MODULE:
objs = objs + SConscript('module/interface/SConscript')
# build each modules
if rtconfig.CROSS_TOOL == 'gcc':
SConscript('module/examples/application/basicapp/SConscript')
Return('objs')