Skip to content

Commit

Permalink
Mechanical refinement to build cmd files
Browse files Browse the repository at this point in the history
build.cmd can take an optional target name like Compile or several targets in order with quotes like "Compile,Package"
clicktobuild.cmd will detect when the sdk env variable is not present, and vs2k8 is, and it will run the vs batch to initialize environment for calling msbuild

--HG--
branch : dev
  • Loading branch information
Louis DeJardin authored and Louis DeJardin committed Feb 7, 2010
1 parent 521ea7c commit 6267c93
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions ClickToBuild.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@

if "%WindowsSdkDir%" neq "" goto build
if exist "%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" goto initialize2k8
echo "Unable to detect suitable environment. Build may not succeed."
goto build


:initialize2k8
call "%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
goto build


:build
call build
pause
goto end


:end
4 changes: 2 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
if .%1.==.. build Build
msbuild /t:%1
if "%~1"=="" build Build
msbuild /t:%~1

0 comments on commit 6267c93

Please sign in to comment.