forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue in the Desktop SoundEffect.cs class where it was trying to read a closed stream Fixed a bug in the Game class under windows & linux where the Viewport was too small on startup Added MonoDevelop.MonoGame addin assembly code. This is required to support .net 4.0 profile projects Added nant build files to help build release packages quickly.
- Loading branch information
1 parent
d148d88
commit 90b501a
Showing
19 changed files
with
388 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<project name="Aurora Ion Build Script" default="build" basedir="."> | ||
<description>Default Ion Automated Build script</description> | ||
<property name="os" value="${operating-system::get-platform(environment::get-operating-system())}" /> | ||
|
||
|
||
|
||
<target name="build" description="Build Installers"> | ||
<exec program="makensis" workingdir="Windows" basedir="C:\Program Files (x86)\NSIS"> | ||
<arg value="MonoGame.nsi"/> | ||
</exec> | ||
</target> | ||
|
||
|
||
|
||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ProjectTemplates/MonoDevelop.MonoGame.2.5/MonoDevelop.MonoGame/MonoDevelop.MonoGame.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoDevelop.MonoGame", "MonoDevelop.MonoGame\MonoDevelop.MonoGame.csproj", "{DEFFDDB9-F86B-452F-B1B2-6379DB6D10EA}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{DEFFDDB9-F86B-452F-B1B2-6379DB6D10EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{DEFFDDB9-F86B-452F-B1B2-6379DB6D10EA}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{DEFFDDB9-F86B-452F-B1B2-6379DB6D10EA}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{DEFFDDB9-F86B-452F-B1B2-6379DB6D10EA}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(MonoDevelopProperties) = preSolution | ||
StartupItem = MonoDevelop.MonoGame\MonoDevelop.MonoGame.csproj | ||
EndGlobalSection | ||
EndGlobal |
27 changes: 27 additions & 0 deletions
27
...plates/MonoDevelop.MonoGame.2.5/MonoDevelop.MonoGame/MonoDevelop.MonoGame/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
// Information about this assembly is defined by the following attributes. | ||
// Change them to the values specific to your project. | ||
|
||
[assembly: AssemblyTitle("MonoDevelop.MonoGame")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("")] | ||
[assembly: AssemblyCopyright("d_ellis")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". | ||
// The form "{Major}.{Minor}.*" will automatically update the build and revision, | ||
// and "{Major}.{Minor}.{Build}.*" will update just the revision. | ||
|
||
[assembly: AssemblyVersion("1.0.*")] | ||
|
||
// The following attributes are used to specify the signing key for the assembly, | ||
// if desired. See the Mono documentation for more information about signing. | ||
|
||
//[assembly: AssemblyDelaySign(false)] | ||
//[assembly: AssemblyKeyFile("")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...evelop.MonoGame.2.5/MonoDevelop.MonoGame/MonoDevelop.MonoGame/MonoDevelop.MonoGame.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>9.0.21022</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{DEFFDDB9-F86B-452F-B1B2-6379DB6D10EA}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>MonoDevelop.MonoGame</RootNamespace> | ||
<AssemblyName>MonoDevelop.MonoGame</AssemblyName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>..\..\..\..\..\..\Program Files (x86)\MonoDevelop\AddIns\MonoDevelop.MonoGame</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="MonoDevelop.Core"> | ||
<HintPath>..\..\..\..\..\..\Program Files %28x86%29\MonoDevelop\bin\MonoDevelop.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="AssemblyInfo.cs" /> | ||
<Compile Include="MonoGameProject.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<ItemGroup> | ||
<EmbeddedResource Include="MonoDevelop.MonoGame.addin.xml" /> | ||
</ItemGroup> | ||
</Project> |
96 changes: 96 additions & 0 deletions
96
...tes/MonoDevelop.MonoGame.2.5/MonoDevelop.MonoGame/MonoDevelop.MonoGame/MonoGameProject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
using System; | ||
using MonoDevelop.Projects; | ||
using System.Xml; | ||
using MonoDevelop.Core.Assemblies; | ||
|
||
namespace MonoDevelop.MonoGame | ||
{ | ||
public class MonoGameProject : DotNetAssemblyProject | ||
{ | ||
public MonoGameProject () | ||
{ | ||
Init (); | ||
} | ||
|
||
public MonoGameProject (string languageName) | ||
: base (languageName) | ||
{ | ||
Init (); | ||
} | ||
|
||
public MonoGameProject (string languageName, ProjectCreateInformation info, XmlElement projectOptions) | ||
: base (languageName, info, projectOptions) | ||
{ | ||
Init (); | ||
} | ||
|
||
private void Init() | ||
{ | ||
} | ||
|
||
public override SolutionItemConfiguration CreateConfiguration (string name) | ||
{ | ||
var conf = new MonoGameProjectConfiguration (name); | ||
conf.CopyFrom (base.CreateConfiguration (name)); | ||
return conf; | ||
} | ||
|
||
public override bool SupportsFormat (FileFormat format) | ||
{ | ||
return format.Id == "MSBuild10"; | ||
} | ||
|
||
public override TargetFrameworkMoniker GetDefaultTargetFrameworkForFormat (FileFormat format) | ||
{ | ||
return new TargetFrameworkMoniker("4.0"); | ||
} | ||
|
||
public override bool SupportsFramework (MonoDevelop.Core.Assemblies.TargetFramework framework) | ||
{ | ||
if (!framework.IsCompatibleWithFramework (MonoDevelop.Core.Assemblies.TargetFrameworkMoniker.NET_4_0)) | ||
return false; | ||
else | ||
return base.SupportsFramework (framework); | ||
} | ||
} | ||
|
||
public class MonoGameProjectBinding : IProjectBinding | ||
{ | ||
public Project CreateProject (ProjectCreateInformation info, System.Xml.XmlElement projectOptions) | ||
{ | ||
string lang = projectOptions.GetAttribute ("language"); | ||
return new MonoGameProject (lang, info, projectOptions); | ||
} | ||
|
||
public Project CreateSingleFileProject (string sourceFile) | ||
{ | ||
throw new InvalidOperationException (); | ||
} | ||
|
||
public bool CanCreateSingleFileProject (string sourceFile) | ||
{ | ||
return false; | ||
} | ||
|
||
public string Name { | ||
get { return "MonoGame"; } | ||
} | ||
} | ||
|
||
public class MonoGameProjectConfiguration : DotNetProjectConfiguration | ||
{ | ||
public MonoGameProjectConfiguration () : base () | ||
{ | ||
} | ||
|
||
public MonoGameProjectConfiguration (string name) : base (name) | ||
{ | ||
} | ||
|
||
public override void CopyFrom (ItemConfiguration configuration) | ||
{ | ||
base.CopyFrom (configuration); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.