Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 1 | @echo off |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2 | rem A batch program to build or rebuild a particular configuration. |
| 3 | rem just for convenience. |
| 4 | |
Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 5 | setlocal |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 6 | set platf=Win32 |
| 7 | set conf=Release |
Brian Curtin | 5c2725d | 2012-05-22 11:04:32 -0500 | [diff] [blame] | 8 | set target=build |
| 9 | set dir=%~dp0 |
Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 10 | |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 11 | :CheckOpts |
Christian Heimes | a822314 | 2008-02-09 20:58:00 +0000 | [diff] [blame] | 12 | if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 13 | if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts |
Brian Curtin | 5c2725d | 2012-05-22 11:04:32 -0500 | [diff] [blame] | 14 | if "%1"=="-r" (set target=rebuild) & shift & goto CheckOpts |
Christian Heimes | a822314 | 2008-02-09 20:58:00 +0000 | [diff] [blame] | 15 | if "%1"=="-d" (set conf=Debug) & shift & goto CheckOpts |
Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 16 | |
Brian Curtin | 5c2725d | 2012-05-22 11:04:32 -0500 | [diff] [blame] | 17 | set cmd=msbuild /p:useenv=true %dir%pcbuild.sln /t:%target% /p:Configuration=%conf% /p:Platform=%platf% |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 18 | echo %cmd% |
| 19 | %cmd% |