import rtconfig from building import * objs = [] cwd = GetCurrentDir() CPPPATH = [cwd, str(Dir('#'))] src = Glob('*.cpp') src += Glob('*.c') objs = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) 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')