cleanup scons building script

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com
2010-11-20 12:31:00 +00:00
parent 2fce1a91e2
commit 10732a76e9
36 changed files with 716 additions and 1010 deletions
+5 -20
View File
@@ -1,23 +1,8 @@
Import('env')
Import('RTT_ROOT')
Import('projects')
from building import *
# The set of source files associated with this SConscript file.
src_local = Glob('*.c')
src = Glob('*.c')
CPPPATH = [RTT_ROOT + '/include']
group = DefineGroup('Kernel', src, depend = [''], CPPPATH = CPPPATH)
# group definitions
group = {}
group['name'] = 'Kernel'
group['src'] = File(src_local)
group['CCFLAGS'] = ''
group['CPPPATH'] = [RTT_ROOT + '/include']
group['CPPDEFINES'] = ''
group['LINKFLAGS'] = ''
# add group to project list
projects.append(group)
env.Append(CPPPATH = group['CPPPATH'])
obj = env.Object(group['src'])
Return('obj')
Return('group')