SConscript 485 B

12345678910111213141516171819202122
  1. import rtconfig
  2. from building import *
  3. # get current directory
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = Split("""
  7. """)
  8. # The set of source files associated with this SConscript file.
  9. if GetDepend(['BSP_USING_USBD']):
  10. # src += ['src/ht32_usbd_core.c']
  11. # src += ['src/ht32_usbd_int.c']
  12. src += ['src/usbd_code.c']
  13. src += ['src/usb_port.c']
  14. path = [cwd + '/inc']
  15. group = DefineGroup('usbd_library', src, depend = [''], CPPPATH = path)
  16. Return('group')