[MonoDevelop] pkg-config file for compiling external Addins

Peter Johanson latexer@gentoo.org
Tue, 5 Apr 2005 20:41:35 -0700


--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hey,

Currently, it seems less than trivial to find and reference the
monodevelop libs when trying to compile Addins that aren't part of the
MD tree (like the Boo addin i've been working on). Attached is a diff
that adds a monodevelop-addin.pc file, making it just a matter of "mcs
-pkg:monodevelop-addin *.cs" to compile your addin.

It might also be nice to add some extra variables for, say, the icon
directory, the Addins dir, etc, to make installation of external Addins
nicer as well, but i figured i'd wait for feedback before adding those
items.

Thoughts?

-pete

-- 
Peter Johanson
<latexer@gentoo.org>

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="monodevelop-svn-addin-pkgconfig.diff"

Index: configure.in
===================================================================
--- configure.in	(revision 2423)
+++ configure.in	(working copy)
@@ -208,6 +220,7 @@
 Core/src/MonoDevelop.Gui.Utils/AssemblyInfo.cs
 Core/src/MonoDevelop.Core/AssemblyInfo.cs
 monodevelop
+monodevelop-addin.pc
 po/Makefile.in
 Core/src/AddIns/prj2make-sharp-lib/Makefile
 Core/src/AddIns/prj2make-sharp-lib/AssemblyInfo.cs
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 2423)
+++ Makefile.am	(working copy)
@@ -16,6 +16,10 @@
 xdgmimedir = $(gnome_data)/mime/packages
 xdgmime_DATA = monodevelop.xml
 
+pkgconfig_in_files = monodevelop-addin.pc.in
+pkgconfigdir= $(libdir)/pkgconfig
+pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
+
 install-data-hook:
 	$(UPDATE_MIME_DB) $(gnome_data)/mime
 
Index: monodevelop-addin.pc.in
===================================================================
--- monodevelop-addin.pc.in	(revision 0)
+++ monodevelop-addin.pc.in	(revision 0)
@@ -0,0 +1,8 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+                                                                                
+Name: MonoDevelop
+Description: Free .NET Development Environment
+Version: @VERSION@
+Libs: -r:${libdir}/monodevelop/bin/MonoDevelop.Base.dll -r:${libdir}/monodevelop/bin/MonoDevelop.Core.dll -r:${libdir}/monodevelop/bin/MonoDevelop.SourceEditor.dll -r:${libdir}/monodevelop/bin/MonoDevelop.Gui.Utils.dll -r:${libdir}/monodevelop/bin/MonoDevelop.Gui.Widgets.dll -r:${libdir}/monodevelop/bin/ICSharpCode.SharpRefactory.dll -r:${libdir}/monodevelop/bin/ICSharpCode.SharpAssembly.dll

--T4sUOijqQbZv57TR--