From 88d0a743908f4bc794d8d519b5a2471e39a7c5c1 Mon Sep 17 00:00:00 2001 From: loodakrawa Date: Sat, 28 May 2016 13:39:27 +1000 Subject: [PATCH] Add linux platform --- .gitignore | 5 +- .../Content/Content.mgcb | 1 + .../Content/Status.spritefont | 2 +- .../Content/Ubuntu-R.ttf | Bin 0 -> 353824 bytes .../Platforms/LinuxGL/App.config | 6 ++ .../Platforms/LinuxGL/Icon.ico | Bin 0 -> 147541 bytes .../Platforms/LinuxGL/OpenTK.dll.config | 25 +++++ .../Platforms/LinuxGL/Program.cs | 21 +++++ .../LinuxGL/Properties/AssemblyInfo.cs | 7 ++ ...iterDotNet.MonoGame.Example.LinuxGL.csproj | 87 ++++++++++++++++++ .../Platforms/LinuxGL/packages.config | 4 + SpriterDotNet.MonoGame.Linux.sln | 43 +++++++++ 12 files changed, 199 insertions(+), 2 deletions(-) create mode 100644 SpriterDotNet.MonoGame.Example/Content/Ubuntu-R.ttf create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/App.config create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Icon.ico create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/OpenTK.dll.config create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Program.cs create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Properties/AssemblyInfo.cs create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/SpriterDotNet.MonoGame.Example.LinuxGL.csproj create mode 100644 SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/packages.config create mode 100644 SpriterDotNet.MonoGame.Linux.sln diff --git a/.gitignore b/.gitignore index 6358cd7..f245a25 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,10 @@ build/ [Bb]in/ [Oo]bj/ packages/ -OpenCover/ + +# MonoDevelop +*.userprefs +*.usertasks # Unity Library/ diff --git a/SpriterDotNet.MonoGame.Example/Content/Content.mgcb b/SpriterDotNet.MonoGame.Example/Content/Content.mgcb index 8092ca8..fb883cd 100644 --- a/SpriterDotNet.MonoGame.Example/Content/Content.mgcb +++ b/SpriterDotNet.MonoGame.Example/Content/Content.mgcb @@ -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 ---------------------------------# diff --git a/SpriterDotNet.MonoGame.Example/Content/Status.spritefont b/SpriterDotNet.MonoGame.Example/Content/Status.spritefont index 539e882..6d14560 100644 --- a/SpriterDotNet.MonoGame.Example/Content/Status.spritefont +++ b/SpriterDotNet.MonoGame.Example/Content/Status.spritefont @@ -11,7 +11,7 @@ with. - Arial + Ubuntu-R + + + + + + + diff --git a/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Program.cs b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Program.cs new file mode 100644 index 0000000..d909fb7 --- /dev/null +++ b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Program.cs @@ -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(); + } + } + } +} diff --git a/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Properties/AssemblyInfo.cs b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..403e725 --- /dev/null +++ b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/Properties/AssemblyInfo.cs @@ -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)] diff --git a/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/SpriterDotNet.MonoGame.Example.LinuxGL.csproj b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/SpriterDotNet.MonoGame.Example.LinuxGL.csproj new file mode 100644 index 0000000..25c64b0 --- /dev/null +++ b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/SpriterDotNet.MonoGame.Example.LinuxGL.csproj @@ -0,0 +1,87 @@ + + + + + Debug + x86 + {1A98EB52-3FB5-4B0F-9745-E1E488A869E0} + Exe + Properties + SpriterDotNet.MonoGame.Example.WindowsGL + SpriterDotNet.MonoGame.Example.WindowsGL + 512 + DesktopGL + v4.5 + + + + x86 + true + full + false + bin\Windows\Debug\ + DEBUG;TRACE;WINDOWS + prompt + 4 + + + x86 + pdbonly + true + bin\Windows\Release\ + TRACE;WINDOWS + prompt + 4 + + + Icon.ico + + + + $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\MonoGame.Framework.dll + + + $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\OpenTK.dll + + + $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\NVorbis.dll + + + + + + + + + + + + + + + + Content\Content.mgcb + + + + + {10c1ed31-6945-4617-85ad-d2575550149d} + SpriterDotNet.MonoGame + + + + + PreserveNewest + + + + + + + \ No newline at end of file diff --git a/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/packages.config b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/packages.config new file mode 100644 index 0000000..5d0a6fd --- /dev/null +++ b/SpriterDotNet.MonoGame.Example/Platforms/LinuxGL/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/SpriterDotNet.MonoGame.Linux.sln b/SpriterDotNet.MonoGame.Linux.sln new file mode 100644 index 0000000..3b119af --- /dev/null +++ b/SpriterDotNet.MonoGame.Linux.sln @@ -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