SConscript 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Import('env')
  2. Import('rtconfig')
  3. Import('RTT_ROOT')
  4. Import('projects')
  5. common_src = Split("""
  6. common/blit.c
  7. common/color.c
  8. common/region.c
  9. common/rtgui_object.c
  10. common/rtgui_system.c
  11. common/rtgui_theme.c
  12. common/rtgui_xml.c
  13. common/dc.c
  14. common/dc_hw.c
  15. common/dc_buffer.c
  16. common/dc_client.c
  17. common/filerw.c
  18. common/image.c
  19. common/image_xpm.c
  20. common/image_hdc.c
  21. common/font.c
  22. common/font_bmp.c
  23. common/font_hz_file.c
  24. common/font_hz_bmp.c
  25. common/asc12font.c
  26. common/asc16font.c
  27. common/hz12font.c
  28. common/hz16font.c
  29. """)
  30. server_src = Split("""
  31. server/driver.c
  32. server/mouse.c
  33. server/panel.c
  34. server/server.c
  35. server/topwin.c
  36. """)
  37. widgets_src = Split("""
  38. widgets/box.c
  39. widgets/button.c
  40. widgets/checkbox.c
  41. widgets/container.c
  42. widgets/iconbox.c
  43. widgets/label.c
  44. widgets/progressbar.c
  45. widgets/radiobox.c
  46. widgets/slider.c
  47. widgets/scrollbar.c
  48. widgets/staticline.c
  49. widgets/textbox.c
  50. widgets/listbox.c
  51. widgets/title.c
  52. widgets/toplevel.c
  53. widgets/view.c
  54. widgets/list_view.c
  55. widgets/about_view.c
  56. widgets/filelist_view.c
  57. widgets/widget.c
  58. widgets/window.c
  59. widgets/workbench.c
  60. """)
  61. # The set of source files associated with this SConscript file.
  62. src_local = common_src + server_src + widgets_src
  63. path = [RTT_ROOT + '/components/rtgui/include',
  64. RTT_ROOT + '/components/rgtui/common',
  65. RTT_ROOT + '/components/rtgui/server',
  66. RTT_ROOT + '/components/rtgui/widgets']
  67. # group definitions
  68. group = {}
  69. group['name'] = 'GUI'
  70. group['src'] = File(src_local)
  71. group['CCFLAGS'] = ''
  72. group['CPPPATH'] = path
  73. group['CPPDEFINES'] = ''
  74. group['LINKFLAGS'] = ''
  75. # add group to project list
  76. projects.append(group)
  77. env.Append(CCFLAGS = group['CCFLAGS'])
  78. env.Append(CPPPATH = group['CPPPATH'])
  79. env.Append(CPPDEFINES = group['CPPDEFINES'])
  80. env.Append(LINKFLAGS = group['LINKFLAGS'])
  81. objs = env.Object(group['src'])
  82. Return('objs')