未验证 提交 ac6302db 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1344 from aozima/pulls

update scons script: strict SrcRemove() match rule.
......@@ -7,7 +7,7 @@ src = Glob('*.c')
if GetDepend('RT_USING_LWIP') == False:
SrcRemove(src, 'sam7x_emac.c')
if GetDepend('RT_USING_DFS') == False:
SrcRemove(src, 'ssd.c')
SrcRemove(src, 'sd.c')
CPPPATH = [cwd]
......
......@@ -743,11 +743,20 @@ def SrcRemove(src, remove):
for item in src:
if type(item) == type('str'):
if os.path.basename(item) in remove:
src.remove(item)
item_str = item
else:
if os.path.basename(item.rstr()) in remove:
item_str = item.rstr()
if os.path.isabs(item_str):
item_str = os.path.relpath(item_str, GetCurrentDir())
if type(remove) == type('str'):
if item_str == remove:
src.remove(item)
else:
for remove_item in remove:
if item_str == str(remove_item):
src.remove(item)
def GetVersion():
import SCons.cpp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册