summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)