[pulseaudio-discuss] Airtunes

Lennart Poettering lennart at poettering.net
Thu Mar 27 17:20:13 PDT 2008


On Fri, 28.03.08 00:29, Sjoerd Simons (sjoerd at luon.net) wrote:

> > Hmm, depends. It's up to you. A #ifdef based solution might be useful,
> > i.e. conditional compilation of the RAOP and module-tunnel parts of
> > zc-discover. That way you'd be able to share a single source and build
> > two seperate modules of it. OTOH conditional compilation is a bit out
> > of fashion these days. The alternative might be to split zc-disocver
> > into three C files, and then compile two of them for one module and
> > then two others for the other modules, if you understand what I mean.
> 
> Conditional compilation is indeed troublesome for distributions and most will
> choose to just compile with all options as long as that doesn't pull in major
> depends. But assuming that RAOP discovery is pure dns-sd. Then the extra code
> for ROAP in zeroconf-discover should be minimal right?

Uh?

The way I recommended to do conditional compilation is via the same
mech as module-tunnel is currently built in two flavours. The
distribtion doesn't even notice. It's not exposed via configure. It's
just that the same source file appears twice in the makefile, with
different defines.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list