SConscript 360 B

12345678910111213141516
  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 GetDepend('RT_USING_FDT'):
  8. for d in list:
  9. path = os.path.join(cwd, d)
  10. if os.path.isfile(os.path.join(path, 'SConscript')):
  11. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  12. Return('objs')