SConscript 1.7 KB

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