[alsa-devel] Alsa lib configure asoundlib.h
Fausto Carvalho Marques SIlva
fausto at tse.gov.br
Thu Jul 5 17:15:06 CEST 2007
In salsa library(this library really saved my life, from am alsa-lib of
600K to 45K!!!), developed by Takashi Iwai, the creation of asoundlib.h
is dynamic and based on the configure options ( --disable-mixer will
remove mixer.h from asoundlib.h).
Can alsa-lib do the same??I think it is a good "cleanup" way of doing
client header files.
Example from configure.ac from salsa-0.0.6:
"
echo "Creating asoundlib.h..."
cp "$srcdir"/src/asoundlib-head.h src/asoundlib.h
test "$mixer" = "yes" && echo "#include \"mixer.h\"" >> src/asoundlib.h
test "$rawmidi" = "yes" && echo "#include \"rawmidi.h\"" >> src/asoundlib.h
test "$hwdep" = "yes" && echo "#include \"hwdep.h\"" >> src/asoundlib.h
test "$timer" = "yes" && echo "#include \"timer.h\"" >> src/asoundlib.h
test "$sndconf" = "yes" && echo "#include \"conf.h\"" >> src/asoundlib.h
test "$sndseq" = "yes" && echo "#include \"seq_event.h\"" >> src/asoundlib.h
test "$sndseq" = "yes" && echo "#include \"seq.h\"" >> src/asoundlib.h
test "$sndseq" = "yes" && echo "#include \"seqmid.h\"" >> src/asoundlib.h
cat "$srcdir"/src/asoundlib-tail.h >> src/asoundlib.h
"
Fausto Carvalho Marques Silva
More information about the Alsa-devel
mailing list