blob: a73560ebbff3721b9d73fe50b7854544e1c5295c [file] [log] [blame]
Christian Heimes4a7cae52007-11-08 23:55:45 +00001@echo off
Christian Heimes5b5e81c2007-12-31 16:14:33 +00002rem A batch program to build or rebuild a particular configuration.
3rem just for convenience.
4
Christian Heimes4a7cae52007-11-08 23:55:45 +00005setlocal
Christian Heimes5b5e81c2007-12-31 16:14:33 +00006set platf=Win32
7set conf=Release
Christian Heimesa8223142008-02-09 20:58:00 +00008set build=
Christian Heimes4a7cae52007-11-08 23:55:45 +00009
Christian Heimes5b5e81c2007-12-31 16:14:33 +000010:CheckOpts
Christian Heimesa8223142008-02-09 20:58:00 +000011if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts
Christian Heimes5b5e81c2007-12-31 16:14:33 +000012if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
Christian Heimesa8223142008-02-09 20:58:00 +000013if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts
14if "%1"=="-d" (set conf=Debug) & shift & goto CheckOpts
Christian Heimes4a7cae52007-11-08 23:55:45 +000015
Christian Heimes292d3512008-02-03 16:51:08 +000016set cmd=vcbuild /useenv pcbuild.sln %build% "%conf%|%platf%"
Christian Heimes5b5e81c2007-12-31 16:14:33 +000017echo %cmd%
18%cmd%