4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 11:13:31 +08:00
bernard.xiong d85f44e0cc check more variables in SConscript
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@650 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-04-19 09:38:34 +00:00

32 lines
956 B
Python

# for module compile
Import('env')
Import('rtconfig')
# build each components
objs = ''
if 'RT_USING_MINILIBC' in dir(rtconfig) and rtconfig.RT_USING_MINILIBC:
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')
# build each modules
if rtconfig.CROSS_TOOL == 'gcc':
SConscript('hello/SConscript')
SConscript('thread/SConscript')
Return('objs')