update scons script: strict SrcRemove() match rule.
This commit is contained in:
parent
a8a2e55444
commit
0d1f75453b
@ -743,11 +743,20 @@ def SrcRemove(src, remove):
|
|||||||
|
|
||||||
for item in src:
|
for item in src:
|
||||||
if type(item) == type('str'):
|
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)
|
src.remove(item)
|
||||||
else:
|
else:
|
||||||
if os.path.basename(item.rstr()) in remove:
|
for remove_item in remove:
|
||||||
src.remove(item)
|
if item_str == str(remove_item):
|
||||||
|
src.remove(item)
|
||||||
|
|
||||||
def GetVersion():
|
def GetVersion():
|
||||||
import SCons.cpp
|
import SCons.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user