scons: Improve validation of XML dialogs, and make it work on Windows if xmllint is installed

This commit is contained in:
2015-09-13 23:55:32 -04:00
parent a38a8e3a7d
commit 19197a64e7
2 changed files with 31 additions and 21 deletions

View File

@@ -320,11 +320,15 @@ elif str(platform) == "win32":
target_dirs = ["#build/Blades of Exile", "#build/test"]
for lib in bundled_libs:
for lpath in env['LIBPATH']:
if 'Visual Studio' in lpath:
lpath = lpath.replace('lib', 'bin')
src_file = path.join(lpath, lib + ".dll")
if path.exists(src_file):
for targ in target_dirs:
env.Install(targ, src_file)
break
elif 'lib' in lpath:
src_file = path.join(lpath.replace('lib', 'bin'), lib + ".dll")
if path.exists(src_file):
for targ in target_dirs:
env.Install(targ, src_file)
break