SConscript 475 B

1234567891011121314151617181920
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. CPPPATH = [cwd]
  6. objs = []
  7. list = os.listdir(cwd)
  8. for d in list:
  9. path = os.path.join(cwd, d)
  10. if os.path.isfile(os.path.join(path, 'SConscript')):
  11. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  12. # The set of source files associated with this SConscript file.
  13. src = Glob('*.c')
  14. group = DefineGroup('platform', src, depend = [''], CPPPATH = CPPPATH)
  15. Return('group')