summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Willcox <snopr@snorp.net>2007-04-19 23:12:35 +0000
committerJames Willcox <snopr@snorp.net>2007-04-19 23:12:35 +0000
commitbe7ce5a2f7f46e48c391d9b9c7501e4e138fc8c5 (patch)
tree1aa6d6859ee2c35e3c8d15baede61b5cd2592dc6
parent3025a26988fe2de9d14867056c945e20f490ec1e (diff)
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
-rw-r--r--Makefile.am13
-rw-r--r--avahi-ui-sharp.pc.in9
-rw-r--r--avahi-ui-sharp/Makefile.am5
3 files changed, 23 insertions, 4 deletions
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)