SConscript 869 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import os
  2. from building import *
  3. objs = []
  4. cwd = GetCurrentDir()
  5. # add general drivers
  6. src = []
  7. path = [cwd]
  8. if GetDepend(['BSP_USING_QSPI_FLASH']):
  9. src += Glob('drv_qspi_flash.c')
  10. if GetDepend(['RT_USING_FAL']):
  11. src += Glob('qspi_mnt.c')
  12. if GetDepend(['BSP_USING_TOUCH']):
  13. src += Glob('touch/drv_touch.c')
  14. path = [cwd + '/touch']
  15. if GetDepend(['BSP_USING_SDCARD']):
  16. src += Glob('drv_sdcard.c')
  17. if GetDepend(['BSP_USING_QSPI']):
  18. src += Glob('drv_qspi_flash.c')
  19. if GetDepend(['BSP_USING_LCD']):
  20. src += Glob('ili9341.c')
  21. CPPDEFINES = ['STM32F429xx']
  22. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  23. list = os.listdir(cwd)
  24. for item in list:
  25. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  26. group = group + SConscript(os.path.join(item, 'SConscript'))
  27. Return('group')