Skip to content

Commit

Permalink
Add linux platform
Browse files Browse the repository at this point in the history
  • Loading branch information
loodakrawa committed May 28, 2016
1 parent 6d1ccd4 commit 88d0a74
Show file tree
Hide file tree
Showing 12 changed files with 199 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ build/
[Bb]in/
[Oo]bj/
packages/
OpenCover/

# MonoDevelop
*.userprefs
*.usertasks

# Unity
Library/
Expand Down
1 change: 1 addition & 0 deletions SpriterDotNet.MonoGame.Example/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#-------------------------------- References --------------------------------#

/reference:..\..\SpriterDotNet.MonoGame.Importer\bin\Debug\SpriterDotNet.MonoGame.Importer.dll
/reference:..\..\SpriterDotNet.MonoGame.Importer\bin\Debug\SpriterDotNet.MonoGame.dll

#---------------------------------- Content ---------------------------------#

Expand Down
2 changes: 1 addition & 1 deletion SpriterDotNet.MonoGame.Example/Content/Status.spritefont
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Arial</FontName>
<FontName>Ubuntu-R</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
Binary file not shown.
25 changes: 25 additions & 0 deletions SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/OpenTK.dll.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<configuration>
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1" />
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1" />
<dllmap os="linux" dll="openal32.dll" target="libopenal.so.1" />
<dllmap os="linux" dll="alut.dll" target="libalut.so.0" />
<dllmap os="linux" dll="opencl.dll" target="libOpenCL.so" />
<dllmap os="linux" dll="libX11" target="libX11.so.6" />
<dllmap os="linux" dll="libXi" target="libXi.so.6" />
<dllmap os="linux" dll="SDL2.dll" target="libSDL2-2.0.so.0" />
<dllmap os="osx" dll="opengl32.dll" target="/System/Library/Frameworks/OpenGL.framework/OpenGL" />
<dllmap os="osx" dll="openal32.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
<dllmap os="osx" dll="alut.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
<dllmap os="osx" dll="libGLES.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
<dllmap os="osx" dll="libGLESv1_CM.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
<dllmap os="osx" dll="libGLESv2.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
<dllmap os="osx" dll="opencl.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL" />
<dllmap os="osx" dll="SDL2.dll" target="libSDL2.dylib" />
<!-- XQuartz compatibility (X11 on Mac) -->
<dllmap os="osx" dll="libGL.so.1" target="/usr/X11/lib/libGL.dylib" />
<dllmap os="osx" dll="libX11" target="/usr/X11/lib/libX11.dylib" />
<dllmap os="osx" dll="libXcursor.so.1" target="/usr/X11/lib/libXcursor.dylib" />
<dllmap os="osx" dll="libXi" target="/usr/X11/lib/libXi.dylib" />
<dllmap os="osx" dll="libXinerama" target="/usr/X11/lib/libXinerama.dylib" />
<dllmap os="osx" dll="libXrandr.so.2" target="/usr/X11/lib/libXrandr.dylib" />
</configuration>
21 changes: 21 additions & 0 deletions SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) 2015 The original author or authors
//
// This software may be modified and distributed under the terms
// of the zlib license. See the LICENSE file for details.

using System;

namespace SpriterDotNet.MonoGame.Example.WindowsGL
{
public static class Program
{
[STAThread]
static void Main()
{
using (SpriterGame game = new SpriterGame())
{
game.Run();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System.Reflection;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle ("SpriterDotNet.MonoGame.Example.LinuxGL")]
[assembly: AssemblyVersion ("1.0.0.0")]
[assembly: AssemblyFileVersion ("1.0.0.0")]
[assembly: ComVisible (false)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProjectGuid>{1A98EB52-3FB5-4B0F-9745-E1E488A869E0}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SpriterDotNet.MonoGame.Example.WindowsGL</RootNamespace>
<AssemblyName>SpriterDotNet.MonoGame.Example.WindowsGL</AssemblyName>
<FileAlignment>512</FileAlignment>
<MonoGamePlatform>DesktopGL</MonoGamePlatform>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Windows\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;WINDOWS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Windows\Release\</OutputPath>
<DefineConstants>TRACE;WINDOWS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="MonoGame.Framework">
<HintPath>$(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\MonoGame.Framework.dll</HintPath>
</Reference>
<Reference Include="OpenTK">
<HintPath>$(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\OpenTK.dll</HintPath>
</Reference>
<Reference Include="NVorbis">
<HintPath>$(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\NVorbis.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Icon.ico" />
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<MonoGameContentReference Include="..\..\Content\Content.mgcb">
<Link>Content\Content.mgcb</Link>
</MonoGameContentReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\SpriterDotNet.MonoGame\SpriterDotNet.MonoGame.csproj">
<Project>{10c1ed31-6945-4617-85ad-d2575550149d}</Project>
<Name>SpriterDotNet.MonoGame</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="OpenTK.dll.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="..\..\SpriterDotNet.Monogame.Example.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Content.Builder.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MonoGame.Framework.WindowsGL" version="3.4.0.459" targetFramework="net40" />
</packages>
43 changes: 43 additions & 0 deletions SpriterDotNet.MonoGame.Linux.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriterDotNet.MonoGame.Example.LinuxGL", "SpriterDotNet.MonoGame.Example\Platforms\LinuxGL\SpriterDotNet.MonoGame.Example.LinuxGL.csproj", "{12AB7DD0-9164-4D2D-82EF-406F5A26C4FD}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SpriterDotNet.MonoGame.Example", "SpriterDotNet.MonoGame.Example\SpriterDotNet.MonoGame.Example.shproj", "{3EE9E551-B12D-4049-ABDE-862D2A2527B3}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SpriterDotNet", "SpriterDotNet\SpriterDotNet.shproj", "{7142D477-6358-443E-85EF-27C94DE0C7F4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriterDotNet.MonoGame", "SpriterDotNet.MonoGame\SpriterDotNet.MonoGame.csproj", "{10C1ED31-6945-4617-85AD-D2575550149D}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
SpriterDotNet\SpriterDotNet.projitems*{10c1ed31-6945-4617-85ad-d2575550149d}*SharedItemsImports = 4
SpriterDotNet.MonoGame.Example\SpriterDotNet.MonoGame.Example.projitems*{1a98eb52-3fb5-4b0f-9745-e1e488a869e0}*SharedItemsImports = 4
SpriterDotNet.MonoGame.Example\SpriterDotNet.MonoGame.Example.projitems*{3ee9e551-b12d-4049-abde-862d2a2527b3}*SharedItemsImports = 13
SpriterDotNet\SpriterDotNet.projitems*{7142d477-6358-443e-85ef-27c94de0c7f4}*SharedItemsImports = 13
SpriterDotNet.MonoGame.Example\SpriterDotNet.MonoGame.Example.projitems*{9ea4c831-7243-402e-a0aa-a502e6e1549e}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9EA4C831-7243-402E-A0AA-A502E6E1549E}.Debug|x86.ActiveCfg = Debug|x86
{9EA4C831-7243-402E-A0AA-A502E6E1549E}.Debug|x86.Build.0 = Debug|x86
{9EA4C831-7243-402E-A0AA-A502E6E1549E}.Release|x86.ActiveCfg = Release|x86
{9EA4C831-7243-402E-A0AA-A502E6E1549E}.Release|x86.Build.0 = Release|x86
{12AB7DD0-9164-4D2D-82EF-406F5A26C4FD}.Debug|x86.ActiveCfg = Debug|x86
{12AB7DD0-9164-4D2D-82EF-406F5A26C4FD}.Debug|x86.Build.0 = Debug|x86
{12AB7DD0-9164-4D2D-82EF-406F5A26C4FD}.Release|x86.ActiveCfg = Release|x86
{12AB7DD0-9164-4D2D-82EF-406F5A26C4FD}.Release|x86.Build.0 = Release|x86
{10C1ED31-6945-4617-85AD-D2575550149D}.Debug|x86.ActiveCfg = Debug|Any CPU
{10C1ED31-6945-4617-85AD-D2575550149D}.Debug|x86.Build.0 = Debug|Any CPU
{10C1ED31-6945-4617-85AD-D2575550149D}.Release|x86.ActiveCfg = Release|Any CPU
{10C1ED31-6945-4617-85AD-D2575550149D}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

0 comments on commit 88d0a74

Please sign in to comment.