[MonoDevelop] pkg-config file for compiling external Addins

Peter Johanson latexer@gentoo.org
Sun, 17 Apr 2005 11:23:52 -0700


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

On Sun, Apr 17, 2005 at 11:50:08AM -0400, John Luke wrote:
> 
> Hello,
> 
> On Tue, 2005-04-05 at 20:41 -0700, Peter Johanson wrote:
> > 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.
> > 
> Can we just call it monodevelop.pc? I would much prefer that.
> You should add the generated .pc file to DISTCLEANFILES and the .in file
> to EXTRA_DIST.
> The rest looks ok.

Ok, attached is a new version with the changes suggested. (some line
numbers may be off, due to some other changes I chopped out of the
patch)

> 
> > 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.
> 
> Lets wait until we find out what will be needed.

fair enough.

-pete

-- 
Peter Johanson
<latexer@gentoo.org>

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

Index: configure.in
===================================================================
--- configure.in	(revision 2453)
+++ configure.in	(working copy)
@@ -208,6 +220,7 @@
 Core/src/MonoDevelop.Gui.Utils/AssemblyInfo.cs
 Core/src/MonoDevelop.Core/AssemblyInfo.cs
 monodevelop
+monodevelop.pc
 po/Makefile.in
 Core/src/AddIns/prj2make-sharp-lib/Makefile
 Core/src/AddIns/prj2make-sharp-lib/AssemblyInfo.cs
Index: monodevelop.pc.in
===================================================================
--- monodevelop.pc.in	(revision 0)
+++ monodevelop.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
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 2453)
+++ Makefile.am	(working copy)
@@ -16,6 +16,10 @@
 xdgmimedir = $(gnome_data)/mime/packages
 xdgmime_DATA = monodevelop.xml
 
+pkgconfig_in_files = monodevelop.pc.in
+pkgconfigdir= $(libdir)/pkgconfig
+pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
+
 install-data-hook:
 	$(UPDATE_MIME_DB) $(gnome_data)/mime
 
@@ -41,7 +45,8 @@
 # we can't use the variables that are conditionally defined
 EXTRA_DIST = $(bin_SCRIPTS) $(desktop_DATA) $(pixmap_DATA) \
 	monodevelop.xml mkinstalldirs intltool-extract.in \
-	intltool-merge.in intltool-update.in
+	intltool-merge.in intltool-update.in monodevelop.pc.in
 
-DISTCLEANFILES = monodevelop intltool-extract intltool-merge intltool-update
+DISTCLEANFILES = monodevelop intltool-extract intltool-merge intltool-update \
+	monodevelop.pc
 

--SO98HVl1bnMOfKZd--