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