From 4ee8da2e694d29efef5f6311d3bf8504d474918f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Oct 2008 21:57:09 +0200 Subject: Makefile.am: don't compile disabled decoder plugins Don't compile the sources of disabled decoder plugins at all, and don't attempt to register these. --- src/decoder_list.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/decoder_list.c') diff --git a/src/decoder_list.c b/src/decoder_list.c index 6626f556a..4aab73bda 100644 --- a/src/decoder_list.c +++ b/src/decoder_list.c @@ -151,16 +151,34 @@ void decoder_plugin_init_all(void) inputPlugin_list = makeList(NULL, 1); /* load plugins here */ +#ifdef HAVE_MAD decoder_plugin_load(&mp3Plugin); +#endif +#ifdef HAVE_OGGVORBIS decoder_plugin_load(&oggvorbisPlugin); +#endif +#ifdef HAVE_FLAC_COMMON decoder_plugin_load(&oggflacPlugin); +#endif +#ifdef HAVE_FLAC decoder_plugin_load(&flacPlugin); +#endif +#ifdef HAVE_AUDIOFILE decoder_plugin_load(&audiofilePlugin); +#endif +#ifdef HAVE_FAAD decoder_plugin_load(&mp4Plugin); decoder_plugin_load(&aacPlugin); +#endif +#ifdef HAVE_MPCDEC decoder_plugin_load(&mpcPlugin); +#endif +#ifdef HAVE_WAVPACK decoder_plugin_load(&wavpackPlugin); +#endif +#ifdef HAVE_MIKMOD decoder_plugin_load(&modPlugin); +#endif } void decoder_plugin_deinit_all(void) -- cgit v1.2.3