]> git.meshlink.io Git - catta/commitdiff
add a makefile rule for zssh.exe, and add a .pc file for avahi-ui-sharp
authorJames Willcox <snopr@snorp.net>
Thu, 19 Apr 2007 23:12:35 +0000 (23:12 +0000)
committerJames Willcox <snopr@snorp.net>
Thu, 19 Apr 2007 23:12:35 +0000 (23:12 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1445 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

Makefile.am
avahi-ui-sharp.pc.in [new file with mode: 0644]
avahi-ui-sharp/Makefile.am

index bc51911dac3828947042950af9702366ad836922..0411c74fdd545bce3925387f43caf6264dc3ba59 100644 (file)
@@ -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 (file)
index 0000000..cdc35e0
--- /dev/null
@@ -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
index b7f020e851e9e4a8d30f63a486d228cfe1127136..ab58dd24d512fd2d9c4b8625f26fc8440f782fac 100644 (file)
@@ -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)