1
0

SConscript 722 B

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