SConscript 415 B

12345678910111213141516
  1. # for module compiling
  2. import os
  3. Import('RTT_ROOT')
  4. Import('remove_components')
  5. objs = []
  6. list = os.listdir(os.path.join(RTT_ROOT, 'components'))
  7. for d in list:
  8. if d in remove_components:
  9. continue
  10. path = os.path.join(RTT_ROOT, 'components', d)
  11. if os.path.isfile(os.path.join(path, 'SConscript')):
  12. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  13. Return('objs')