Move DLL copying to before actual build process.
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 20 Jun 2013 14:19:46 +0000 (14:19 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 20 Jun 2013 14:19:46 +0000 (14:19 +0000)
build_files/buildbot/slave_compile.py

index 33879ccff170c1d3e68c7fa602e7b87970207bcb..f9aa45a4023e52b5f66828a45a5a4c730d8ad745 100644 (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)