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 | |
| parent | 0d5451c28f3f9efae28b235d8c80988ffd58a8c8 (diff) | |
update GUI demo building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@715 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | examples/gui/SConscript | 24 | ||||
| -rw-r--r-- | examples/gui/gui_init.c | 1 |
2 files changed, 21 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')
diff --git a/examples/gui/gui_init.c b/examples/gui/gui_init.c index 3761e7a8be..89ca2ef028 100644 --- a/examples/gui/gui_init.c +++ b/examples/gui/gui_init.c @@ -1,5 +1,6 @@ #include <rtgui/rtgui.h>
#include <rtgui/rtgui_server.h>
+#include <rtgui/rtgui_system.h>
extern void rt_hw_lcd_init(void);
extern void rt_hw_key_init(void);
|
