Simplified and reordered the arguments to build.generic.cmd and added default values
- always Clean,Rebuild - output folder is now build/bin/{CONFIGURATION}/{ARCH}
This commit is contained in:
parent
0faabe43f8
commit
f1510489bd
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem build 32-bit
|
rem build 32-bit
|
||||||
call "%~p0%build.generic.cmd" VS2010 Release Rebuild Win32 v100
|
call "%~p0%build.generic.cmd" VS2010 Win32 Release v100
|
||||||
|
|
||||||
rem build 64-bit
|
rem build 64-bit
|
||||||
call "%~p0%build.generic.cmd" VS2010 Release Rebuild x64 v100
|
call "%~p0%build.generic.cmd" VS2010 x64 Release v100
|
@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem build 32-bit
|
rem build 32-bit
|
||||||
call "%~p0%build.generic.cmd" VS2012 Release Rebuild Win32 v110
|
call "%~p0%build.generic.cmd" VS2012 Win32 Release v110
|
||||||
rem build 64-bit
|
rem build 64-bit
|
||||||
call "%~p0%build.generic.cmd" VS2012 Release Rebuild x64 v110
|
call "%~p0%build.generic.cmd" VS2012 x64 Release v110
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem build 32-bit
|
rem build 32-bit
|
||||||
call "%~p0%build.generic.cmd" VS2013 Release Rebuild Win32 v120
|
call "%~p0%build.generic.cmd" VS2013 Win32 Release v120
|
||||||
|
|
||||||
rem build 64-bit
|
rem build 64-bit
|
||||||
call "%~p0%build.generic.cmd" VS2013 Release Rebuild x64 v120
|
call "%~p0%build.generic.cmd" VS2013 x64 Release v120
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem build 32-bit
|
rem build 32-bit
|
||||||
call "%~p0%build.generic.cmd" VS2015 Release Rebuild Win32 v140
|
call "%~p0%build.generic.cmd" VS2015 Win32 Release v140
|
||||||
|
|
||||||
rem build 64-bit
|
rem build 64-bit
|
||||||
call "%~p0%build.generic.cmd" VS2015 Release Rebuild x64 v140
|
call "%~p0%build.generic.cmd" VS2015 x64 Release v140
|
@ -1,33 +1,46 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rem
|
IF "%1%" == "" GOTO display_help
|
||||||
rem Parameters
|
|
||||||
rem %1: vs_solution_version: VS solution version: VS2012, VS2013, VS2015
|
|
||||||
rem %2: vs_configuration: VS configuration: Debug, Release
|
|
||||||
rem %3: vs_target: target: Build or Rebuild
|
|
||||||
rem %4: vs_platform: platform: x64 or Win32
|
|
||||||
rem %5: vs_toolset: toolset: v100, v110, v120, v140
|
|
||||||
rem
|
|
||||||
|
|
||||||
set vs_solution_version=%1
|
SET vs_version=%1
|
||||||
set vs_configuration=%2
|
|
||||||
set vs_target=%3
|
|
||||||
set vs_platform=%4
|
|
||||||
set vs_toolset=%5
|
|
||||||
|
|
||||||
set msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
|
SET vs_platform=%2
|
||||||
IF %vs_solution_version% == VS2013 SET msbuild="C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"
|
IF "%vs_platform%" == "" SET vs_platform=x64
|
||||||
IF %vs_solution_version% == VS2015 SET msbuild="C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
|
|
||||||
|
SET vs_configuration=%3
|
||||||
|
IF "%vs_configuration%" == "" SET vs_configuration=Release
|
||||||
|
|
||||||
|
SET vs_toolset=%4
|
||||||
|
|
||||||
|
GOTO build
|
||||||
|
|
||||||
|
:display_help
|
||||||
|
|
||||||
|
echo Syntax: build.generic.cmd vs_version vs_platform vs_configuration vs_toolset
|
||||||
|
echo vs_version: VS installed version (VS2012, VS2013, VS2015, ...)
|
||||||
|
echo vs_platform: Platform (x64 or Win32)
|
||||||
|
echo vs_configuration: VS configuration (Release or Debug)
|
||||||
|
echo vs_toolset: Platform Toolset (v100, v110, v120, v140)
|
||||||
|
|
||||||
|
EXIT /B 1
|
||||||
|
|
||||||
|
:build
|
||||||
|
|
||||||
|
SET msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
|
||||||
|
IF %vs_version% == VS2013 SET msbuild="C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"
|
||||||
|
IF %vs_version% == VS2015 SET msbuild="C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
|
||||||
rem TODO: Visual Studio "15" (vNext) will use MSBuild 15.0 ?
|
rem TODO: Visual Studio "15" (vNext) will use MSBuild 15.0 ?
|
||||||
|
|
||||||
set project="%~p0\..\projects\VS2010\zstd.sln"
|
SET project="%~p0\..\projects\VS2010\zstd.sln"
|
||||||
|
|
||||||
set output=%~p0%bin
|
SET msbuildparams=/verbosity:minimal /nologo /t:Clean,Build /p:Platform=%vs_platform% /p:Configuration=%vs_configuration%
|
||||||
set output="%output%/%vs_solution_version%/%vs_platform%/"
|
IF NOT "%vs_toolset%" == "" SET msbuildparams=%msbuildparams% /p:PlatformToolset=%vs_toolset%
|
||||||
|
|
||||||
set msbuildparams=/verbosity:minimal /p:Platform="%vs_platform%" /p:Configuration="%vs_configuration%" /p:PlatformToolset="%vs_toolset%" /t:Clean,Build /nologo /p:OutDir=%output%
|
SET output=%~p0%bin
|
||||||
|
SET output="%output%/%vs_configuration%/%vs_platform%/"
|
||||||
|
SET msbuildparams=%msbuildparams% /p:OutDir=%output%
|
||||||
|
|
||||||
echo ### Building %vs_solution_version% project for %vs_configuration% %vs_platform% (%vs_toolset%)...
|
echo ### Building %vs_version% project for %vs_configuration% %vs_platform% (%vs_toolset%)...
|
||||||
echo ### Build Params: %msbuildparams%
|
echo ### Build Params: %msbuildparams%
|
||||||
|
|
||||||
%msbuild% %project% %msbuildparams%
|
%msbuild% %project% %msbuildparams%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user