SConscript 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #-*- encoding: utf-8 -*-
  2. #-------------------------------------------------------------------------------
  3. # RT-Thread RuiChing
  4. #
  5. # COPYRIGHT (C) 2024-2025 Shanghai Real-Thread Electronic Technology Co., Ltd.
  6. # All rights reserved.
  7. #
  8. # The license and distribution terms for this file may be
  9. # found in the file LICENSE in this distribution.
  10. #-------------------------------------------------------------------------------
  11. import os
  12. from building import *
  13. Import('RTT_ROOT')
  14. Import('rtconfig')
  15. #-------------------------------------------------------------------------------
  16. # System variables
  17. #-------------------------------------------------------------------------------
  18. objs = []
  19. root = GetCurrentDir()
  20. #-------------------------------------------------------------------------------
  21. # Main target
  22. #-------------------------------------------------------------------------------
  23. list = os.listdir(root)
  24. for d in list:
  25. path = os.path.join(root, d)
  26. if os.path.isfile(os.path.join(path, 'SConscript')):
  27. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  28. Return("objs")
  29. #-------------------------------------------------------------------------------
  30. # End
  31. #-------------------------------------------------------------------------------