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