diff options
| author | bernard.xiong <[email protected]> | 2010-04-18 15:27:13 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-18 15:27:13 +0000 |
| commit | 5562ddf77a068f43cd94390f914afb72dc5e2142 (patch) | |
| tree | a2ce0eced1baf167aa007dbef8c7b63ac1333e9c /components/finsh/SConscript | |
| parent | d307a74a60ef94b80f2e1b66f83232171c5cb1b0 (diff) | |
add group script support.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@641 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/finsh/SConscript')
| -rw-r--r-- | components/finsh/SConscript | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/components/finsh/SConscript b/components/finsh/SConscript index 0a638c10aa..5b6e9b1278 100644 --- a/components/finsh/SConscript +++ b/components/finsh/SConscript @@ -1,10 +1,28 @@ Import('env')
+Import('projects')
Import('RTT_ROOT')
+Import('rtconfig')
-# The set of source files associated with this SConscript file.
-src_local = Glob('*.c')
+# group definitions
+group = {}
+group['name'] = 'finsh'
+group['src'] = Glob('*.c')
+group['CCFLAGS'] = ''
+group['CPPPATH'] = [RTT_ROOT + '/components/finsh']
+group['CPPDEFINES'] = ''
+if rtconfig.CROSS_TOOL == 'keil':
+ group['LINKFLAGS'] = ' --keep __fsym_* --keep __vsym_*'
+else:
+ group['LINKFLAGS'] = ''
-env.Append(CPPPATH = RTT_ROOT + '/finsh')
+# add group to project list
+projects.append(group)
-obj = env.Object(src_local)
-Return('obj')
+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')
|
