From be7ce5a2f7f46e48c391d9b9c7501e4e138fc8c5 Mon Sep 17 00:00:00 2001 From: James Willcox Date: Thu, 19 Apr 2007 23:12:35 +0000 Subject: [PATCH] add a makefile rule for zssh.exe, and add a .pc file for avahi-ui-sharp git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1445 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- Makefile.am | 13 ++++++++++--- avahi-ui-sharp.pc.in | 9 +++++++++ avahi-ui-sharp/Makefile.am | 5 ++++- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 avahi-ui-sharp.pc.in diff --git a/Makefile.am b/Makefile.am index bc51911..0411c74 100644 --- a/Makefile.am +++ b/Makefile.am @@ -45,6 +45,7 @@ EXTRA_DIST = \ avahi-qt3.pc.in \ avahi-qt4.pc.in \ avahi-sharp.pc.in \ + avahi-ui-sharp.pc.in \ avahi-compat-libdns_sd.pc.in \ avahi-compat-howl.pc.in \ avahi-ui.pc.in @@ -70,7 +71,8 @@ SUBDIRS = \ avahi-compat-libdns_sd \ avahi-compat-howl \ avahi-autoipd \ - avahi-ui + avahi-ui \ + avahi-ui-sharp DX_INPUT = \ $(srcdir)/avahi-common/address.h \ @@ -181,14 +183,19 @@ endif if HAVE_MONO -pkgconfig_DATA += avahi-sharp.pc +pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc avahi-sharp.pc: avahi-sharp.pc.in sed -e 's,@prefix\@,$(prefix),g' \ -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ -e 's,@libdir\@,$(libdir),g' $< > $@ -CLEANFILES += avahi-sharp.pc +avahi-ui-sharp.pc: avahi-ui-sharp.pc.in + sed -e 's,@prefix\@,$(prefix),g' \ + -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ + -e 's,@libdir\@,$(libdir),g' $< > $@ + +CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc endif diff --git a/avahi-ui-sharp.pc.in b/avahi-ui-sharp.pc.in new file mode 100644 index 0000000..cdc35e0 --- /dev/null +++ b/avahi-ui-sharp.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +exec_prefix=@prefix@ +libdir=@libdir@ + +Name: avahi-ui-sharp +Description: Mono bindings for the Avahi mDNS/DNS-SD stack +Version: @PACKAGE_VERSION@ +Requires: gtk-sharp-2.0 +Libs: -r:${libdir}/mono/avahi-ui-sharp/avahi-ui-sharp.dll diff --git a/avahi-ui-sharp/Makefile.am b/avahi-ui-sharp/Makefile.am index b7f020e..ab58dd2 100644 --- a/avahi-ui-sharp/Makefile.am +++ b/avahi-ui-sharp/Makefile.am @@ -37,9 +37,12 @@ $(ASSEMBLY): $(AVAHISOURCES) $(ASSEMBLY).config: $(ASSEMBLY).config.in $(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@ +zssh.exe: zssh.cs + mcs -out:$@ zssh.cs -r:./avahi-ui-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix + if HAVE_MONO if HAVE_DBUS -all: $(ASSEMBLY) $(ASSEMBLY).config +all: $(ASSEMBLY) $(ASSEMBLY).config zssh.exe if HAVE_MONODOC update-docs: $(ASSEMBLY) -- 2.39.5