SConscript 530 B

123456789101112131415161718192021222324252627282930
  1. Import('RTT_ROOT')
  2. Import('rtconfig')
  3. from building import *
  4. cwd = GetCurrentDir()
  5. # add the general drivers.
  6. src = Split("""
  7. board.c
  8. stm32f4xx_it.c
  9. usart.c
  10. """)
  11. if GetDepend(['RT_USING_EXT_SDRAM']):
  12. src += ['drv_sdram.c']
  13. if GetDepend(['RT_USING_I2C']):
  14. src += ['drv_i2c.c']
  15. if GetDepend(['RT_USING_ILI9341_LCD']):
  16. src += ['drv_lcd.c']
  17. if GetDepend(['RT_USING_STMPE811_TOUCH']):
  18. src += ['drv_touch.c']
  19. CPPPATH = [cwd]
  20. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
  21. Return('group')