SConscript 462 B

1234567891011121314151617
  1. from building import *
  2. cwd = GetCurrentDir()
  3. objs = []
  4. for d in os.listdir(os.path.join(cwd, '..')):
  5. if d not in ('M0', 'M4'):
  6. path = os.path.join('..', d, 'SConscript')
  7. if os.path.isfile(os.path.join(cwd, path)):
  8. objs = objs + SConscript(os.path.join(cwd, path))
  9. for d in os.listdir(cwd):
  10. p = os.path.join(d, 'SConscript');
  11. if os.path.isfile(os.path.join(cwd, p)):
  12. objs = objs + SConscript(p)
  13. Return('objs')