diff options
| author | bernard.xiong <[email protected]> | 2010-05-16 02:33:57 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-05-16 02:33:57 +0000 |
| commit | 72139e8441d7e484018a2b85802d3ca866b604cd (patch) | |
| tree | 4c4c5bcf65d1c3f09fb7d9a7b74791b79f9e4a39 /examples/gui/SConscript | |
| parent | 0d5451c28f3f9efae28b235d8c80988ffd58a8c8 (diff) | |
update GUI demo building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@715 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/gui/SConscript')
| -rw-r--r-- | examples/gui/SConscript | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/examples/gui/SConscript b/examples/gui/SConscript index b1ec96f581..435bcf01d4 100644 --- a/examples/gui/SConscript +++ b/examples/gui/SConscript @@ -1,6 +1,7 @@ Import('env')
+Import('projects')
-src_local = Split("""
+src = Split("""
demo_view_dc_buffer.c
demo_fnview.c
demo_listview.c
@@ -27,7 +28,22 @@ gui_init.c mywidget.c
""")
-# The set of source files associated with this SConscript file.
-obj = env.Object(src_local)
+group = {}
+group['name'] = 'GUI demo'
+group['src'] = File(src)
+group['CCFLAGS'] = ''
+group['CPPPATH'] = ['']
+group['CPPDEFINES'] = ''
+group['LINKFLAGS'] = ''
-Return('obj')
+# 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')
|
