aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am501
1 files changed, 442 insertions, 59 deletions
diff --git a/Makefile.am b/Makefile.am
index 083c72a5f..88eebe60f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,12 +1,17 @@
ACLOCAL_AMFLAGS = -I m4
-AUTOMAKE_OPTIONS = foreign 1.9 dist-bzip2
+AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects
AM_CPPFLAGS = -I$(srcdir)/src $(GLIB_CFLAGS)
+AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"'
+
bin_PROGRAMS = src/mpd
+noinst_LIBRARIES =
+
src_mpd_CFLAGS = $(AM_CFLAGS) $(MPD_CFLAGS)
src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(LIBWRAP_CFLAGS) \
$(SQLITE_CFLAGS) \
$(ARCHIVE_CFLAGS) \
$(INPUT_CFLAGS) \
@@ -16,6 +21,7 @@ src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \
$(FILTER_CFLAGS) \
$(OUTPUT_CFLAGS)
src_mpd_LDADD = $(MPD_LIBS) \
+ $(LIBWRAP_LDFLAGS) \
$(SQLITE_LIBS) \
$(ARCHIVE_LIBS) \
$(INPUT_LIBS) \
@@ -27,10 +33,13 @@ src_mpd_LDADD = $(MPD_LIBS) \
$(GLIB_LIBS)
mpd_headers = \
+ src/check.h \
src/notify.h \
src/ack.h \
+ src/ape.h \
src/audio.h \
src/audio_format.h \
+ src/audio_check.h \
src/audio_parser.h \
src/output_internal.h \
src/output_api.h \
@@ -42,7 +51,15 @@ mpd_headers = \
src/output_state.h \
src/output_print.h \
src/output_command.h \
- src/buffer2array.h \
+ src/filter_internal.h \
+ src/filter_config.h \
+ src/filter_plugin.h \
+ src/filter_registry.h \
+ src/filter/autoconvert_filter_plugin.h \
+ src/filter/chain_filter_plugin.h \
+ src/filter/convert_filter_plugin.h \
+ src/filter/replay_gain_filter_plugin.h \
+ src/filter/volume_filter_plugin.h \
src/command.h \
src/idle.h \
src/cmdline.h \
@@ -64,23 +81,40 @@ mpd_headers = \
src/encoder_plugin.h \
src/encoder_list.h \
src/encoder_api.h \
+ src/exclude.h \
+ src/fd_util.h \
src/fifo_buffer.h \
+ src/glib_compat.h \
src/update.h \
+ src/update_internal.h \
+ src/inotify_source.h \
+ src/inotify_queue.h \
+ src/inotify_update.h \
src/dirvec.h \
src/gcc.h \
src/decoder_list.h \
+ src/decoder_print.h \
+ src/decoder/flac_compat.h \
+ src/decoder/flac_metadata.h \
+ src/decoder/flac_pcm.h \
src/decoder/_flac_common.h \
src/decoder/_ogg_common.h \
+ src/input_init.h \
src/input_plugin.h \
+ src/input_registry.h \
src/input_stream.h \
src/input/file_input_plugin.h \
+ src/input/ffmpeg_input_plugin.h \
src/input/curl_input_plugin.h \
src/input/rewind_input_plugin.h \
- src/input/lastfm_input_plugin.h \
src/input/mms_input_plugin.h \
+ src/text_file.h \
+ src/text_input_stream.h \
src/icy_server.h \
src/icy_metadata.h \
src/client.h \
+ src/client_internal.h \
+ src/server_socket.h \
src/listen.h \
src/log.h \
src/ls.h \
@@ -91,27 +125,35 @@ mpd_headers = \
src/mixer_list.h \
src/event_pipe.h \
src/mixer_plugin.h \
+ src/mixer_type.h \
+ src/mixer/software_mixer_plugin.h \
+ src/mixer/pulse_mixer_plugin.h \
src/daemon.h \
- src/normalize.h \
- src/compress.h \
+ src/AudioCompress/config.h \
+ src/AudioCompress/compress.h \
src/buffer.h \
src/pipe.h \
src/chunk.h \
src/path.h \
src/mapper.h \
+ src/open.h \
src/output/httpd_client.h \
src/output/httpd_internal.h \
+ src/output/pulse_output_plugin.h \
+ src/output/winmm_output_plugin.h \
src/page.h \
src/pcm_buffer.h \
src/pcm_utils.h \
src/pcm_convert.h \
src/pcm_volume.h \
src/pcm_mix.h \
+ src/pcm_byteswap.h \
src/pcm_channels.h \
src/pcm_format.h \
src/pcm_resample.h \
src/pcm_resample_internal.h \
src/pcm_dither.h \
+ src/pcm_pack.h \
src/pcm_prng.h \
src/permission.h \
src/player_thread.h \
@@ -121,13 +163,33 @@ mpd_headers = \
src/playlist_print.h \
src/playlist_save.h \
src/playlist_state.h \
+ src/playlist_plugin.h \
+ src/playlist_list.h \
+ src/playlist_mapper.h \
+ src/playlist_any.h \
+ src/playlist_song.h \
+ src/playlist_queue.h \
+ src/playlist_vector.h \
+ src/playlist_database.h \
+ src/playlist/extm3u_playlist_plugin.h \
+ src/playlist/m3u_playlist_plugin.h \
+ src/playlist/pls_playlist_plugin.h \
+ src/playlist/xspf_playlist_plugin.h \
+ src/playlist/asx_playlist_plugin.h \
+ src/playlist/rss_playlist_plugin.h \
+ src/playlist/lastfm_playlist_plugin.h \
+ src/playlist/cue_playlist_plugin.h \
+ src/playlist/flac_playlist_plugin.h \
src/poison.h \
src/riff.h \
src/aiff.h \
src/queue.h \
src/queue_print.h \
src/queue_save.h \
- src/replay_gain.h \
+ src/refcount.h \
+ src/replay_gain_config.h \
+ src/replay_gain_info.h \
+ src/replay_gain_ape.h \
src/sig_handlers.h \
src/song.h \
src/song_print.h \
@@ -145,8 +207,10 @@ mpd_headers = \
src/tag_table.h \
src/tag_ape.h \
src/tag_id3.h \
+ src/tag_rva2.h \
src/tag_print.h \
src/tag_save.h \
+ src/tokenizer.h \
src/strset.h \
src/uri.h \
src/utils.h \
@@ -158,22 +222,30 @@ mpd_headers = \
src/archive_api.h \
src/archive_internal.h \
src/archive_list.h \
+ src/archive_plugin.h \
+ src/archive/bz2_archive_plugin.h \
+ src/archive/iso9660_archive_plugin.h \
+ src/archive/zzip_archive_plugin.h \
src/input/archive_input_plugin.h \
- src/cue/cue_tag.h
+ src/cue/cue_tag.h\
+ src/mpd_error.h
src_mpd_SOURCES = \
$(mpd_headers) \
$(ARCHIVE_SRC) \
$(INPUT_SRC) \
+ $(PLAYLIST_SRC) \
$(TAG_SRC) \
$(DECODER_SRC) \
$(ENCODER_SRC) \
$(OUTPUT_API_SRC) $(OUTPUT_SRC) \
$(MIXER_API_SRC) $(MIXER_SRC) \
+ $(FILTER_SRC) \
src/notify.c \
src/audio.c \
+ src/audio_check.c \
+ src/audio_format.c \
src/audio_parser.c \
- src/buffer2array.c \
src/command.c \
src/idle.c \
src/cmdline.c \
@@ -184,22 +256,41 @@ src_mpd_SOURCES = \
src/decoder_control.c \
src/decoder_api.c \
src/decoder_internal.c \
+ src/decoder_print.c \
src/directory.c \
src/directory_save.c \
src/directory_print.c \
src/database.c \
src/dirvec.c \
+ src/exclude.c \
+ src/fd_util.c \
src/fifo_buffer.c \
+ src/filter_config.c \
+ src/filter_plugin.c \
+ src/filter_registry.c \
src/update.c \
+ src/update_queue.c \
+ src/update_walk.c \
+ src/update_remove.c \
src/client.c \
+ src/client_event.c \
+ src/client_expire.c \
+ src/client_global.c \
+ src/client_idle.c \
+ src/client_list.c \
+ src/client_new.c \
+ src/client_process.c \
+ src/client_read.c \
+ src/client_write.c \
+ src/server_socket.c \
src/listen.c \
src/log.c \
src/ls.c \
src/main.c \
+ src/main_win32.c \
src/event_pipe.c \
src/daemon.c \
- src/normalize.c \
- src/compress.c \
+ src/AudioCompress/compress.c \
src/buffer.c \
src/pipe.c \
src/chunk.c \
@@ -209,7 +300,9 @@ src_mpd_SOURCES = \
src/pcm_convert.c \
src/pcm_volume.c \
src/pcm_mix.c \
+ src/pcm_byteswap.c \
src/pcm_channels.c \
+ src/pcm_pack.c \
src/pcm_format.c \
src/pcm_resample.c \
src/pcm_resample_fallback.c \
@@ -223,13 +316,21 @@ src_mpd_SOURCES = \
src/playlist_edit.c \
src/playlist_print.c \
src/playlist_save.c \
+ src/playlist_mapper.c \
+ src/playlist_any.c \
+ src/playlist_song.c \
src/playlist_state.c \
+ src/playlist_queue.c \
+ src/playlist_vector.c \
+ src/playlist_database.c \
src/queue.c \
src/queue_print.c \
src/queue_save.c \
- src/replay_gain.c \
+ src/replay_gain_config.c \
+ src/replay_gain_info.c \
src/sig_handlers.c \
src/song.c \
+ src/song_update.c \
src/song_print.c \
src/song_save.c \
src/songvec.c \
@@ -240,6 +341,9 @@ src_mpd_SOURCES = \
src/tag_pool.c \
src/tag_print.c \
src/tag_save.c \
+ src/tokenizer.c \
+ src/text_file.c \
+ src/text_input_stream.c \
src/strset.c \
src/uri.c \
src/utils.c \
@@ -248,6 +352,13 @@ src_mpd_SOURCES = \
src/stored_playlist.c \
src/timer.c
+if ENABLE_INOTIFY
+src_mpd_SOURCES += \
+ src/inotify_source.c \
+ src/inotify_queue.c \
+ src/inotify_update.c
+endif
+
if ENABLE_SQLITE
src_mpd_SOURCES += \
src/sticker.c \
@@ -277,21 +388,22 @@ ARCHIVE_LIBS = \
ARCHIVE_SRC =
if HAVE_BZ2
-ARCHIVE_SRC += src/archive/bz2_plugin.c
+ARCHIVE_SRC += src/archive/bz2_archive_plugin.c
endif
-if HAVE_ZIP
-ARCHIVE_SRC += src/archive/zip_plugin.c
+if HAVE_ZZIP
+ARCHIVE_SRC += src/archive/zzip_archive_plugin.c
endif
-if HAVE_ISO
-ARCHIVE_SRC += src/archive/iso_plugin.c
+if HAVE_ISO9660
+ARCHIVE_SRC += src/archive/iso9660_archive_plugin.c
endif
if ENABLE_ARCHIVE
ARCHIVE_SRC += \
src/archive_api.c \
src/archive_list.c \
+ src/archive_plugin.c \
src/input/archive_input_plugin.c
endif
@@ -304,10 +416,13 @@ TAG_LIBS = \
$(ID3TAG_LIBS)
TAG_SRC = \
+ src/ape.c \
+ src/replay_gain_ape.c \
src/tag_ape.c
if HAVE_ID3TAG
TAG_SRC += src/tag_id3.c \
+ src/tag_rva2.c \
src/riff.c src/aiff.c
endif
@@ -316,51 +431,62 @@ endif
DECODER_CFLAGS = \
$(VORBIS_CFLAGS) $(TREMOR_CFLAGS) \
$(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS)) \
+ $(SNDFILE_CFLAGS) \
$(AUDIOFILE_CFLAGS) \
$(LIBMIKMOD_CFLAGS) \
- $(MODPLUG_CFLAGS) \
+ $(GME_CFLAGS) \
$(SIDPLAY_CFLAGS) \
$(FLUIDSYNTH_CFLAGS) \
$(WILDMIDI_CFLAGS) \
+ $(WAVPACK_CFLAGS) \
$(MAD_CFLAGS) \
+ $(MPG123_CFLAGS) \
$(FFMPEG_CFLAGS) \
$(CUE_CFLAGS)
DECODER_LIBS = \
$(VORBIS_LIBS) $(TREMOR_LIBS) \
$(FLAC_LIBS) \
+ $(SNDFILE_LIBS) \
$(AUDIOFILE_LIBS) $(LIBMIKMOD_LIBS) \
- $(MODPLUG_LIBS) \
+ $(GME_LIBS) \
$(SIDPLAY_LIBS) \
$(FLUIDSYNTH_LIBS) \
$(WILDMIDI_LIBS) \
+ $(WAVPACK_LIBS) \
$(MAD_LIBS) \
+ $(MPG123_LIBS) \
$(MP4FF_LIBS) \
$(FFMPEG_LIBS) \
$(CUE_LIBS)
DECODER_SRC = \
src/decoder_buffer.c \
+ src/decoder_plugin.c \
src/decoder_list.c
if HAVE_MAD
-DECODER_SRC += src/decoder/mad_plugin.c
+DECODER_SRC += src/decoder/mad_decoder_plugin.c
+endif
+
+if HAVE_MPG123
+DECODER_SRC += src/decoder/mpg123_decoder_plugin.c
endif
if HAVE_MPCDEC
-DECODER_SRC += src/decoder/mpcdec_plugin.c
+DECODER_SRC += src/decoder/mpcdec_decoder_plugin.c
endif
if HAVE_WAVPACK
-DECODER_SRC += src/decoder/wavpack_plugin.c
+DECODER_SRC += src/decoder/wavpack_decoder_plugin.c
endif
if HAVE_FAAD
-DECODER_SRC += src/decoder/faad_plugin.c
+DECODER_SRC += src/decoder/faad_decoder_plugin.c
endif
if HAVE_MP4
-DECODER_SRC += src/decoder/mp4ff_plugin.c
+DECODER_SRC += src/decoder/mp4ff_decoder_plugin.c
endif
if HAVE_OGG_COMMON
@@ -368,63 +494,87 @@ DECODER_SRC += src/decoder/_ogg_common.c
endif
if HAVE_FLAC_COMMON
-DECODER_SRC += src/decoder/_flac_common.c
+DECODER_SRC += \
+ src/decoder/flac_metadata.c \
+ src/decoder/flac_pcm.c \
+ src/decoder/_flac_common.c
endif
if ENABLE_VORBIS_DECODER
-DECODER_SRC += src/decoder/vorbis_plugin.c
+DECODER_SRC += src/decoder/vorbis_decoder_plugin.c
endif
if HAVE_FLAC
-DECODER_SRC += src/decoder/flac_plugin.c
+DECODER_SRC += src/decoder/flac_decoder_plugin.c
endif
if HAVE_OGGFLAC
-DECODER_SRC += src/decoder/oggflac_plugin.c
+DECODER_SRC += src/decoder/oggflac_decoder_plugin.c
endif
if HAVE_AUDIOFILE
-DECODER_SRC += src/decoder/audiofile_plugin.c
+DECODER_SRC += src/decoder/audiofile_decoder_plugin.c
endif
if ENABLE_MIKMOD_DECODER
-DECODER_SRC += src/decoder/mikmod_plugin.c
+DECODER_SRC += src/decoder/mikmod_decoder_plugin.c
endif
if HAVE_MODPLUG
-DECODER_SRC += src/decoder/modplug_plugin.c
+libmodplug_decoder_plugin_a_SOURCES = src/decoder/modplug_decoder_plugin.c
+libmodplug_decoder_plugin_a_CFLAGS = $(src_mpd_CFLAGS) $(MODPLUG_CFLAGS)
+libmodplug_decoder_plugin_a_CPPFLAGS = $(src_mpd_CPPFLAGS)
+noinst_LIBRARIES += libmodplug_decoder_plugin.a
+DECODER_LIBS += libmodplug_decoder_plugin.a $(MODPLUG_LIBS)
endif
if ENABLE_SIDPLAY
-DECODER_SRC += src/decoder/sidplay_plugin.cxx
+DECODER_SRC += src/decoder/sidplay_decoder_plugin.cxx
endif
if ENABLE_FLUIDSYNTH
-DECODER_SRC += src/decoder/fluidsynth_plugin.c
+DECODER_SRC += src/decoder/fluidsynth_decoder_plugin.c
endif
if ENABLE_WILDMIDI
-DECODER_SRC += src/decoder/wildmidi_plugin.c
+DECODER_SRC += src/decoder/wildmidi_decoder_plugin.c
endif
if HAVE_FFMPEG
-DECODER_SRC += src/decoder/ffmpeg_plugin.c
+DECODER_SRC += src/decoder/ffmpeg_decoder_plugin.c
+endif
+
+if ENABLE_SNDFILE
+DECODER_SRC += src/decoder/sndfile_decoder_plugin.c
+endif
+
+if HAVE_GME
+DECODER_SRC += src/decoder/gme_decoder_plugin.c
endif
# encoder plugins
ENCODER_CFLAGS = \
$(LAME_CFLAGS) \
+ $(TWOLAME_CFLAGS) \
+ $(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS)) \
$(VORBISENC_CFLAGS)
ENCODER_LIBS = \
$(LAME_LIBS) \
+ $(TWOLAME_LIBS) \
+ $(FLAC_LIBS) \
$(VORBISENC_LIBS)
ENCODER_SRC =
if ENABLE_ENCODER
ENCODER_SRC += src/encoder_list.c
+ENCODER_SRC += src/encoder/null_encoder.c
+
+if ENABLE_WAVE_ENCODER
+ENCODER_SRC += src/encoder/wave_encoder.c
+endif
if ENABLE_VORBIS_ENCODER
ENCODER_SRC += src/encoder/vorbis_encoder.c
@@ -433,6 +583,14 @@ endif
if ENABLE_LAME_ENCODER
ENCODER_SRC += src/encoder/lame_encoder.c
endif
+
+if ENABLE_TWOLAME_ENCODER
+ENCODER_SRC += src/encoder/twolame_encoder.c
+endif
+
+if ENABLE_FLAC_ENCODER
+ENCODER_SRC += src/encoder/flac_encoder.c
+endif
endif
@@ -458,24 +616,28 @@ endif
INPUT_CFLAGS = \
$(CURL_CFLAGS) \
+ $(FFMPEG_CFLAGS) \
$(MMS_CFLAGS)
INPUT_LIBS = \
$(CURL_LIBS) \
+ $(FFMPEG_LIBS) \
$(MMS_LIBS)
INPUT_SRC = \
+ src/input_init.c \
+ src/input_registry.c \
src/input_stream.c \
+ src/input/rewind_input_plugin.c \
src/input/file_input_plugin.c
-if HAVE_CURL
+if ENABLE_CURL
INPUT_SRC += src/input/curl_input_plugin.c \
- src/input/rewind_input_plugin.c \
src/icy_metadata.c
endif
-if ENABLE_LASTFM
-INPUT_SRC += src/input/lastfm_input_plugin.c
+if HAVE_FFMPEG
+INPUT_SRC += src/input/ffmpeg_input_plugin.c
endif
if ENABLE_MMS
@@ -486,14 +648,19 @@ endif
OUTPUT_CFLAGS = \
$(AO_CFLAGS) \
$(ALSA_CFLAGS) \
+ $(FFADO_CFLAGS) \
$(JACK_CFLAGS) \
+ $(OPENAL_CFLAGS) \
$(PULSE_CFLAGS) \
$(SHOUT_CFLAGS)
OUTPUT_LIBS = \
+ $(LIBWRAP_LDFLAGS) \
$(AO_LIBS) \
$(ALSA_LIBS) \
+ $(FFADO_LIBS) \
$(JACK_LIBS) \
+ $(OPENAL_LIBS) \
$(PULSE_LIBS) \
$(SHOUT_LIBS)
@@ -512,14 +679,20 @@ OUTPUT_SRC = \
MIXER_API_SRC = \
src/mixer_control.c \
+ src/mixer_type.c \
src/mixer_all.c \
src/mixer_api.c
-MIXER_SRC =
+MIXER_SRC = \
+ src/mixer/software_mixer_plugin.c
if HAVE_ALSA
OUTPUT_SRC += src/output/alsa_plugin.c
-MIXER_SRC += src/mixer/alsa_mixer.c
+MIXER_SRC += src/mixer/alsa_mixer_plugin.c
+endif
+
+if ENABLE_FFADO_OUTPUT
+OUTPUT_SRC += src/output/ffado_output_plugin.c
endif
if HAVE_AO
@@ -527,7 +700,7 @@ OUTPUT_SRC += src/output/ao_plugin.c
endif
if HAVE_FIFO
-OUTPUT_SRC += src/output/fifo_plugin.c
+OUTPUT_SRC += src/output/fifo_output_plugin.c
endif
if ENABLE_PIPE_OUTPUT
@@ -535,7 +708,7 @@ OUTPUT_SRC += src/output/pipe_output_plugin.c
endif
if HAVE_JACK
-OUTPUT_SRC += src/output/jack_plugin.c
+OUTPUT_SRC += src/output/jack_output_plugin.c
endif
if HAVE_MVP
@@ -544,7 +717,11 @@ endif
if HAVE_OSS
OUTPUT_SRC += src/output/oss_plugin.c
-MIXER_SRC += src/mixer/oss_mixer.c
+MIXER_SRC += src/mixer/oss_mixer_plugin.c
+endif
+
+if HAVE_OPENAL
+OUTPUT_SRC += src/output/openal_plugin.c
endif
if HAVE_OSX
@@ -552,14 +729,18 @@ OUTPUT_SRC += src/output/osx_plugin.c
endif
if HAVE_PULSE
-OUTPUT_SRC += src/output/pulse_plugin.c
-MIXER_SRC += src/mixer/pulse_mixer.c
+OUTPUT_SRC += src/output/pulse_output_plugin.c
+MIXER_SRC += src/mixer/pulse_mixer_plugin.c
endif
if HAVE_SHOUT
OUTPUT_SRC += src/output/shout_plugin.c
endif
+if ENABLE_RECORDER_OUTPUT
+OUTPUT_SRC += src/output/recorder_output_plugin.c
+endif
+
if ENABLE_HTTPD_OUTPUT
OUTPUT_SRC += \
src/icy_server.c \
@@ -571,6 +752,52 @@ if ENABLE_SOLARIS_OUTPUT
OUTPUT_SRC += src/output/solaris_output_plugin.c
endif
+if ENABLE_WINMM_OUTPUT
+OUTPUT_SRC += src/output/winmm_output_plugin.c
+MIXER_SRC += src/mixer/winmm_mixer_plugin.c
+endif
+
+
+#
+# Playlist plugins
+#
+
+PLAYLIST_SRC = \
+ src/playlist/extm3u_playlist_plugin.c \
+ src/playlist/m3u_playlist_plugin.c \
+ src/playlist/pls_playlist_plugin.c \
+ src/playlist/xspf_playlist_plugin.c \
+ src/playlist/asx_playlist_plugin.c \
+ src/playlist/rss_playlist_plugin.c \
+ src/playlist_list.c
+
+if ENABLE_LASTFM
+PLAYLIST_SRC += src/playlist/lastfm_playlist_plugin.c
+endif
+
+if HAVE_CUE
+PLAYLIST_SRC += src/playlist/cue_playlist_plugin.c
+endif
+
+if HAVE_FLAC
+PLAYLIST_SRC += src/playlist/flac_playlist_plugin.c
+endif
+
+
+#
+# Filter plugins
+#
+
+FILTER_SRC = \
+ src/filter/null_filter_plugin.c \
+ src/filter/chain_filter_plugin.c \
+ src/filter/autoconvert_filter_plugin.c \
+ src/filter/convert_filter_plugin.c \
+ src/filter/route_filter_plugin.c \
+ src/filter/normalize_filter_plugin.c \
+ src/filter/replay_gain_filter_plugin.c \
+ src/filter/volume_filter_plugin.c
+
#
# Sparse code analysis
@@ -598,21 +825,31 @@ sparse-check:
if ENABLE_TEST
+TESTS =
+
noinst_PROGRAMS = \
test/read_conf \
test/run_input \
+ test/dump_playlist \
test/run_decoder \
test/read_tags \
+ test/run_filter \
test/run_output \
- test/read_mixer \
+ test/run_convert \
+ test/run_normalize \
test/software_volume
+if HAVE_ALSA
+# this debug program is still ALSA specific
+noinst_PROGRAMS += test/read_mixer
+endif
+
test_read_conf_CPPFLAGS = $(AM_CPPFLAGS) \
$(GLIB_CFLAGS)
test_read_conf_LDADD = $(MPD_LIBS) \
$(GLIB_LIBS)
test_read_conf_SOURCES = test/read_conf.c \
- src/conf.c src/buffer2array.c src/utils.c
+ src/conf.c src/tokenizer.c src/utils.c
test_run_input_CPPFLAGS = $(AM_CPPFLAGS) \
$(ARCHIVE_CFLAGS) \
@@ -622,11 +859,44 @@ test_run_input_LDADD = $(MPD_LIBS) \
$(INPUT_LIBS) \
$(GLIB_LIBS)
test_run_input_SOURCES = test/run_input.c \
- src/conf.c src/buffer2array.c src/utils.c \
+ test/stdbin.h \
+ src/conf.c src/tokenizer.c src/utils.c \
src/tag.c src/tag_pool.c src/tag_save.c \
+ src/fd_util.c \
$(ARCHIVE_SRC) \
$(INPUT_SRC)
+test_dump_playlist_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(CUE_CFLAGS) \
+ $(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS)) \
+ $(ARCHIVE_CFLAGS) \
+ $(INPUT_CFLAGS)
+test_dump_playlist_LDADD = $(MPD_LIBS) \
+ $(CUE_LIBS) \
+ $(FLAC_LIBS) \
+ $(ARCHIVE_LIBS) \
+ $(INPUT_LIBS) \
+ $(GLIB_LIBS)
+test_dump_playlist_SOURCES = test/dump_playlist.c \
+ src/conf.c src/tokenizer.c src/utils.c \
+ src/uri.c \
+ src/song.c src/tag.c src/tag_pool.c src/tag_save.c \
+ src/text_input_stream.c src/fifo_buffer.c \
+ src/fd_util.c \
+ $(ARCHIVE_SRC) \
+ $(INPUT_SRC) \
+ $(PLAYLIST_SRC)
+
+if HAVE_CUE
+test_dump_playlist_SOURCES += src/cue/cue_tag.c
+endif
+
+if HAVE_FLAC
+test_dump_playlist_SOURCES += \
+ src/replay_gain_info.c \
+ src/decoder/flac_metadata.c
+endif
+
test_run_decoder_CPPFLAGS = $(AM_CPPFLAGS) \
$(TAG_CFLAGS) \
$(ARCHIVE_CFLAGS) \
@@ -637,10 +907,14 @@ test_run_decoder_LDADD = $(MPD_LIBS) \
$(INPUT_LIBS) $(DECODER_LIBS) \
$(GLIB_LIBS)
test_run_decoder_SOURCES = test/run_decoder.c \
- src/conf.c src/buffer2array.c src/utils.c src/log.c \
+ test/stdbin.h \
+ src/conf.c src/tokenizer.c src/utils.c src/log.c \
src/tag.c src/tag_pool.c \
- src/replay_gain.c \
+ src/replay_gain_info.c \
src/uri.c \
+ src/fd_util.c \
+ src/audio_check.c \
+ src/audio_format.c \
src/timer.c \
$(ARCHIVE_SRC) \
$(INPUT_SRC) \
@@ -657,35 +931,100 @@ test_read_tags_LDADD = $(MPD_LIBS) \
$(INPUT_LIBS) $(DECODER_LIBS) \
$(GLIB_LIBS)
test_read_tags_SOURCES = test/read_tags.c \
- src/conf.c src/buffer2array.c src/utils.c src/log.c \
+ src/conf.c src/tokenizer.c src/utils.c src/log.c \
src/tag.c src/tag_pool.c \
- src/replay_gain.c \
+ src/replay_gain_info.c \
src/uri.c \
+ src/fd_util.c \
+ src/audio_check.c \
src/timer.c \
$(ARCHIVE_SRC) \
$(INPUT_SRC) \
$(TAG_SRC) \
$(DECODER_SRC)
+test_run_filter_CPPFLAGS = $(AM_CPPFLAGS)
+test_run_filter_LDADD = $(MPD_LIBS) \
+ $(SAMPLERATE_LIBS) \
+ $(GLIB_LIBS)
+test_run_filter_SOURCES = test/run_filter.c \
+ test/stdbin.h \
+ src/filter_plugin.c \
+ src/filter_registry.c \
+ src/conf.c src/tokenizer.c src/utils.c \
+ src/pcm_volume.c src/pcm_convert.c src/pcm_byteswap.c \
+ src/pcm_format.c src/pcm_channels.c src/pcm_dither.c \
+ src/pcm_pack.c \
+ src/pcm_resample.c src/pcm_resample_fallback.c \
+ src/audio_check.c \
+ src/audio_format.c \
+ src/audio_parser.c \
+ src/replay_gain_config.c \
+ src/replay_gain_info.c \
+ src/AudioCompress/compress.c \
+ $(FILTER_SRC)
+
+if HAVE_LIBSAMPLERATE
+test_run_filter_SOURCES += src/pcm_resample_libsamplerate.c
+endif
+
if ENABLE_ENCODER
noinst_PROGRAMS += test/run_encoder
test_run_encoder_SOURCES = test/run_encoder.c \
- src/conf.c src/buffer2array.c \
+ test/stdbin.h \
+ src/conf.c src/tokenizer.c \
src/utils.c \
src/tag.c src/tag_pool.c \
+ src/audio_check.c \
+ src/audio_format.c \
src/audio_parser.c \
$(ENCODER_SRC)
+test_run_encoder_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(ENCODER_CFLAGS)
test_run_encoder_LDADD = $(MPD_LIBS) \
$(ENCODER_LIBS) \
$(GLIB_LIBS)
endif
test_software_volume_SOURCES = test/software_volume.c \
+ test/stdbin.h \
+ src/audio_check.c \
src/audio_parser.c \
src/pcm_volume.c
test_software_volume_LDADD = \
$(GLIB_LIBS)
+test_run_normalize_SOURCES = test/run_normalize.c \
+ test/stdbin.h \
+ src/audio_check.c \
+ src/audio_parser.c \
+ src/AudioCompress/compress.c
+test_run_normalize_LDADD = \
+ $(GLIB_LIBS)
+
+test_run_convert_SOURCES = test/run_convert.c \
+ src/fifo_buffer.c \
+ src/audio_format.c \
+ src/audio_check.c \
+ src/audio_parser.c \
+ src/pcm_channels.c \
+ src/pcm_format.c \
+ src/pcm_pack.c \
+ src/pcm_dither.c \
+ src/pcm_byteswap.c \
+ src/pcm_resample.c \
+ src/pcm_resample_fallback.c \
+ src/pcm_convert.c
+test_run_convert_CPPFLAGS = $(AM_CPPFLAGS) $(SAMPLERATE_CFLAGS)
+test_run_convert_LDADD = \
+ $(SAMPLERATE_LIBS) \
+ $(GLIB_LIBS)
+
+if HAVE_LIBSAMPLERATE
+test_run_convert_SOURCES += src/pcm_resample_libsamplerate.c
+endif
+
+test_run_output_CFLAGS = $(AM_CFLAGS) $(MPD_CFLAGS)
test_run_output_CPPFLAGS = $(AM_CPPFLAGS) \
$(ENCODER_CFLAGS) \
$(OUTPUT_CFLAGS)
@@ -694,7 +1033,10 @@ test_run_output_LDADD = $(MPD_LIBS) \
$(OUTPUT_LIBS) \
$(GLIB_LIBS)
test_run_output_SOURCES = test/run_output.c \
- src/conf.c src/buffer2array.c src/utils.c src/log.c \
+ test/stdbin.h \
+ src/conf.c src/tokenizer.c src/utils.c src/log.c \
+ src/audio_check.c \
+ src/audio_format.c \
src/audio_parser.c \
src/timer.c \
src/tag.c src/tag_pool.c \
@@ -705,7 +1047,21 @@ test_run_output_SOURCES = test/run_output.c \
$(ENCODER_SRC) \
src/mixer_api.c \
src/mixer_control.c \
+ src/mixer_type.c \
$(MIXER_SRC) \
+ src/filter_plugin.c src/filter/chain_filter_plugin.c \
+ src/filter_config.c \
+ src/filter/autoconvert_filter_plugin.c \
+ src/filter/convert_filter_plugin.c \
+ src/filter/replay_gain_filter_plugin.c \
+ src/filter/normalize_filter_plugin.c \
+ src/filter/volume_filter_plugin.c \
+ src/pcm_volume.c \
+ src/AudioCompress/compress.c \
+ src/replay_gain_info.c \
+ src/replay_gain_config.c \
+ src/fd_util.c \
+ src/server_socket.c \
$(OUTPUT_SRC)
test_read_mixer_CPPFLAGS = $(AM_CPPFLAGS) \
@@ -714,10 +1070,34 @@ test_read_mixer_LDADD = $(MPD_LIBS) \
$(OUTPUT_LIBS) \
$(GLIB_LIBS)
test_read_mixer_SOURCES = test/read_mixer.c \
- src/conf.c src/buffer2array.c src/utils.c src/log.c \
+ src/conf.c src/tokenizer.c src/utils.c src/log.c \
src/mixer_control.c src/mixer_api.c \
+ src/filter_plugin.c \
+ src/filter/volume_filter_plugin.c \
+ src/fd_util.c \
$(MIXER_SRC)
+if ENABLE_BZIP2_TEST
+TESTS += test/test_archive_bzip2.sh
+endif
+
+if ENABLE_ZZIP_TEST
+TESTS += test/test_archive_zzip.sh
+endif
+
+if ENABLE_ISO9660_TEST
+TESTS += test/test_archive_iso9660.sh
+endif
+
+if ENABLE_INOTIFY
+noinst_PROGRAMS += test/run_inotify
+test_run_inotify_SOURCES = test/run_inotify.c \
+ src/fd_util.c \
+ src/fifo_buffer.c \
+ src/inotify_source.c
+test_run_inotify_LDADD = $(GLIB_LIBS)
+endif
+
endif
@@ -728,7 +1108,7 @@ endif
man_MANS = doc/mpd.1 doc/mpd.conf.5
doc_DATA = AUTHORS COPYING NEWS README UPGRADING doc/mpdconf.example
-DOCBOOK_FILES = doc/protocol.xml doc/user.xml doc/developer.xml doc/sticker.xml
+DOCBOOK_FILES = doc/protocol.xml doc/user.xml doc/developer.xml
if ENABLE_DOCUMENTATION
protocoldir = $(docdir)/protocol
@@ -755,7 +1135,8 @@ endif
doc/api/html/index.html: doc/doxygen.conf
@mkdir -p $(@D)
- $(DOXYGEN) $<
+ [ "$(srcdir)" = "." ] || sed '/INPUT *=/ s/\([^ ]\+\/\)/$(subst /,\/,$(srcdir))\/\1/g' $(srcdir)/doc/doxygen.conf >doc/doxygen.conf
+ $(DOXYGEN) doc/doxygen.conf
all-local: $(DOCBOOK_HTML) doc/api/html/index.html
@@ -765,10 +1146,12 @@ clean-local:
install-data-local: doc/api/html/index.html
$(mkinstalldirs) $(DESTDIR)$(docdir)/api/html
- $(INSTALL_DATA) -c -m 644 doc/api/html/*.html doc/api/html/*.css \
- doc/api/html/*.png doc/api/html/*.gif \
+ $(INSTALL_DATA) -c -m 644 doc/api/html/*.* \
$(DESTDIR)$(docdir)/api/html
+uninstall-local:
+ rm -f $(DESTDIR)$(docdir)/api/html/*.*
+
upload: $(DOCBOOK_HTML) doc/api/html/index.html
rsync -vpruz --delete doc/ cirrus@www.musicpd.org:/var/www/musicpd.org/www/doc/ \
--chmod=Dug+rwx,Do+rx,Fug+rw,Fo+r \