SConscript 469 B

123456789101112131415161718192021
  1. import os
  2. from building import *
  3. cwd = GetCurrentDir()
  4. # add general drivers
  5. src = []
  6. path = []
  7. if GetDepend(['RT_USING_CHERRYUSB']):
  8. src += Glob('cherryusb/cherryusb.c')
  9. path += [cwd + '/cherryusb']
  10. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  11. list = os.listdir(cwd)
  12. for item in list:
  13. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  14. group = group + SConscript(os.path.join(item, 'SConscript'))
  15. Return('group')