SConscript 415 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(cwd, '..', d, 'SConscript')
  7. if os.path.isfile(path):
  8. objs = objs + SConscript(path)
  9. for d in os.listdir(cwd):
  10. p = os.path.join(cwd, d, 'SConscript');
  11. if os.path.isfile(p):
  12. objs = objs + SConscript(p)
  13. Return('objs')