SConscript 550 B

1234567891011121314151617181920212223
  1. Import('RTT_ROOT')
  2. from building import *
  3. cwd = GetCurrentDir()
  4. src = Split("""
  5. dev_block.c
  6. dev_mmcsd_core.c
  7. dev_sd.c
  8. dev_sdio.c
  9. dev_mmc.c
  10. """)
  11. # The set of source files associated with this SConscript file.
  12. path = [cwd + '/../include' , cwd + '/sdhci/include']
  13. if GetDepend('RT_USING_SDHCI'):
  14. src += [os.path.join('sdhci', 'sdhci.c')]
  15. src += [os.path.join('sdhci', 'fit-mmc.c')]
  16. src += [os.path.join('sdhci', 'sdhci-platform.c')]
  17. group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SDIO'], CPPPATH = path)
  18. Return('group')