提交 0d1f7545 编写于 作者: wuyangyong's avatar wuyangyong

update scons script: strict SrcRemove() match rule.

上级 a8a2e554
......@@ -743,10 +743,19 @@ def SrcRemove(src, remove):
for item in src:
if type(item) == type('str'):
if os.path.basename(item) in remove:
item_str = item
else:
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:
if os.path.basename(item.rstr()) in remove:
for remove_item in remove:
if item_str == str(remove_item):
src.remove(item)
def GetVersion():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册