SConscript 568 B

12345678910111213141516171819202122
  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. group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS'], CPPPATH = CPPPATH)
  11. if GetDepend('RT_USING_DFS'):
  12. # search in the file system implementation
  13. list = os.listdir(cwd)
  14. for item in list:
  15. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  16. group = group + SConscript(os.path.join(item, 'SConscript'))
  17. Return('group')