SConscript 633 B

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