Improved MakeAnxFramework build script starter:
- better error handling - obtaining Visual Studio directory from registry or program files path (thx to Razer)
This commit is contained in:
parent
3c5e98b783
commit
cf5cef5d09
@ -14,7 +14,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.InProgress)]
|
||||
public sealed class EffectAnnotationCollection : IEnumerable<EffectAnnotation>
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("???, AstrorEnales")]
|
||||
[Developer("Glatzemann, GinieDP, AstrorEnales")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public sealed class ModelBoneCollection : ReadOnlyCollection<ModelBone>
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales, Glatzemann")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Untested)]
|
||||
public class RasterizerState : GraphicsResource
|
||||
{
|
||||
|
@ -9,6 +9,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(0)]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Untested)]
|
||||
public class RenderTargetCube : TextureCube, IDynamicGraphicsResource
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum RenderTargetUsage
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum SetDataOptions
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[TestState(TestStateAttribute.TestState.Untested)]
|
||||
[Developer("Glatzemann, AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
public class SpriteBatch : GraphicsResource
|
||||
{
|
||||
private const int InitialBatchSize = 1024;
|
||||
|
@ -9,7 +9,7 @@ namespace ANX.Framework.Graphics
|
||||
{
|
||||
[Flags]
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum SpriteEffects
|
||||
{
|
||||
|
@ -1,4 +1,8 @@
|
||||
#region Using Statements
|
||||
using System;
|
||||
using ANX.Framework.NonXNA.Development;
|
||||
|
||||
#endregion
|
||||
|
||||
// This file is part of the ANX.Framework created by the
|
||||
// "ANX.Framework developer group" and released under the Ms-PL license.
|
||||
@ -6,6 +10,9 @@ using System;
|
||||
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[TestState(TestStateAttribute.TestState.Untested)]
|
||||
[Developer("Glatzemann")]
|
||||
internal struct SpriteInfo
|
||||
{
|
||||
public Vector2[] Corners;
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum SpriteSortMode
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum StencilOperation
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum SurfaceFormat
|
||||
{
|
||||
|
@ -8,7 +8,8 @@ using ANX.Framework.NonXNA.Development;
|
||||
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(0)]
|
||||
[PercentageComplete(10)]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Untested)]
|
||||
public class TextureCube : Texture, IGraphicsResource
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum TextureFilter
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum VertexElementFormat
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using ANX.Framework.NonXNA.Development;
|
||||
namespace ANX.Framework.Graphics
|
||||
{
|
||||
[PercentageComplete(100)]
|
||||
[Developer("AstrorEnales")]
|
||||
[Developer("Glatzemann")]
|
||||
[TestState(TestStateAttribute.TestState.Tested)]
|
||||
public enum VertexElementUsage
|
||||
{
|
||||
|
@ -3,23 +3,33 @@ setlocal
|
||||
set ProgRoot=%ProgramFiles%
|
||||
if not "%ProgramFiles(x86)%" == "" set ProgRoot=%ProgramFiles(x86)%
|
||||
|
||||
if EXIST "%ProgRoot%\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" goto vs2011
|
||||
if EXIST "%ProgRoot%\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" goto vs2010
|
||||
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 "%ProgRoot%\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86
|
||||
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 "%ProgRoot%\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
|
||||
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"=="" (
|
||||
@ -34,6 +44,11 @@ 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
|
Loading…
x
Reference in New Issue
Block a user