Zachary Ware | 4c9c848 | 2015-04-13 11:59:54 -0500 | [diff] [blame^] | 1 | @echo off
|
| 2 | rem A batch program to build or rebuild a particular configuration.
|
| 3 | rem just for convenience.
|
| 4 |
|
| 5 | setlocal
|
| 6 | set platf=Win32
|
| 7 | set conf=Release
|
| 8 | set target=build
|
| 9 | set dir=%~dp0
|
| 10 |
|
| 11 | :CheckOpts
|
| 12 | if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts
|
| 13 | if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
|
| 14 | if "%1"=="-r" (set target=rebuild) & shift & goto CheckOpts
|
| 15 | if "%1"=="-d" (set conf=Debug) & shift & goto CheckOpts
|
| 16 |
|
| 17 | set cmd=msbuild /p:useenv=true %dir%pcbuild.sln /t:%target% /p:Configuration=%conf% /p:Platform=%platf%
|
| 18 | echo %cmd%
|
| 19 | %cmd%
|