2017-09-12 17:57:14 +08:00
|
|
|
from building import *
|
|
|
|
|
2018-03-04 22:35:07 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
2017-09-12 17:57:14 +08:00
|
|
|
|
2018-03-04 22:35:07 +08:00
|
|
|
if not GetDepend('RT_USING_LWIP'):
|
|
|
|
SrcRemove(src, 'drv_eth.c')
|
2017-09-12 17:57:14 +08:00
|
|
|
|
2018-03-04 22:35:07 +08:00
|
|
|
if not GetDepend('RT_USING_DFS'):
|
|
|
|
SrcRemove(src, 'drv_sdio_sd.c')
|
|
|
|
SrcRemove(src, 'drv_spi_flash.c')
|
|
|
|
|
|
|
|
if not GetDepend('PKG_USING_GUIENGINE'):
|
|
|
|
SrcRemove(src, 'drv_lcd.c')
|
|
|
|
SrcRemove(src, 'drv_ft5x06.c')
|
2017-09-12 17:57:14 +08:00
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|