SConscript 330 B

123456789101112131415
  1. from building import *
  2. cwd = GetCurrentDir()
  3. list = os.listdir(cwd)
  4. objs = []
  5. if not GetDepend(['RT_USING_ADT']):
  6. Return('objs')
  7. for d in list:
  8. path = os.path.join(cwd, d)
  9. if os.path.isfile(os.path.join(path, 'SConscript')):
  10. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  11. Return('objs')