]> git.meshlink.io Git - catta/commitdiff
automatically figure out the dlnames for the unmanaged libs
authorJames Willcox <snopr@snorp.net>
Sun, 25 Sep 2005 23:22:36 +0000 (23:22 +0000)
committerJames Willcox <snopr@snorp.net>
Sun, 25 Sep 2005 23:22:36 +0000 (23:22 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@625 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-sharp/Makefile.am
avahi-sharp/avahi-sharp.dll.config [deleted file]
avahi-sharp/avahi-sharp.dll.config.in [new file with mode: 0644]

index 12947f04b13f2581d91f9045d22fcb3e8a84fff9..4095eca8276f512e2b38522187aa77e06b07f579 100644 (file)
@@ -19,7 +19,7 @@
 
 ASSEMBLY = avahi-sharp.dll
 
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
+CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config
 
 AVAHISOURCES =                                 \
        $(srcdir)/AddressResolver.cs    \
@@ -38,17 +38,22 @@ EXTRA_DIST =                                \
        $(AVAHISOURCES)                 \
        $(srcdir)/AvahiTest.cs          \
        $(srcdir)/avahi.snk             \
-       $(srcdir)/avahi-sharp.dll.config        \
+       $(srcdir)/$(ASSEMBLY).config    \
        $(srcdir)/avahi-sharp-docs.source       \
        $(srcdir)/en/*.xml              \
-       $(srcdir)/en/*/*.xml
-
+       $(srcdir)/en/*/*.xml            \
+       $(srcdir)/gencfg.sh
 
 $(ASSEMBLY): $(AVAHISOURCES)
        mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix
 
+
+$(ASSEMBLY).config: $(ASSEMBLY).config.in
+       $(srcdir)/gencfg.sh $(top_builddir)/avahi-client/libavahi-client.la \
+               $(top_builddir)/avahi-common/libavahi-common.la < $< > $@
+
 if HAVE_MONO
-all: $(ASSEMBLY)
+all: $(ASSEMBLY) $(ASSEMBLY).config
 
 if HAVE_MONODOC
 update-docs: $(ASSEMBLY)
diff --git a/avahi-sharp/avahi-sharp.dll.config b/avahi-sharp/avahi-sharp.dll.config
deleted file mode 100644 (file)
index bbd1b3e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<configuration>
-  <dllmap dll="avahi-client" target="libavahi-client.so.1"/>
-  <dllmap dll="avahi-common" target="libavahi-common.so.0"/>
-  <dllmap dll="avahi-glib" target="libavahi-glib.so.0"/>
-</configuration>
diff --git a/avahi-sharp/avahi-sharp.dll.config.in b/avahi-sharp/avahi-sharp.dll.config.in
new file mode 100644 (file)
index 0000000..56c7bd4
--- /dev/null
@@ -0,0 +1,5 @@
+<configuration>
+  <dllmap dll="avahi-client" target="@CLIENT_DLNAME@"/>
+  <dllmap dll="avahi-common" target="@COMMON_DLNAME@"/>
+  <dllmap dll="avahi-glib" target="libavahi-glib.so.0"/>
+</configuration>