SConscript 535 B

123456789101112131415161718
  1. from building import *
  2. # The set of source files associated with this SConscript file.
  3. src = Glob('src/*.c')
  4. cwd = GetCurrentDir()
  5. CPPPATH = [cwd + "/include"]
  6. group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS'], CPPPATH = CPPPATH)
  7. if GetDepend('RT_USING_DFS'):
  8. # search in the file system implementation
  9. list = os.listdir(cwd)
  10. for item in list:
  11. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  12. group = group + SConscript(os.path.join(item, 'SConscript'))
  13. Return('group')