SConscript 334 B

12345678910111213141516
  1. # RT-Thread building script for component
  2. from building import *
  3. cwd = GetCurrentDir()
  4. # build for sub-directory
  5. list = os.listdir(cwd)
  6. objs = []
  7. for d in list:
  8. path = os.path.join(cwd, d)
  9. if os.path.isfile(os.path.join(path, 'SConscript')):
  10. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  11. Return('objs')