SConscript 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Import('env')
  2. Import('rtconfig')
  3. Import('RTT_ROOT')
  4. Import('projects')
  5. common_src = Split("""
  6. common/rtgui_object.c
  7. common/rtgui_system.c
  8. common/rtgui_theme.c
  9. common/asc12font.c
  10. common/asc16font.c
  11. common/color.c
  12. common/dc.c
  13. common/dc_buffer.c
  14. common/dc_hw.c
  15. common/font.c
  16. common/font_hz_file.c
  17. common/filerw.c
  18. common/image.c
  19. common/image_xpm.c
  20. common/image_hdc.c
  21. common/region.c
  22. common/hz12font.c
  23. common/hz16font.c
  24. common/font_hz_bmp.c
  25. """)
  26. server_src = Split("""
  27. server/driver.c
  28. server/mouse.c
  29. server/panel.c
  30. server/server.c
  31. server/topwin.c
  32. """)
  33. widgets_src = Split("""
  34. widgets/box.c
  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/title.c
  47. widgets/toplevel.c
  48. widgets/view.c
  49. widgets/list_view.c
  50. widgets/about_view.c
  51. widgets/filelist_view.c
  52. widgets/widget.c
  53. widgets/window.c
  54. widgets/workbench.c
  55. """)
  56. # The set of source files associated with this SConscript file.
  57. src_local = common_src + server_src + widgets_src
  58. path = [RTT_ROOT + '/components/rtgui/include',
  59. RTT_ROOT + '/components/rgtui/common',
  60. RTT_ROOT + '/components/rtgui/server',
  61. RTT_ROOT + '/components/rtgui/widgets']
  62. # group definitions
  63. group = {}
  64. group['name'] = 'GUI'
  65. group['src'] = File(src_local)
  66. group['CCFLAGS'] = ''
  67. group['CPPPATH'] = path
  68. group['CPPDEFINES'] = ''
  69. group['LINKFLAGS'] = ''
  70. # add group to project list
  71. projects.append(group)
  72. env.Append(CCFLAGS = group['CCFLAGS'])
  73. env.Append(CPPPATH = group['CPPPATH'])
  74. env.Append(CPPDEFINES = group['CPPDEFINES'])
  75. env.Append(LINKFLAGS = group['LINKFLAGS'])
  76. objs = env.Object(group['src'])
  77. Return('objs')