From e77ad718eee3568a5d404ea8c8f61ca3c1f158af Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 14 Jan 2011 06:57:48 +0000 Subject: [PATCH] - updated vc++ build script to look for win7 / vista style install paths for VC++ --- mk/windoze/build-mg.bat | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mk/windoze/build-mg.bat b/mk/windoze/build-mg.bat index 858bb784..363c5a9f 100644 --- a/mk/windoze/build-mg.bat +++ b/mk/windoze/build-mg.bat @@ -10,8 +10,15 @@ ECHO -------------------------------- ECHO Setting up Visual Studio 2008 environment vars... REM Ensure ultifds HP doesn't mess the build up SET Platform= -if "%DevEnvDir%." == "." call "\Program Files\Microsoft Visual Studio 9.0\vc\vcvarsall.bat" +if "%DevEnvDir%." == "." goto SETVCVARS +GOTO SVNSECTION +:SETVCVARS +IF EXISTS "\Program Files\Microsoft Visual Studio 9.0\" call "\Program Files\Microsoft Visual Studio 9.0\vc\vcvarsall.bat" +IF EXISTS "\Program Files\Microsoft Visual Studio 9.0\" goto SETVCVARS +IF EXISTS "\Program Files (x86)\Microsoft Visual Studio 9.0\" call "\Program Files (x86)\Microsoft Visual Studio 9.0\vc\vcvarsall.bat" + +:SVNSECTION rem Update from SVN to latest rev ECHO -------------------------------- Echo Updating Code from SVN to latest Revision... @@ -41,4 +48,4 @@ if not "%SVNVERSION%" == "." echo #define SVNVERSION "%SVNVERSION%" > ..\..\sour msbuild /p:Configuration=Release Glest.sln rem pause execution so we can see the output before the batch file exits -pause \ No newline at end of file +pause