diff options
| author | [email protected] <[email protected]> | 2010-11-20 12:31:00 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2010-11-20 12:31:00 +0000 |
| commit | 10732a76e9a3bf1ead47cf9848c6838236e4e343 (patch) | |
| tree | 7475b1f6ff77e80bd357fc551de80565c9486080 /components/pthreads | |
| parent | 2fce1a91e2577f06b68151dffa15558750346d02 (diff) | |
cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads')
| -rw-r--r-- | components/pthreads/SConscript | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/components/pthreads/SConscript b/components/pthreads/SConscript index 8dc41edc0d..9fe796d225 100644 --- a/components/pthreads/SConscript +++ b/components/pthreads/SConscript @@ -1,26 +1,8 @@ -Import('env')
-Import('projects')
Import('RTT_ROOT')
-Import('rtconfig')
+from building import *
-# group definitions
-group = {}
-group['name'] = 'pthreads'
-group['src'] = Glob('*.c')
-group['depend'] = 'RT_USING_PTHREAD'
-group['CCFLAGS'] = ''
-group['CPPPATH'] = [RTT_ROOT + '/components/pthreads']
-group['CPPDEFINES'] = ''
-group['LINKFLAGS'] = ''
+src = Glob('*.c')
+CPPPATH = [RTT_ROOT + '/components/pthreads']
+group = DefineGroup('pthreads', src, depend = ['RT_USING_PTHREADS'], CPPPATH = CPPPATH)
-# add group to project list
-projects.append(group)
-
-env.Append(CCFLAGS = group['CCFLAGS'])
-env.Append(CPPPATH = group['CPPPATH'])
-env.Append(CPPDEFINES = group['CPPDEFINES'])
-env.Append(LINKFLAGS = group['LINKFLAGS'])
-
-objs = env.Object(group['src'])
-
-Return('objs')
+Return('group')
|
