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.
This commit is contained in:
Max Kellermann
2008-10-17 21:57:09 +02:00
parent 25b5d90e44
commit 4ee8da2e69
17 changed files with 103 additions and 159 deletions

View File

@@ -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)