2009-12-27 21:07:14 +08:00
|
|
|
Import('env')
|
|
|
|
Import('rtconfig')
|
|
|
|
Import('RTT_ROOT')
|
2010-04-19 12:43:15 +08:00
|
|
|
Import('projects')
|
2009-12-27 21:07:14 +08:00
|
|
|
|
|
|
|
common_src = Split("""
|
|
|
|
common/rtgui_object.c
|
|
|
|
common/rtgui_system.c
|
|
|
|
common/rtgui_theme.c
|
|
|
|
common/asc12font.c
|
|
|
|
common/asc16font.c
|
|
|
|
common/color.c
|
|
|
|
common/dc.c
|
|
|
|
common/dc_buffer.c
|
|
|
|
common/dc_hw.c
|
|
|
|
common/font.c
|
|
|
|
common/font_hz_file.c
|
|
|
|
common/filerw.c
|
|
|
|
common/image.c
|
|
|
|
common/image_xpm.c
|
|
|
|
common/image_hdc.c
|
|
|
|
common/region.c
|
|
|
|
common/hz12font.c
|
|
|
|
common/hz16font.c
|
2010-02-04 22:46:09 +08:00
|
|
|
common/font_hz_bmp.c
|
2009-12-27 21:07:14 +08:00
|
|
|
""")
|
|
|
|
|
|
|
|
server_src = Split("""
|
|
|
|
server/driver.c
|
|
|
|
server/mouse.c
|
|
|
|
server/panel.c
|
|
|
|
server/server.c
|
|
|
|
server/topwin.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
widgets_src = Split("""
|
|
|
|
widgets/box.c
|
|
|
|
widgets/button.c
|
2010-01-08 08:02:24 +08:00
|
|
|
widgets/checkbox.c
|
2009-12-27 21:07:14 +08:00
|
|
|
widgets/container.c
|
|
|
|
widgets/iconbox.c
|
|
|
|
widgets/label.c
|
2010-01-08 08:02:24 +08:00
|
|
|
widgets/progressbar.c
|
2010-01-27 17:40:02 +08:00
|
|
|
widgets/radiobox.c
|
2010-01-08 08:02:24 +08:00
|
|
|
widgets/slider.c
|
|
|
|
widgets/staticline.c
|
2009-12-27 21:07:14 +08:00
|
|
|
widgets/textbox.c
|
|
|
|
widgets/title.c
|
|
|
|
widgets/toplevel.c
|
|
|
|
widgets/view.c
|
2010-01-27 09:26:12 +08:00
|
|
|
widgets/list_view.c
|
|
|
|
widgets/about_view.c
|
|
|
|
widgets/filelist_view.c
|
2009-12-27 21:07:14 +08:00
|
|
|
widgets/widget.c
|
|
|
|
widgets/window.c
|
|
|
|
widgets/workbench.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
src_local = common_src + server_src + widgets_src
|
|
|
|
|
2010-04-19 12:43:15 +08:00
|
|
|
path = [RTT_ROOT + '/components/rtgui/include',
|
|
|
|
RTT_ROOT + '/components/rgtui/common',
|
|
|
|
RTT_ROOT + '/components/rtgui/server',
|
|
|
|
RTT_ROOT + '/components/rtgui/widgets']
|
2009-12-27 21:07:14 +08:00
|
|
|
|
2010-04-19 12:43:15 +08:00
|
|
|
# group definitions
|
|
|
|
group = {}
|
|
|
|
group['name'] = 'GUI'
|
|
|
|
group['src'] = File(src_local)
|
|
|
|
group['CCFLAGS'] = ''
|
|
|
|
group['CPPPATH'] = path
|
|
|
|
group['CPPDEFINES'] = ''
|
|
|
|
group['LINKFLAGS'] = ''
|
2009-12-27 21:07:14 +08:00
|
|
|
|
2010-04-19 12:43:15 +08:00
|
|
|
# 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')
|