summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-19 09:38:34 +0000
committerbernard.xiong <[email protected]>2010-04-19 09:38:34 +0000
commitd85f44e0ccabe4f2cc81b2207b0c9f0f39fc053c (patch)
tree392d3a6797c3ccf875e29584392d1f1a97318edf /components
parente6543f3f9df8d03fcee2652a543b026c8b2366d8 (diff)
check more variables in SConscript
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@650 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/SConscript12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/SConscript b/components/SConscript
index 33010655d9..f8b5513c52 100644
--- a/components/SConscript
+++ b/components/SConscript
@@ -5,22 +5,22 @@ Import('rtconfig')
# build each components
objs = ''
-if rtconfig.RT_USING_MINILIBC:
+if 'RT_USING_MINILIBC' in dir(rtconfig) and rtconfig.RT_USING_MINILIBC:
objs = objs + SConscript('libc/minilibc/SConscript')
-if rtconfig.RT_USING_FINSH:
+if 'RT_USING_FINSH' in dir(rtconfig) and rtconfig.RT_USING_FINSH:
objs = objs + SConscript('finsh/SConscript')
-if rtconfig.RT_USING_DFS:
+if 'RT_USING_DFS' in dir(rtconfig) and rtconfig.RT_USING_DFS:
objs = objs + SConscript('dfs/SConscript')
-if rtconfig.RT_USING_LWIP:
+if 'RT_USING_LWIP' in dir(rtconfig) and rtconfig.RT_USING_LWIP:
objs = objs + SConscript('net/lwip/SConscript')
-if rtconfig.RT_USING_MODBUS:
+if 'RT_USING_MODBUS' in dir(rtconfig) and rtconfig.RT_USING_MODBUS:
objs = objs + SConscript('net//freemodbus/SConscript')
-if rtconfig.RT_USING_RTGUI:
+if 'RT_USING_RTGUI' in dir(rtconfig) and rtconfig.RT_USING_RTGUI:
objs = objs + SConscript('rtgui/SConscript')
# build each modules