Move DLL copying to before actual build process.

This commit is contained in:
Nathan Letwory 2013-06-20 14:19:46 +00:00
parent e85a39b747
commit 2749875945
1 changed files with 4 additions and 2 deletions

View File

@ -155,9 +155,9 @@ else:
scons_options.append('BF_CONFIG=' + os.path.join(config_dir, config))
retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options)
if builder.find('win') != -1:
if not os.path.exists(install_dir):
os.makedirs(install_dir)
if builder.endswith('vc2012'):
dlls = ('msvcp110.dll', 'msvcr110.dll', 'vcomp110.dll')
else:
@ -169,4 +169,6 @@ else:
for dll in dlls:
shutil.copyfile(os.path.join(dlls_path, dll), os.path.join(install_dir, dll))
retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options)
sys.exit(retcode)