1from building import * 2 3cwd = GetCurrentDir() 4src = Glob('*.c') + Glob('*.cpp') 5group = [] 6inc = [cwd] 7 8list = os.listdir(cwd) 9for d in list: 10 path = os.path.join(cwd, d) 11 if os.path.isfile(os.path.join(path, 'SConscript')): 12 group = group + SConscript(os.path.join(d, 'SConscript')) 13 14group = group + DefineGroup('RTduino', src, depend = ['PKG_USING_RTDUINO'], CPPPATH = inc) 15 16Return('group')