mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
28 lines
693 B
Python
28 lines
693 B
Python
from building import *
|
|
import os
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
src = Split('''
|
|
src/dfs.c
|
|
src/dfs_file.c
|
|
src/dfs_fs.c
|
|
src/dfs_cli.c
|
|
''')
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + "/include"]
|
|
|
|
if GetDepend('LPKG_USING_DFS') and GetDepend('DFS_USING_POSIX'):
|
|
src += ['src/dfs_posix.c']
|
|
|
|
group = DefineGroup('Filesystem', src, depend = ['LPKG_USING_DFS'], CPPPATH = CPPPATH)
|
|
|
|
if GetDepend('LPKG_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'))
|
|
|
|
Return('group')
|