diff options
author | Martijn Berger <martijn.berger@gmail.com> | 2014-11-11 13:22:49 +0300 |
---|---|---|
committer | Martijn Berger <martijn.berger@gmail.com> | 2014-11-11 13:22:49 +0300 |
commit | 32a440361728ebc416fb99862befb95b8fa27a48 (patch) | |
tree | 5edb86baeb5f8e2356aa05c0cfed0969558d3a58 /build_files/buildbot/slave_compile.py | |
parent | b49df09d89ad130f5f2a993c16a04d9bc2264952 (diff) |
Add msbuild for windows cmake buildbots
Diffstat (limited to 'build_files/buildbot/slave_compile.py')
-rw-r--r-- | build_files/buildbot/slave_compile.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/build_files/buildbot/slave_compile.py b/build_files/buildbot/slave_compile.py index a5dadbde05c..c9a2891fe97 100644 --- a/build_files/buildbot/slave_compile.py +++ b/build_files/buildbot/slave_compile.py @@ -33,7 +33,7 @@ builder = sys.argv[1] # we run from build/ directory blender_dir = '../blender.git' -if builder.find('cmake') != -1: +if 'cmake' in builder: # cmake # set build options @@ -46,11 +46,21 @@ if builder.find('cmake') != -1: elif builder.endswith('mac_ppc_cmake'): cmake_options.append('-DCMAKE_OSX_ARCHITECTURES:STRING=ppc') + if 'win64' in builder: + + cmake_options.append('-G Visual Studio 12 2013 Win64') + elif 'win32' in builder: + cmake_options.append('-G Visual Studio 12 2013') + + # configure and make retcode = subprocess.call(['cmake', blender_dir] + cmake_options) if retcode != 0: sys.exit(retcode) - retcode = subprocess.call(['make', '-s', '-j4', 'install']) + if 'win' in builder: + retcode = subprocess.call(['msbuild', 'INSTALL.vcxproj', '/p:Configuration=Release']) + else: + retcode = subprocess.call(['make', '-s', '-j4', 'install']) sys.exit(retcode) else: python_bin = 'python' |