summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-18 15:27:13 +0000
committerbernard.xiong <[email protected]>2010-04-18 15:27:13 +0000
commit5562ddf77a068f43cd94390f914afb72dc5e2142 (patch)
treea2ce0eced1baf167aa007dbef8c7b63ac1333e9c /components/net
parentd307a74a60ef94b80f2e1b66f83232171c5cb1b0 (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/net')
-rw-r--r--components/net/lwip/SConscript28
1 files changed, 25 insertions, 3 deletions
diff --git a/components/net/lwip/SConscript b/components/net/lwip/SConscript
index de08af6688..e58ee3bf42 100644
--- a/components/net/lwip/SConscript
+++ b/components/net/lwip/SConscript
@@ -1,6 +1,7 @@
Import('env')
Import('rtconfig')
Import('RTT_ROOT')
+Import('projects')
src_local = Split("""
src/api/api_lib.c
@@ -60,10 +61,31 @@ src/netif/ppp/vj.c
""")
# The set of source files associated with this SConscript file.
-path = [RTT_ROOT + '/net/lwip/src', RTT_ROOT + '/net/lwip/src/include', RTT_ROOT + '/net/lwip/src/include/ipv4', RTT_ROOT + '/net/lwip/src/arch/include', RTT_ROOT + '/net/lwip/src/include/netif', RTT_ROOT + '/net/lwip/src/netif/ppp']
+path = [RTT_ROOT + '/components/net/lwip/src',
+ RTT_ROOT + '/components/net/lwip/src/include',
+ RTT_ROOT + '/components/net/lwip/src/include/ipv4',
+ RTT_ROOT + '/components/net/lwip/src/arch/include',
+ RTT_ROOT + '/components/net/lwip/src/include/netif',
+ RTT_ROOT + '/components/net/lwip/src/netif/ppp']
-env.Append(CPPPATH = path)
+# group definitions
+print 'LwIP group=='
+group = {}
+group['name'] = 'LwIP'
+group['src'] = File(src_local)
+group['CCFLAGS'] = ''
+group['CPPPATH'] = path
+group['CPPDEFINES'] = ''
+group['LINKFLAGS'] = ''
-obj = env.Object(src_local)
+# 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'])
+
+obj = env.Object(group['src'])
Return('obj')