rt-thread-official/bsp/amebaz/SConscript

15 lines
297 B
Python
Raw Permalink Normal View History

2018-06-14 10:34:31 +08:00
# for module compiling
from building import *
2018-06-14 10:34:31 +08:00
import os
cwd = GetCurrentDir()
2018-06-14 10:34:31 +08:00
objs = []
list = os.listdir(cwd)
2018-06-14 10:34:31 +08:00
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
Return('objs')