1from building import * 2import rtconfig 3 4cwd = GetCurrentDir() 5objs = [] 6list = os.listdir(cwd) 7 8for d in list: 9 path = os.path.join(cwd, d) 10 if os.path.isfile(os.path.join(path, 'SConscript')): 11 objs = objs + SConscript(os.path.join(d, 'SConscript')) 12 13if rtconfig.ASAN == True: 14 LIBS = ['asan', 'ubsan'] 15 group = DefineGroup('asan', [], depend = [''], LIBS=LIBS) 16 objs += group 17 18Return('objs') 19