SConscript 578 B

1234567891011121314151617181920212223
  1. from building import *
  2. import os
  3. # The set of source files associated with this SConscript file.
  4. src = Split('''
  5. src/dfs.c
  6. src/dfs_file.c
  7. src/dfs_fs.c
  8. ''')
  9. cwd = GetCurrentDir()
  10. CPPPATH = [cwd + "/include"]
  11. group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS'], CPPPATH = CPPPATH)
  12. if GetDepend('RT_USING_DFS'):
  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')