diff options
author | Max Kellermann <max@duempel.org> | 2008-10-17 21:57:09 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-17 21:57:09 +0200 |
commit | 4ee8da2e694d29efef5f6311d3bf8504d474918f (patch) | |
tree | 868dc1a01c18db170e4259b450263fa507e5504f /src/Makefile.am | |
parent | 25b5d90e448146b6efaf4926680e35aee4a0af6c (diff) | |
download | mpd-4ee8da2e694d29efef5f6311d3bf8504d474918f.tar.gz mpd-4ee8da2e694d29efef5f6311d3bf8504d474918f.tar.xz mpd-4ee8da2e694d29efef5f6311d3bf8504d474918f.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/Makefile.am | 64 |
1 files changed, 48 insertions, 16 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index f36ea5483..70222db0c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,21 +15,6 @@ mpd_audioOutputs = \ audioOutputs/audioOutput_mvp.c \ audioOutputs/audioOutput_jack.c -mpd_inputPlugins = \ - inputPlugins/_flac_common.c \ - inputPlugins/_ogg_common.c \ - inputPlugins/oggflac_plugin.c \ - inputPlugins/oggvorbis_plugin.c \ - inputPlugins/aac_plugin.c \ - inputPlugins/audiofile_plugin.c \ - inputPlugins/flac_plugin.c \ - inputPlugins/mod_plugin.c \ - inputPlugins/mp3_plugin.c \ - inputPlugins/mp4_plugin.c \ - inputPlugins/mpc_plugin.c \ - inputPlugins/wavpack_plugin.c - - mpd_headers = \ notify.h \ ack.h \ @@ -118,7 +103,6 @@ mpd_headers = \ mpd_SOURCES = \ $(mpd_headers) \ $(mpd_audioOutputs) \ - $(mpd_inputPlugins) \ notify.c \ audio.c \ audioOutput.c \ @@ -194,6 +178,54 @@ if HAVE_ID3TAG mpd_SOURCES += tag_id3.c endif + +# decoder plugins + +if HAVE_MAD +mpd_SOURCES += inputPlugins/mp3_plugin.c +endif + +if HAVE_MPCDEC +mpd_SOURCES += inputPlugins/mpc_plugin.c +endif + +if HAVE_WAVPACK +mpd_SOURCES += inputPlugins/wavpack_plugin.c +endif + +if HAVE_FAAD +mpd_SOURCES += inputPlugins/aac_plugin.c inputPlugins/mp4_plugin.c +endif + +if HAVE_OGG_COMMON +mpd_SOURCES += inputPlugins/_ogg_common.c +endif + +if HAVE_FLAC_COMMON +mpd_SOURCES += inputPlugins/_flac_common.c +endif + +if HAVE_OGGVORBIS +mpd_SOURCES += inputPlugins/oggvorbis_plugin.c +endif + +if HAVE_FLAC +mpd_SOURCES += inputPlugins/flac_plugin.c +endif + +if HAVE_OGGFLAC +mpd_SOURCES += inputPlugins/oggflac_plugin.c +endif + +if HAVE_AUDIOFILE +mpd_SOURCES += inputPlugins/audiofile_plugin.c +endif + +if HAVE_MIKMOD +mpd_SOURCES += inputPlugins/mod_plugin.c +endif + + if HAVE_ZEROCONF mpd_SOURCES += zeroconf.c endif |