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 |
| 8 | set build=/build |
Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 9 | |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 10 | :CheckOpts |
| 11 | if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts |
| 12 | if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts |
| 13 | if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts |
Christian Heimes | 4a7cae5 | 2007-11-08 23:55:45 +0000 | [diff] [blame] | 14 | |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame^] | 15 | set cmd=vcbuild /useenv pcbuild.sln %build% "%conf%|%platf%" |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 16 | echo %cmd% |
| 17 | %cmd% |