From 1e011a83837a7cbdfa5c4ee99844f787f3cca8bf Mon Sep 17 00:00:00 2001 From: Glatzemann Date: Mon, 20 Feb 2012 10:33:52 +0000 Subject: [PATCH] Extended the build script for building on Windows 8 (including the RenderSystem.Metro). Remark: Windows 8 binaries are not created without errors currently. --- build/ANX.Framework.build | 56 ++++++++++++++++++++++++++------------ build/MakeAnxFramework.cmd | 35 ++++++++++++++++++++++-- 2 files changed, 71 insertions(+), 20 deletions(-) diff --git a/build/ANX.Framework.build b/build/ANX.Framework.build index 2b1ff93a..496a5984 100644 --- a/build/ANX.Framework.build +++ b/build/ANX.Framework.build @@ -5,7 +5,9 @@ - + + + @@ -45,7 +47,6 @@ - @@ -67,7 +68,25 @@ - + + + + + + + + + + + + + + + + + + + @@ -134,6 +153,22 @@ + + + + + + + + + + + + + + + + @@ -149,21 +184,6 @@ - diff --git a/build/MakeAnxFramework.cmd b/build/MakeAnxFramework.cmd index 2d328f26..cead2000 100644 --- a/build/MakeAnxFramework.cmd +++ b/build/MakeAnxFramework.cmd @@ -2,7 +2,38 @@ setlocal set ProgRoot=%ProgramFiles% if not "%ProgramFiles(x86)%" == "" set ProgRoot=%ProgramFiles(x86)% -call "%ProgRoot%\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86 + +if EXIST "%ProgRoot%\Microsoft Visual Studio 11.0" goto vs2011 +if EXIST "%ProgRoot%\Microsoft Visual Studio 10.0" goto vs2010 +goto error_msg + +:vs2011 + echo Visual Studio 2011 build environment + call "%ProgRoot%\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86 + SET ENV=VS2011 + goto start_nant + +:vs2010 + echo Visual Studio 2010 build environment + call "%ProgRoot%\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86 + SET ENV=VS2010 + goto start_nant + +:start_nant set PATH=../lib/nant-0.91/bin;../Tools/bin;%PATH% -nant %1 %2 %3 %4 %5 %6 + +if "%1"=="" ( + set FIRST_TARGET=build +) ELSE ( + set FIRST_TARGET=%1 +) + +echo calling nant with %ENV% %FIRST_TARGET% %2 %3 %4 %5 %6 +nant %ENV% %FIRST_TARGET% %2 %3 %4 %5 %6 +goto pause + +:error_msg +echo Couldn't find Visual Studio 2010 or 2011. Exiting. + +:pause pause \ No newline at end of file