- Build system optimizations - Extended ProjectConverter: DX and SharpDX assemblies are now removed from linux projects to prevent errors - Fixed a bunch of compiler warnings - Removed DX11MetroShaderGenerator assembly. It is now included in ANX.Framework.Content.Pipeline - Removed HLSLParser assembly. It is now included in ANX.Framework.Content.Pipeline. - Removed shader parser from GL3-RenderSystem. It is now included in ANX.Framework.Content.Pipeline. - Removed RenderSystem dependencies from StockShaderCodeGenerator (sscg) tool
54 lines
1.6 KiB
Batchfile
54 lines
1.6 KiB
Batchfile
@echo off
|
|
setlocal
|
|
set ProgRoot=%ProgramFiles%
|
|
if not "%ProgramFiles(x86)%" == "" set ProgRoot=%ProgramFiles(x86)%
|
|
|
|
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_USERS\.DEFAULT\Software\Microsoft\VisualStudio\11.0_Config" /v ShellFolder') DO SET vs11dir=%%B
|
|
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_USERS\.DEFAULT\Software\Microsoft\VisualStudio\10.0_Config" /v ShellFolder') DO SET vs10dir=%%B
|
|
|
|
if EXIST "%vs11dir%\vc\vcvarsall.bat" goto vs2011
|
|
if EXIST "%ProgRoot%\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" goto vs2011pf
|
|
if EXIST "%vs10dir%\vc\vcvarsall.bat" goto vs2010
|
|
if EXIST "%ProgRoot%\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" goto vs2010pf
|
|
goto error_msg
|
|
|
|
:vs2011pf
|
|
SET vs11dir = %ProgRoot%\Microsoft Visual Studio 11.0\
|
|
:vs2011
|
|
echo Visual Studio 2011 build environment
|
|
call "%vs11dir%\vc\vcvarsall.bat" x86
|
|
SET ENV=VS2011
|
|
goto start_nant
|
|
|
|
:vs2011pf
|
|
SET vs10dir = %ProgRoot%\Microsoft Visual Studio 10.0\
|
|
:vs2010
|
|
echo Visual Studio 2010 build environment
|
|
call "%vs10dir%\vc\vcvarsall.bat" x86
|
|
SET ENV=VS2010
|
|
goto start_nant
|
|
|
|
:start_nant
|
|
if NOT EXIST "../build" goto error_msg_working_dir
|
|
set PATH=../lib/nant-0.91/bin;../Tools/bin;%PATH%
|
|
|
|
if "%1"=="" (
|
|
set FIRST_TARGET=build
|
|
) ELSE (
|
|
set FIRST_TARGET=%1
|
|
)
|
|
|
|
echo calling nant with %ENV% %FIRST_TARGET% %2 %3 %4 %5 %6
|
|
nant -buildfile:ANX.Framework.build %ENV% %FIRST_TARGET% %2 %3 %4 %5 %6
|
|
goto pause
|
|
|
|
:error_msg
|
|
echo Couldn't find Visual Studio 2010 or 2011. Exiting.
|
|
goto pause
|
|
|
|
:error_msg_working_dir
|
|
echo Please start MakeAnxFramework from the build directory. (use CD to change directory)
|
|
goto pause
|
|
|
|
:pause
|
|
pause |