update GUI demo building script.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@715 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2010-05-16 02:33:57 +00:00
parent 0d5451c28f
commit 72139e8441
2 changed files with 21 additions and 4 deletions

View File

@ -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')

View File

@ -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);