mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 08:59:22 +08:00
13d2e4a5ac
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2420 bbd45198-f89e-11dd-88c7-29a3b14d5316
21 lines
640 B
Python
21 lines
640 B
Python
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_DFS_UFFS') == False:
|
|
SrcRemove(src, 'nand_sim.c')
|
|
if GetDepend('RT_USING_DFS') == False or GetDepend('RT_USING_DFS_JFFS2') == False:
|
|
SrcRemove(src, 'sst25vfxx_mtd_sim.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|