rt-thread-official/components/dfs/SConscript

27 lines
643 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
from building import *
2021-11-15 02:04:03 +08:00
import os
2013-01-08 22:40:58 +08:00
# The set of source files associated with this SConscript file.
src = Split('''
src/dfs.c
src/dfs_file.c
src/dfs_fs.c
''')
cwd = GetCurrentDir()
CPPPATH = [cwd + "/include"]
2021-11-16 00:22:49 +08:00
if GetDepend('DFS_USING_POSIX'):
src += ['src/dfs_posix.c']
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)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript'))
2013-01-08 22:40:58 +08:00
Return('group')