SConscript 417 B

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