SConscript 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #-*- encoding: utf-8 -*-
  2. #---------------------------------------------------------------------------------
  3. # SConscript
  4. # Copyright (c) Shanghai Real-Thread Electronic Technology Co., Ltd.
  5. #---------------------------------------------------------------------------------
  6. import os
  7. from building import *
  8. Import('RTT_ROOT')
  9. Import('rtconfig')
  10. #---------------------------------------------------------------------------------
  11. # System variables
  12. #---------------------------------------------------------------------------------
  13. objs = []
  14. root = GetCurrentDir()
  15. #---------------------------------------------------------------------------------
  16. # Main target
  17. #---------------------------------------------------------------------------------
  18. list = os.listdir(root)
  19. for d in list:
  20. path = os.path.join(root, d)
  21. if os.path.isfile(os.path.join(path, 'SConscript')):
  22. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  23. Return("objs")
  24. #---------------------------------------------------------------------------------
  25. # End
  26. #---------------------------------------------------------------------------------