From 1a0789dc72553ef6ab133c1d60212448e4f329d9 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 11 Mar 2013 10:49:51 +0000 Subject: [PATCH] Windows buildbot tweaks Make it so install directory is being nicely cleaned before next build, which makes it automatically removing all old files from previous installations. --- build_files/buildbot/slave_compile.py | 10 ++++++++++ build_files/buildbot/slave_pack.py | 2 ++ 2 files changed, 12 insertions(+) diff --git a/build_files/buildbot/slave_compile.py b/build_files/buildbot/slave_compile.py index 38b621a9055..26966c8abe1 100644 --- a/build_files/buildbot/slave_compile.py +++ b/build_files/buildbot/slave_compile.py @@ -136,6 +136,8 @@ else: if builder.find('win64') != -1: bitness = '64' + scons_options.append('BF_INSTALLDIR=' + install_dir) + scons_options.append('BF_BUILDDIR=' + build_dir) scons_options.append('BF_BITNESS=' + bitness) scons_options.append('WITH_BF_CYCLES_CUDA_BINARIES=True') scons_options.append('BF_CYCLES_CUDA_NVCC=nvcc.exe') @@ -151,4 +153,12 @@ else: scons_options.append('BF_CONFIG=' + os.path.join(config_dir, config)) retcode = subprocess.call(['python', 'scons/scons.py'] + scons_options) + if retcode == 0: + dlls = ('msvcm90.dll', 'msvcp90.dll', 'msvcr90.dll', 'vcomp90.dll', 'Microsoft.VC90.CRT.manifest', 'Microsoft.VC90.OpenMP.manifest') + if bitness == '32': + dlls_path = 'C:\\b\\redist\\amd64' + else: + dlls_path = 'C:\\b\\redist\\x86' + for dll in dlls: + shutil.copyfile(os.path.join(dlls_path, dll), os.path.join(install_dir, dll)) sys.exit(retcode) diff --git a/build_files/buildbot/slave_pack.py b/build_files/buildbot/slave_pack.py index 569b996d7a0..3c2569e4a69 100644 --- a/build_files/buildbot/slave_pack.py +++ b/build_files/buildbot/slave_pack.py @@ -92,6 +92,8 @@ if builder.find('scons') != -1: if builder.find('win64') != -1: bitness = '64' + scons_options.append('BF_INSTALLDIR=' + install_dir) + scons_options.append('BF_BUILDDIR=' + build_dir) scons_options.append('BF_BITNESS=' + bitness) scons_options.append('WITH_BF_CYCLES_CUDA_BINARIES=True') scons_options.append('BF_CYCLES_CUDA_NVCC=nvcc.exe')