SConscript 661 字节
Newer Older
M
Ming, Bai 已提交
1 2 3
from building import *

# The set of source files associated with this SConscript file.
B
bernard 已提交
4 5 6 7 8 9
src = Split('''
src/dfs.c
src/dfs_file.c
src/dfs_fs.c
src/dfs_posix.c
''')
10 11 12
cwd = GetCurrentDir()
CPPPATH = [cwd + "/include"]

B
bernard 已提交
13 14 15
if GetDepend('RT_USING_DFS_NET'):
    src += ['src/poll.c', 'src/select.c']

16 17 18 19 20
group = DefineGroup('Filesystem', src, depend = ['RT_USING_DFS'], CPPPATH = CPPPATH)

if GetDepend('RT_USING_DFS'):
    # search in the file system implementation
    list = os.listdir(cwd)
B
bernard 已提交
21

22 23 24
    for item in list:
        if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
            group = group + SConscript(os.path.join(item, 'SConscript'))
M
Ming, Bai 已提交
25 26

Return('group')