summaryrefslogtreecommitdiff
path: root/examples/gui
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-11-20 12:31:00 +0000
committer[email protected] <[email protected]>2010-11-20 12:31:00 +0000
commit10732a76e9a3bf1ead47cf9848c6838236e4e343 (patch)
tree7475b1f6ff77e80bd357fc551de80565c9486080 /examples/gui
parent2fce1a91e2577f06b68151dffa15558750346d02 (diff)
cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/SConscript23
1 files changed, 3 insertions, 20 deletions
diff --git a/examples/gui/SConscript b/examples/gui/SConscript
index babecec5b7..39c967123d 100644
--- a/examples/gui/SConscript
+++ b/examples/gui/SConscript
@@ -1,5 +1,4 @@
-Import('env')
-Import('projects')
+from building import *
src = Split("""
demo_view_dc_buffer.c
@@ -32,22 +31,6 @@ gui_init.c
mywidget.c
""")
-group = {}
-group['name'] = 'GUI demo'
-group['src'] = File(src)
-group['CCFLAGS'] = ''
-group['CPPPATH'] = ['']
-group['CPPDEFINES'] = ''
-group['LINKFLAGS'] = ''
+group = DefineGroup('gui_examples', src, depend = ['RTGUI_USING_EXAMPLES'])
-# 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')