2013-01-08 22:40:58 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
|
|
|
|
# remove no need file.
|
|
|
|
if GetDepend('RT_USING_RTGUI') == False:
|
|
|
|
SrcRemove(src, 'sdl_fb.c')
|
|
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_ELMFAT') == False:
|
|
|
|
SrcRemove(src, 'sd_sim.c')
|
|
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NAND') == False:
|
|
|
|
SrcRemove(src, 'nanddrv_file.c')
|
|
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_MTD_NOR') == False:
|
|
|
|
SrcRemove(src, 'sst25vfxx_mtd_sim.c')
|
2013-03-15 16:54:23 +08:00
|
|
|
if GetDepend('RT_USING_DFS_WINSHAREDIR') == False:
|
|
|
|
SrcRemove(src, 'dfs_win32.c')
|
|
|
|
if GetDepend('RT_USING_MODULE') == False:
|
|
|
|
SrcRemove(src, ['module_win32.c'])
|
2013-01-08 22:40:58 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|