2012-07-26 14:36:49 +08:00
|
|
|
import os
|
2012-04-18 23:06:12 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
common_src = Split("""
|
|
|
|
common/blit.c
|
|
|
|
common/color.c
|
|
|
|
common/region.c
|
|
|
|
common/rtgui_object.c
|
|
|
|
common/rtgui_system.c
|
|
|
|
common/rtgui_theme.c
|
|
|
|
common/rtgui_xml.c
|
2012-07-20 20:37:56 +08:00
|
|
|
common/rtgui_app.c
|
2012-04-18 23:06:12 +08:00
|
|
|
common/dc.c
|
|
|
|
common/dc_hw.c
|
|
|
|
common/dc_buffer.c
|
|
|
|
common/dc_client.c
|
|
|
|
common/filerw.c
|
|
|
|
common/image.c
|
|
|
|
common/image_xpm.c
|
|
|
|
common/image_hdc.c
|
|
|
|
common/image_bmp.c
|
|
|
|
common/image_png.c
|
|
|
|
common/image_jpg.c
|
|
|
|
common/image_container.c
|
|
|
|
common/font.c
|
|
|
|
common/font_bmp.c
|
|
|
|
common/font_hz_file.c
|
|
|
|
common/font_hz_bmp.c
|
|
|
|
common/asc12font.c
|
|
|
|
common/asc16font.c
|
|
|
|
common/hz12font.c
|
|
|
|
common/hz16font.c
|
|
|
|
common/framebuffer_driver.c
|
|
|
|
common/pixel_driver.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
server_src = Split("""
|
|
|
|
server/driver.c
|
|
|
|
server/mouse.c
|
|
|
|
server/server.c
|
|
|
|
server/topwin.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
widgets_src = Split("""
|
|
|
|
widgets/box.c
|
|
|
|
widgets/button.c
|
|
|
|
widgets/checkbox.c
|
|
|
|
widgets/combobox.c
|
|
|
|
widgets/iconbox.c
|
|
|
|
widgets/label.c
|
|
|
|
widgets/textview.c
|
|
|
|
widgets/listctrl.c
|
|
|
|
widgets/menu.c
|
|
|
|
widgets/progressbar.c
|
|
|
|
widgets/radiobox.c
|
|
|
|
widgets/slider.c
|
|
|
|
widgets/scrollbar.c
|
|
|
|
widgets/staticline.c
|
|
|
|
widgets/textbox.c
|
|
|
|
widgets/listbox.c
|
|
|
|
widgets/title.c
|
|
|
|
widgets/toplevel.c
|
|
|
|
widgets/notebook.c
|
|
|
|
widgets/container.c
|
|
|
|
widgets/list_view.c
|
|
|
|
widgets/filelist_view.c
|
|
|
|
widgets/widget.c
|
|
|
|
widgets/window.c
|
2012-07-20 20:37:56 +08:00
|
|
|
widgets/panel.c
|
2012-04-18 23:06:12 +08:00
|
|
|
""")
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
src = common_src + server_src + widgets_src
|
|
|
|
|
2012-07-26 14:36:49 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
dirs = ['include', 'common', 'server', 'widgets']
|
|
|
|
path = [os.path.join(cwd, i) for i in dirs]
|
|
|
|
|
2012-04-18 23:06:12 +08:00
|
|
|
group = DefineGroup('RTGUI', src, depend = ['RT_USING_RTGUI'], CPPPATH = path)
|
|
|
|
|
|
|
|
Return('group')
|