1# RT-Thread building script for bridge 2 3import os 4from building import * 5 6cwd = GetCurrentDir() 7objs = [] 8list = os.listdir(cwd) 9 10for d in list: 11 path = os.path.join(cwd, d) 12 if os.path.isfile(os.path.join(path, 'SConscript')): 13 objs = objs + SConscript(os.path.join(d, 'SConscript')) 14 15Return('objs') 16