Skip to content

Commit

Permalink
Merge pull request #523 from directhex/develop
Browse files Browse the repository at this point in the history
Project template and deployment fixes for Linux
  • Loading branch information
dellis1972 committed Jun 15, 2012
2 parents 0a873a9 + e23c977 commit a7c987f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
Expand Up @@ -52,6 +52,29 @@ public override bool SupportsFramework (MonoDevelop.Core.Assemblies.TargetFramew
else
return base.SupportsFramework (framework);
}

protected override void PopulateSupportFileList (MonoDevelop.Projects.FileCopySet list, ConfigurationSelector solutionConfiguration)
{
base.PopulateSupportFileList (list, solutionConfiguration);

//HACK: workaround for MD not local-copying package references
foreach (var projectReference in References) {
if (projectReference.Package != null && projectReference.Package.Name == "monogame") {
if (projectReference.ReferenceType == ReferenceType.Gac) {
foreach (var assem in projectReference.Package.Assemblies) {
list.Add (assem.Location);
var cfg = (MonoGameProjectConfiguration)solutionConfiguration.GetConfiguration (this);
if (cfg.DebugMode) {
var mdbFile = TargetRuntime.GetAssemblyDebugInfoFile (assem.Location);
if (System.IO.File.Exists (mdbFile))
list.Add (mdbFile);
}
}
}
break;
}
}
}
}

public class MonoGameProjectBinding : IProjectBinding
Expand Down
Expand Up @@ -26,9 +26,7 @@
<Reference type="Gac" refto="OpenTK" />
<Reference type="Gac" refto="MonoGame.Framework.Linux" />
<Reference type="Gac" refto="Lidgren.Network" />
<Reference type="Gac" refto="GamepadBridge.dll" />
<Reference type="Gac" refto="GamepadConfigControls.dll" />
<Reference type="Gac" refto="Tao.Sdl.dll" />
<Reference type="Gac" refto="Tao.Sdl" />
</References>
<Files>
<File name="Game1.cs" src="MonoGameApplication/Game1.cs" />
Expand Down
9 changes: 9 additions & 0 deletions monogame.pc
@@ -0,0 +1,9 @@
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/monogame

Name: MonoGame
Description: Free implementation of XNA
Version: 2.5
Requires: opentk tao-sdl
Libs: -r:${libdir}/MonoGame.Framework.Linux.dll -r:${libdir}/Lidgren.Network.dll

0 comments on commit a7c987f

Please sign in to comment.