SConscript 565 B

1234567891011121314151617181920212223242526272829
  1. from building import *
  2. cwd = GetCurrentDir()
  3. # add general drivers
  4. src = Split('''
  5. board.c
  6. CubeMX_Config/Src/stm32l4xx_hal_msp.c
  7. ''')
  8. if GetDepend(['BSP_USING_DSI']):
  9. src += Glob('ports/drv_lcd_dsi.c')
  10. if GetDepend(['BSP_USING_SRAM']):
  11. src += Glob('ports/drv_sram.c')
  12. if GetDepend(['BSP_USING_TOUCH']):
  13. src += Glob('ports/drv_touch.c')
  14. src += Glob('ports/drv_touch_ft.c')
  15. path = [cwd]
  16. path += [cwd + '/CubeMX_Config/Inc']
  17. path += [cwd + '/ports/include']
  18. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  19. Return('group')