Christian Heimes | e8954f8 | 2007-11-22 11:21:16 +0000 | [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 |
Christian Heimes | 95d6447 | 2008-02-09 19:55:22 +0000 | [diff] [blame] | 8 | set build= |
Christian Heimes | e8954f8 | 2007-11-22 11:21:16 +0000 | [diff] [blame] | 9 | |
| 10 | :CheckOpts |
Christian Heimes | 95d6447 | 2008-02-09 19:55:22 +0000 | [diff] [blame] | 11 | if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts |
Christian Heimes | e8954f8 | 2007-11-22 11:21:16 +0000 | [diff] [blame] | 12 | if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts |
Christian Heimes | 95d6447 | 2008-02-09 19:55:22 +0000 | [diff] [blame] | 13 | if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts |
| 14 | if "%1"=="-d" (set conf=Debug) & shift & goto CheckOpts |
Christian Heimes | e8954f8 | 2007-11-22 11:21:16 +0000 | [diff] [blame] | 15 | |
Christian Heimes | 3af3ecc | 2008-02-03 14:34:18 +0000 | [diff] [blame] | 16 | set cmd=vcbuild /useenv pcbuild.sln %build% "%conf%|%platf%" |
Christian Heimes | e8954f8 | 2007-11-22 11:21:16 +0000 | [diff] [blame] | 17 | echo %cmd% |
| 18 | %cmd% |