SConscript 315 B

123456789101112131415161718
  1. import os
  2. import rtconfig
  3. from building import *
  4. Import('SDK_LIB')
  5. cwd = GetCurrentDir()
  6. # add general drivers
  7. src = []
  8. path = [cwd]
  9. if GetDepend(['RT_USING_CHERRYUSB']):
  10. src += Glob('cherryusb_port.c')
  11. group = DefineGroup('Platform', src, depend = ['RT_USING_CHERRYUSB'], CPPPATH = path)
  12. Return('group')