SConscript 374 B

123456789101112131415161718
  1. # RT-Thread building script for bridge
  2. import os
  3. from building import *
  4. cwd = GetCurrentDir()
  5. objs = []
  6. list = os.listdir(cwd)
  7. if not GetDepend('RT_USING_SUNXI_HAL'):
  8. Return('objs')
  9. for d in list:
  10. path = os.path.join(cwd, d)
  11. if os.path.isfile(os.path.join(path, 'SConscript')):
  12. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  13. Return('objs')