4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 19:53:29 +08:00
2021-10-10 12:18:10 +08:00

15 lines
299 B
Python

# RT-Thread scons bridge
import os
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
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')