rt-thread/bsp/qemu-virt64-riscv/applications/SConscript

18 lines
380 B
Python
Raw Normal View History

from building import *
cwd = GetCurrentDir()
2023-01-09 10:14:23 +08:00
src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd]
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
objs = [group]
list = os.listdir(cwd)
for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
objs = objs + SConscript(os.path.join(item, 'SConscript'))
Return('objs')