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("""
|
2010-05-08 23:50:45 +08:00
|
|
|
common/color.c
|
|
|
|
common/region.c
|
2009-12-27 21:07:14 +08:00
|
|
|
common/rtgui_object.c
|
|
|
|
common/rtgui_system.c
|
|
|
|
common/rtgui_theme.c
|
2010-05-08 23:50:45 +08:00
|
|
|
common/rtgui_xml.c
|
2009-12-27 21:07:14 +08:00
|
|
|
common/dc.c
|
|
|
|
common/dc_buffer.c
|
|
|
|
common/dc_hw.c
|
|
|
|
common/filerw.c
|
|
|
|
common/image.c
|
|
|
|
common/image_xpm.c
|
|
|
|
common/image_hdc.c
|
2010-05-08 23:50:45 +08:00
|
|
|
common/font.c
|
|
|
|
common/font_hz_file.c
|
|
|
|
common/font_hz_bmp.c
|
|
|
|
common/asc12font.c
|
|
|
|
common/asc16font.c
|
2009-12-27 21:07:14 +08:00
|
|
|
common/hz12font.c
|
|
|
|
common/hz16font.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
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
|
2010-05-05 22:28:10 +08:00
|
|
|
widgets/listbox.c
|
2009-12-27 21:07:14 +08:00
|
|
|
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')
|