]> git.sesse.net Git - casparcg/commitdiff
build scripts
authorHelge Norberg <helge.norberg@svt.se>
Thu, 2 Oct 2014 16:52:46 +0000 (18:52 +0200)
committerHelge Norberg <helge.norberg@svt.se>
Thu, 2 Oct 2014 16:52:46 +0000 (18:52 +0200)
build-scripts/build-windows.bat
build-scripts/set-variables-and-build-windows.bat

index 5302977f9b314a1a8e2c849709e1c1dadc87aae4..b2e73b78c8472c8a00acdc6b09e023ee35c7d0ec 100644 (file)
@@ -3,6 +3,7 @@
 :: Fail early if environment not set
 if not defined BUILD_VCVARSALL exit /b 1
 if not defined BUILD_ARCHIVE_NAME exit /b 1
+if not defined BUILD_PARALLEL_THREADS exit /b 1
 if not defined BUILD_7ZIP exit /b 1
 
 :: Clean and enter shadow build folder
@@ -25,7 +26,7 @@ call "%BUILD_VCVARSALL%" x86 || goto :error
 :: Build with MSBuild
 echo Building...
 msbuild /t:Clean /p:Configuration=Release || goto :error
-msbuild /p:Configuration=Release || goto :error
+msbuild /p:Configuration=Release /m:%BUILD_PARALLEL_THREADS% || goto :error
 
 :: Create server folder to later zip
 cd build || goto :error
index 1e9f2d7462a49b9de3ad8ca4f67b590195eff964..bc3cbc1d61c37655165556514f06787a9274d5a6 100644 (file)
@@ -2,6 +2,7 @@
 
 set BUILD_VCVARSALL=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat
 set BUILD_ARCHIVE_NAME=CasparCG Server
+set BUILD_PARALLEL_THREADS=12
 set BUILD_7ZIP=C:\Program Files\7-Zip\7z.exe
 
 build-windows.bat