output: don't compile plugins which are disabled
Don't compile the sources of disabled output plugins at all.
This commit is contained in:
@@ -17,8 +17,10 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
#ifdef HAVE_ALSA
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
#define ALSA_PCM_NEW_HW_PARAMS_API
|
||||
#define ALSA_PCM_NEW_SW_PARAMS_API
|
||||
@@ -27,11 +29,6 @@ static const char default_device[] = "default";
|
||||
|
||||
#define MPD_ALSA_RETRY_NR 5
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
|
||||
snd_pcm_uframes_t size);
|
||||
|
||||
@@ -437,8 +434,3 @@ const struct audio_output_plugin alsaPlugin = {
|
||||
.cancel = alsa_dropBufferedAudio,
|
||||
.close = alsa_closeDevice,
|
||||
};
|
||||
|
||||
#else /* HAVE ALSA */
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(alsaPlugin)
|
||||
#endif /* HAVE_ALSA */
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_AO
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
@@ -246,8 +243,3 @@ const struct audio_output_plugin aoPlugin = {
|
||||
.cancel = audioOutputAo_dropBufferedAudio,
|
||||
.close = audioOutputAo_closeDevice,
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(aoPlugin)
|
||||
#endif
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_FIFO
|
||||
|
||||
#include "../log.h"
|
||||
#include "../utils.h"
|
||||
#include "../timer.h"
|
||||
@@ -282,9 +279,3 @@ const struct audio_output_plugin fifoPlugin = {
|
||||
.cancel = fifo_dropBufferedAudio,
|
||||
.close = fifo_closeDevice,
|
||||
};
|
||||
|
||||
#else /* HAVE_FIFO */
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(fifoPlugin)
|
||||
|
||||
#endif /* !HAVE_FIFO */
|
||||
|
||||
@@ -16,9 +16,6 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_JACK
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
@@ -478,9 +475,3 @@ const struct audio_output_plugin jackPlugin = {
|
||||
.cancel = mpd_jack_cancel,
|
||||
.close = mpd_jack_close,
|
||||
};
|
||||
|
||||
#else /* HAVE JACK */
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(jackPlugin)
|
||||
|
||||
#endif /* HAVE_JACK */
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_MVP
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
@@ -273,8 +270,3 @@ const struct audio_output_plugin mvpPlugin = {
|
||||
.cancel = mvp_dropBufferedAudio,
|
||||
.close = mvp_closeDevice,
|
||||
};
|
||||
|
||||
#else /* HAVE_MVP */
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(mvpPlugin)
|
||||
#endif /* HAVE_MVP */
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_OSS
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
@@ -564,8 +561,3 @@ const struct audio_output_plugin ossPlugin = {
|
||||
.cancel = oss_dropBufferedAudio,
|
||||
.close = oss_closeDevice,
|
||||
};
|
||||
|
||||
#else /* HAVE OSS */
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(ossPlugin)
|
||||
#endif /* HAVE_OSS */
|
||||
|
||||
+2
-10
@@ -17,14 +17,11 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_OSX
|
||||
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
#include <AudioUnit/AudioUnit.h>
|
||||
|
||||
typedef struct _OsxData {
|
||||
AudioUnit au;
|
||||
pthread_mutex_t mutex;
|
||||
@@ -361,8 +358,3 @@ const struct audio_output_plugin osxPlugin = {
|
||||
.cancel = osx_dropBufferedAudio,
|
||||
.close = osx_closeDevice,
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(osxPlugin)
|
||||
#endif
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_PULSE
|
||||
|
||||
#include "../utils.h"
|
||||
#include "../log.h"
|
||||
|
||||
@@ -211,8 +208,3 @@ const struct audio_output_plugin pulsePlugin = {
|
||||
.cancel = pulse_dropBufferedAudio,
|
||||
.close = pulse_closeDevice,
|
||||
};
|
||||
|
||||
#else /* HAVE_PULSE */
|
||||
|
||||
DISABLED_AUDIO_OUTPUT_PLUGIN(pulsePlugin)
|
||||
#endif /* HAVE_PULSE */
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
*/
|
||||
|
||||
#include "shout_plugin.h"
|
||||
|
||||
#ifdef HAVE_SHOUT_MP3
|
||||
|
||||
#include "../utils.h"
|
||||
|
||||
#include <lame/lame.h>
|
||||
|
||||
struct lame_data {
|
||||
@@ -184,5 +182,3 @@ const struct shout_encoder_plugin shout_mp3_encoder = {
|
||||
shout_mp3_encoder_init_encoder,
|
||||
shout_mp3_encoder_send_metadata,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
*/
|
||||
|
||||
#include "shout_plugin.h"
|
||||
|
||||
#ifdef HAVE_SHOUT_OGG
|
||||
|
||||
#include "../utils.h"
|
||||
|
||||
#include <vorbis/vorbisenc.h>
|
||||
|
||||
struct ogg_vorbis_data {
|
||||
@@ -302,5 +300,3 @@ const struct shout_encoder_plugin shout_ogg_encoder = {
|
||||
shout_ogg_encoder_init_encoder,
|
||||
shout_ogg_encoder_send_metadata,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
#define AUDIO_OUTPUT_SHOUT_H
|
||||
|
||||
#include "../output_api.h"
|
||||
|
||||
#ifdef HAVE_SHOUT
|
||||
|
||||
#include "../conf.h"
|
||||
#include "../timer.h"
|
||||
|
||||
@@ -89,5 +86,3 @@ extern const struct shout_encoder_plugin shout_mp3_encoder;
|
||||
extern const struct shout_encoder_plugin shout_ogg_encoder;
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user