SConscript 619 B

123456789101112131415161718192021222324252627282930
  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. CPPDEFINES = ['STM32L4R9xx']
  19. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  20. Return('group')