view libpurple/protocols/bonjour/Makefile.am @ 17733:d7b50cac1c7a

This is a patch from Chris Davies to make Bonjour work on Windows using the Apple Bonjour framework. It turns out that the actual DNS-SD library is (3 clause) BSD licensed, so we can use it. There are a few changes by me, mainly to fix the howl implementation. Fixes #1117 . There appear to be a few bugs, but I believe that they were also present previously. I'm hoping to do some more tweaking before the next release. The howl implementation will eventually be supersceded by a native avahi implementation, so I opted for a somewhat dirty hack to enable it instead of doing something with config.h.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 05 Jun 2007 03:38:22 +0000
parents 441945083737
children 316be7e715c6
line wrap: on
line source

EXTRA_DIST = \
		mdns_win32.c \
		mdns_win32.h \
		Makefile.mingw

pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)

BONJOURSOURCES = \
	bonjour.c \
	bonjour.h \
	buddy.c \
	buddy.h \
	dns_sd_proxy.h \
	jabber.c \
	jabber.h \
	mdns_common.c \
	mdns_common.h \
	mdns_howl.c \
	mdns_howl.h \
	mdns_types.h

AM_CFLAGS = $(st) -DUSE_BONJOUR_HOWL

libbonjour_la_LDFLAGS = -module -avoid-version

if STATIC_BONJOUR

st = -DPURPLE_STATIC_PRPL
noinst_LIBRARIES     = libbonjour.a
libbonjour_a_SOURCES = $(BONJOURSOURCES)
libbonjour_a_CFLAGS  = $(AM_CFLAGS)
libbonjour_a_LIBADD  = $(HOWL_LIBS)

else

st =
pkg_LTLIBRARIES       = libbonjour.la
libbonjour_la_SOURCES = $(BONJOURSOURCES)
libbonjour_la_LIBADD   = $(GLIB_LIBS) $(HOWL_LIBS)

endif


AM_CPPFLAGS = \
	-I$(top_srcdir)/libpurple \
	-I$(top_builddir)/libpurple \
	$(GLIB_CFLAGS) \
	$(DEBUG_CFLAGS) \
	$(HOWL_CFLAGS)