]> git.meshlink.io Git - catta/blobdiff - avahi-sharp/Makefile.am
build pkg-config for compat layers only when the compat layers are enabled
[catta] / avahi-sharp / Makefile.am
index 12947f04b13f2581d91f9045d22fcb3e8a84fff9..6f106677a4710fd7f4a2e853cd4f20a2b45264ce 100644 (file)
 
 ASSEMBLY = avahi-sharp.dll
 
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
+CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config
 
 AVAHISOURCES =                                 \
        $(srcdir)/AddressResolver.cs    \
        $(srcdir)/AssemblyInfo.cs       \
+       $(srcdir)/BrowserBase.cs        \
        $(srcdir)/Client.cs             \
        $(srcdir)/ClientException.cs    \
        $(srcdir)/DomainBrowser.cs      \
        $(srcdir)/EntryGroup.cs         \
        $(srcdir)/HostNameResolver.cs   \
+       $(srcdir)/RecordBrowser.cs      \
+       $(srcdir)/ResolverBase.cs       \
        $(srcdir)/ServiceBrowser.cs     \
        $(srcdir)/ServiceResolver.cs    \
        $(srcdir)/ServiceTypeBrowser.cs \
@@ -38,17 +41,23 @@ EXTRA_DIST =                                \
        $(AVAHISOURCES)                 \
        $(srcdir)/AvahiTest.cs          \
        $(srcdir)/avahi.snk             \
-       $(srcdir)/avahi-sharp.dll.config        \
+       $(srcdir)/$(ASSEMBLY).config.in \
        $(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)
+if HAVE_DBUS
+all: $(ASSEMBLY) $(ASSEMBLY).config
 
 if HAVE_MONODOC
 update-docs: $(ASSEMBLY)
@@ -67,4 +76,6 @@ install-data-hook: $(ASSEMBLY)
 
 uninstall-hook: $(ASSEMBLY)
        $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
+
+endif
 endif