diff options
author | Max Kellermann <max@duempel.org> | 2014-12-08 18:38:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-08 22:33:50 +0100 |
commit | 0f1b1bb44d7dfea657116ef7bf1c4d8fd5cbce24 (patch) | |
tree | 946c6e8d78ef9f0de6828428bdcfbbe69b61f1a2 | |
parent | 16f870aa4129e560b4f6cf4a4e4521ee4621e707 (diff) | |
download | mpd-0f1b1bb44d7dfea657116ef7bf1c4d8fd5cbce24.tar.gz mpd-0f1b1bb44d7dfea657116ef7bf1c4d8fd5cbce24.tar.xz mpd-0f1b1bb44d7dfea657116ef7bf1c4d8fd5cbce24.zip |
configure.ac: add option to disable CUE
-rw-r--r-- | Makefile.am | 14 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | src/playlist/PlaylistRegistry.cxx | 2 |
3 files changed, 17 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index abf039b68..28fa4c520 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1389,15 +1389,10 @@ libplaylist_plugins_a_SOURCES = \ src/playlist/CloseSongEnumerator.hxx \ src/playlist/MemorySongEnumerator.cxx \ src/playlist/MemorySongEnumerator.hxx \ - src/playlist/cue/CueParser.cxx src/playlist/cue/CueParser.hxx \ src/playlist/plugins/ExtM3uPlaylistPlugin.cxx \ src/playlist/plugins/ExtM3uPlaylistPlugin.hxx \ src/playlist/plugins/M3uPlaylistPlugin.cxx \ src/playlist/plugins/M3uPlaylistPlugin.hxx \ - src/playlist/plugins/CuePlaylistPlugin.cxx \ - src/playlist/plugins/CuePlaylistPlugin.hxx \ - src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx \ - src/playlist/plugins/EmbeddedCuePlaylistPlugin.hxx \ src/playlist/plugins/PlsPlaylistPlugin.cxx \ src/playlist/plugins/PlsPlaylistPlugin.hxx \ src/playlist/PlaylistRegistry.cxx src/playlist/PlaylistRegistry.hxx @@ -1411,6 +1406,15 @@ PLAYLIST_LIBS = \ $(EXPAT_LIBS) \ $(FLAC_LIBS) +if ENABLE_CUE +libplaylist_plugins_a_SOURCES += \ + src/playlist/cue/CueParser.cxx src/playlist/cue/CueParser.hxx \ + src/playlist/plugins/CuePlaylistPlugin.cxx \ + src/playlist/plugins/CuePlaylistPlugin.hxx \ + src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx \ + src/playlist/plugins/EmbeddedCuePlaylistPlugin.hxx +endif + if ENABLE_DESPOTIFY libplaylist_plugins_a_SOURCES += \ src/lib/despotify/DespotifyUtils.cxx \ diff --git a/configure.ac b/configure.ac index 5f510d22e..addb278ab 100644 --- a/configure.ac +++ b/configure.ac @@ -787,6 +787,12 @@ MPD_ENABLE_AUTO_PKG(mms, MMS, [libmms >= 0.4], [libmms mms:// protocol support], [libmms not found]) dnl --------------------------------------------------------------------------- +dnl Playlist Plugins +dnl --------------------------------------------------------------------------- + +MPD_ARG_ENABLE(cue, CUE, [CUE sheet parser], yes) + +dnl --------------------------------------------------------------------------- dnl Neighbor Plugins dnl --------------------------------------------------------------------------- diff --git a/src/playlist/PlaylistRegistry.cxx b/src/playlist/PlaylistRegistry.cxx index d7bc3600a..ad0afa628 100644 --- a/src/playlist/PlaylistRegistry.cxx +++ b/src/playlist/PlaylistRegistry.cxx @@ -57,8 +57,10 @@ const struct playlist_plugin *const playlist_plugins[] = { #ifdef ENABLE_SOUNDCLOUD &soundcloud_playlist_plugin, #endif +#ifdef ENABLE_CUE &cue_playlist_plugin, &embcue_playlist_plugin, +#endif nullptr }; |