SConscript 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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_hz_file.c
  23. common/font_hz_bmp.c
  24. common/asc12font.c
  25. common/asc16font.c
  26. common/hz12font.c
  27. common/hz16font.c
  28. """)
  29. server_src = Split("""
  30. server/driver.c
  31. server/mouse.c
  32. server/panel.c
  33. server/server.c
  34. server/topwin.c
  35. """)
  36. widgets_src = Split("""
  37. widgets/box.c
  38. widgets/button.c
  39. widgets/checkbox.c
  40. widgets/container.c
  41. widgets/iconbox.c
  42. widgets/label.c
  43. widgets/progressbar.c
  44. widgets/radiobox.c
  45. widgets/slider.c
  46. widgets/scrollbar.c
  47. widgets/staticline.c
  48. widgets/textbox.c
  49. widgets/listbox.c
  50. widgets/title.c
  51. widgets/toplevel.c
  52. widgets/view.c
  53. widgets/list_view.c
  54. widgets/about_view.c
  55. widgets/filelist_view.c
  56. widgets/widget.c
  57. widgets/window.c
  58. widgets/workbench.c
  59. """)
  60. # The set of source files associated with this SConscript file.
  61. src_local = common_src + server_src + widgets_src
  62. path = [RTT_ROOT + '/components/rtgui/include',
  63. RTT_ROOT + '/components/rgtui/common',
  64. RTT_ROOT + '/components/rtgui/server',
  65. RTT_ROOT + '/components/rtgui/widgets']
  66. # group definitions
  67. group = {}
  68. group['name'] = 'GUI'
  69. group['src'] = File(src_local)
  70. group['CCFLAGS'] = ''
  71. group['CPPPATH'] = path
  72. group['CPPDEFINES'] = ''
  73. group['LINKFLAGS'] = ''
  74. # add group to project list
  75. projects.append(group)
  76. env.Append(CCFLAGS = group['CCFLAGS'])
  77. env.Append(CPPPATH = group['CPPPATH'])
  78. env.Append(CPPDEFINES = group['CPPDEFINES'])
  79. env.Append(LINKFLAGS = group['LINKFLAGS'])
  80. objs = env.Object(group['src'])
  81. Return('objs')