blob: a73560ebbff3721b9d73fe50b7854544e1c5295c [file] [log] [blame]
Christian Heimese8954f82007-11-22 11:21:16 +00001@echo off
2rem A batch program to build or rebuild a particular configuration.
3rem just for convenience.
4
5setlocal
6set platf=Win32
7set conf=Release
Christian Heimes95d64472008-02-09 19:55:22 +00008set build=
Christian Heimese8954f82007-11-22 11:21:16 +00009
10:CheckOpts
Christian Heimes95d64472008-02-09 19:55:22 +000011if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts
Christian Heimese8954f82007-11-22 11:21:16 +000012if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
Christian Heimes95d64472008-02-09 19:55:22 +000013if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts
14if "%1"=="-d" (set conf=Debug) & shift & goto CheckOpts
Christian Heimese8954f82007-11-22 11:21:16 +000015
Christian Heimes3af3ecc2008-02-03 14:34:18 +000016set cmd=vcbuild /useenv pcbuild.sln %build% "%conf%|%platf%"
Christian Heimese8954f82007-11-22 11:21:16 +000017echo %cmd%
18%cmd%