mpd/Makefile.am

1434 lines
34 KiB
Makefile
Raw Normal View History

ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign 1.11 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 = \
libutil.a \
libevent.a \
libpcm.a \
libtag.a \
libinput.a \
2012-08-02 19:23:11 +02:00
libdb_plugins.a \
libplaylist_plugins.a \
libdecoder_plugins.a \
libfilter_plugins.a \
libmixer_plugins.a \
liboutput_plugins.a
src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \
$(LIBMPDCLIENT_CFLAGS) \
$(AVAHI_CFLAGS) \
2010-01-20 21:04:07 +01:00
$(LIBWRAP_CFLAGS) \
$(SQLITE_CFLAGS)
src_mpd_LDADD = \
2012-08-02 19:23:11 +02:00
$(DB_LIBS) \
$(PLAYLIST_LIBS) \
$(AVAHI_LIBS) \
2010-01-20 21:04:07 +01:00
$(LIBWRAP_LDFLAGS) \
$(SQLITE_LIBS) \
$(DECODER_LIBS) \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(TAG_LIBS) \
$(OUTPUT_LIBS) \
$(FILTER_LIBS) \
$(ENCODER_LIBS) \
$(MIXER_LIBS) \
libutil.a \
libevent.a \
$(SYSTEMD_DAEMON_LIBS) \
$(GLIB_LIBS)
mpd_headers = \
src/check.h \
src/notify.h \
src/ack.h \
src/ape.h \
src/audio_format.h \
src/audio_check.h \
src/audio_parser.h \
src/output_internal.h \
src/output_api.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/volume_filter_plugin.h \
src/command.h \
src/conf.h \
src/decoder_plugin.h \
src/decoder_command.h \
src/decoder_buffer.h \
src/decoder_api.h \
src/decoder_plugin.h \
src/encoder_plugin.h \
src/encoder_list.h \
src/encoder_api.h \
src/fd_util.h \
src/gerror.h \
2009-12-14 23:26:23 +01:00
src/glib_compat.h \
src/gcc.h \
src/decoder_list.h \
src/decoder/pcm_decoder_plugin.h \
src/input_plugin.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/mms_input_plugin.h \
2011-03-27 08:41:40 +02:00
src/input/despotify_input_plugin.h \
src/input/cdio_paranoia_input_plugin.h \
2011-03-27 08:41:40 +02:00
src/despotify_utils.h \
src/text_input_stream.h \
src/icy_server.h \
src/icy_metadata.h \
src/server_socket.h \
src/ls.h \
src/mixer_api.h \
src/mixer_control.h \
src/mixer_list.h \
src/mixer_plugin.h \
src/mixer_type.h \
src/mixer/software_mixer_plugin.h \
src/daemon.h \
src/AudioCompress/config.h \
src/AudioCompress/compress.h \
src/path.h \
2010-06-08 21:40:51 +02:00
src/open.h \
src/output/httpd_client.h \
src/output/httpd_internal.h \
src/page.h \
2013-01-04 20:50:00 +01:00
src/Playlist.hxx \
src/playlist_error.h \
src/playlist_plugin.h \
src/playlist_list.h \
src/playlist/extm3u_playlist_plugin.h \
src/playlist/m3u_playlist_plugin.h \
2009-10-15 00:08:06 +02:00
src/playlist/pls_playlist_plugin.h \
2009-10-13 16:31:07 +02:00
src/playlist/xspf_playlist_plugin.h \
src/playlist/asx_playlist_plugin.h \
src/playlist/rss_playlist_plugin.h \
src/playlist/lastfm_playlist_plugin.h \
2011-03-27 08:41:40 +02:00
src/playlist/despotify_playlist_plugin.h \
src/playlist/cue_playlist_plugin.h \
src/poison.h \
src/riff.h \
src/aiff.h \
2010-06-14 04:49:38 +02:00
src/refcount.h \
src/replay_gain_config.h \
src/replay_gain_info.h \
src/replay_gain_ape.h \
2013-01-02 20:29:24 +01:00
src/TimePrint.cxx src/TimePrint.hxx \
src/song.h \
src/song_sort.c src/song_sort.h \
src/socket_util.h \
src/stats.h \
src/tag.h \
src/tag_internal.h \
src/tag_table.h \
2009-02-28 16:44:41 +01:00
src/tag_ape.h \
src/tag_id3.h \
src/tag_rva2.h \
src/tokenizer.h \
src/uri.h \
src/utils.h \
src/string_util.h \
src/zeroconf.h src/zeroconf-internal.h \
src/timer.h \
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 \
2010-10-03 19:34:45 +02:00
src/mpd_error.h
src_mpd_SOURCES = \
$(mpd_headers) \
$(DECODER_SRC) \
$(OUTPUT_API_SRC) \
$(MIXER_API_SRC) \
src/thread/Mutex.hxx \
src/thread/PosixMutex.hxx \
src/thread/GLibMutex.hxx \
src/thread/Cond.hxx \
src/thread/PosixCond.hxx \
src/thread/GLibCond.hxx \
src/glib_socket.h \
src/clock.c src/clock.h \
src/notify.c \
src/audio_config.c src/audio_config.h \
src/audio_check.c \
src/audio_format.c \
src/audio_parser.c \
2013-01-03 10:33:04 +01:00
src/protocol/ArgParser.cxx src/protocol/ArgParser.hxx \
src/protocol/Result.cxx src/protocol/Result.hxx \
src/CommandError.cxx src/CommandError.hxx \
2013-01-03 10:33:04 +01:00
src/AllCommands.cxx src/AllCommands.hxx \
2012-08-25 12:59:54 +02:00
src/QueueCommands.cxx src/QueueCommands.hxx \
src/PlayerCommands.cxx src/PlayerCommands.hxx \
src/PlaylistCommands.cxx src/PlaylistCommands.hxx \
src/DatabaseCommands.cxx src/DatabaseCommands.hxx \
2012-08-25 12:59:54 +02:00
src/OutputCommands.cxx src/OutputCommands.hxx \
src/MessageCommands.cxx src/MessageCommands.hxx \
src/OtherCommands.cxx src/OtherCommands.hxx \
2013-01-09 08:36:52 +01:00
src/Idle.cxx src/Idle.hxx \
2013-01-03 17:31:38 +01:00
src/CommandLine.cxx src/CommandLine.hxx \
src/conf.c \
2013-01-04 10:31:59 +01:00
src/CrossFade.cxx src/CrossFade.hxx \
src/cue/cue_parser.c src/cue/cue_parser.h \
2012-08-08 21:54:54 +02:00
src/decoder_error.h \
src/DecoderThread.cxx src/DecoderThread.hxx \
2013-01-04 08:41:16 +01:00
src/DecoderControl.cxx src/DecoderControl.hxx \
src/DecoderAPI.cxx \
src/DecoderInternal.cxx src/DecoderInternal.hxx \
2013-01-03 11:14:36 +01:00
src/DecoderPrint.cxx src/DecoderPrint.hxx \
2013-01-02 22:52:08 +01:00
src/Directory.cxx src/Directory.hxx \
2013-01-02 19:52:57 +01:00
src/DirectorySave.cxx src/DirectorySave.hxx \
src/DatabaseSimple.hxx \
src/DatabaseGlue.cxx src/DatabaseGlue.hxx \
src/DatabasePrint.cxx src/DatabasePrint.hxx \
src/DatabaseQueue.cxx src/DatabaseQueue.hxx \
src/DatabasePlaylist.cxx src/DatabasePlaylist.hxx \
src/db_error.h \
2013-01-02 20:56:21 +01:00
src/DatabaseLock.cxx src/DatabaseLock.hxx \
2013-01-02 19:52:57 +01:00
src/DatabaseSave.cxx src/DatabaseSave.hxx \
2012-07-30 07:26:08 +02:00
src/DatabasePlugin.hxx \
src/DatabaseVisitor.hxx \
2012-08-29 20:03:37 +02:00
src/DatabaseSelection.cxx src/DatabaseSelection.hxx \
2013-01-03 09:51:35 +01:00
src/ExcludeList.cxx src/ExcludeList.hxx \
src/fd_util.c \
src/fifo_buffer.c src/fifo_buffer.h \
src/growing_fifo.c src/growing_fifo.h \
src/filter_config.c \
src/filter_plugin.c \
src/filter_registry.c \
2013-01-02 19:22:15 +01:00
src/UpdateGlue.cxx src/UpdateGlue.hxx \
src/UpdateQueue.cxx src/UpdateQueue.hxx \
src/UpdateIO.cxx src/UpdateIO.hxx \
src/UpdateDatabase.cxx src/UpdateDatabase.hxx \
src/UpdateWalk.cxx src/UpdateWalk.hxx \
src/UpdateSong.cxx src/UpdateSong.hxx \
src/UpdateContainer.cxx src/UpdateContainer.hxx \
src/UpdateInternal.hxx \
src/UpdateRemove.cxx src/UpdateRemove.hxx \
src/CommandListBuilder.cxx src/CommandListBuilder.hxx \
2013-01-03 10:33:04 +01:00
src/Client.cxx src/Client.hxx \
src/ClientInternal.hxx \
src/ClientEvent.cxx \
src/ClientExpire.cxx \
src/ClientGlobal.cxx \
src/ClientIdle.cxx src/ClientIdle.hxx \
2013-01-09 08:08:36 +01:00
src/ClientList.cxx src/ClientList.hxx \
2013-01-03 03:07:16 +01:00
src/ClientNew.cxx \
2013-01-03 10:33:04 +01:00
src/ClientProcess.cxx \
src/ClientRead.cxx \
src/ClientWrite.cxx \
src/ClientMessage.cxx src/ClientMessage.hxx \
src/ClientSubscribe.cxx src/ClientSubscribe.hxx \
src/ClientFile.cxx src/ClientFile.hxx \
src/server_socket.c \
2013-01-03 11:05:44 +01:00
src/Listen.cxx src/Listen.hxx \
2013-01-09 22:33:06 +01:00
src/Log.cxx src/Log.hxx \
2013-01-03 11:01:02 +01:00
src/ls.cxx \
src/io_error.h \
src/io_thread.c src/io_thread.h \
2012-09-28 00:40:00 +02:00
src/Main.cxx src/Main.hxx \
src/Win32Main.cxx \
2013-01-09 23:12:53 +01:00
src/GlobalEvents.cxx src/GlobalEvents.hxx \
src/daemon.c \
src/AudioCompress/compress.c \
2013-01-04 10:16:16 +01:00
src/MusicBuffer.cxx src/MusicBuffer.hxx \
src/MusicPipe.cxx src/MusicPipe.hxx \
src/MusicChunk.cxx src/MusicChunk.hxx \
src/path.c \
2013-01-02 22:43:56 +01:00
src/Mapper.cxx src/Mapper.hxx \
src/page.c \
src/Partition.hxx \
2013-01-03 03:06:45 +01:00
src/Permission.cxx src/Permission.hxx \
src/PlayerThread.cxx src/PlayerThread.hxx \
src/PlayerControl.cxx src/PlayerControl.hxx \
2013-01-04 20:50:00 +01:00
src/Playlist.cxx \
src/PlaylistGlobal.cxx src/PlaylistGlobal.hxx \
2013-01-04 20:50:00 +01:00
src/PlaylistControl.cxx \
2013-01-03 00:35:05 +01:00
src/PlaylistEdit.cxx \
src/PlaylistPrint.cxx src/PlaylistPrint.hxx \
src/PlaylistSave.cxx src/PlaylistSave.hxx \
src/PlaylistMapper.cxx src/PlaylistMapper.hxx \
src/PlaylistAny.cxx src/PlaylistAny.hxx \
src/PlaylistSong.cxx src/PlaylistSong.hxx \
2013-01-02 19:52:57 +01:00
src/PlaylistState.cxx src/PlaylistState.hxx \
src/PlaylistQueue.cxx src/PlaylistQueue.hxx \
src/PlaylistVector.cxx src/PlaylistVector.hxx \
src/PlaylistInfo.hxx \
2013-01-02 19:52:57 +01:00
src/PlaylistDatabase.cxx \
2013-01-08 16:11:25 +01:00
src/IdTable.hxx \
2013-01-04 20:50:00 +01:00
src/Queue.cxx src/Queue.hxx \
2012-08-29 19:27:03 +02:00
src/QueuePrint.cxx src/QueuePrint.hxx \
2013-01-02 19:52:57 +01:00
src/QueueSave.cxx src/QueueSave.hxx \
2013-01-04 23:45:55 +01:00
src/ReplayGainConfig.cxx \
src/ReplayGainInfo.cxx \
2013-01-09 22:33:06 +01:00
src/SignalHandlers.cxx src/SignalHandlers.hxx \
2012-08-08 20:12:20 +02:00
src/Song.cxx \
2013-01-02 22:42:12 +01:00
src/SongUpdate.cxx \
2013-01-02 20:29:24 +01:00
src/SongPrint.cxx src/SongPrint.hxx \
2013-01-02 19:52:57 +01:00
src/SongSave.cxx src/SongSave.hxx \
src/resolver.c src/resolver.h \
src/socket_util.c \
2013-01-02 19:52:57 +01:00
src/StateFile.cxx src/StateFile.hxx \
2012-08-02 18:55:53 +02:00
src/Stats.cxx \
2013-01-07 10:36:27 +01:00
src/Tag.cxx \
src/TagNames.c \
src/TagPool.cxx src/TagPool.hxx \
2013-01-02 20:29:24 +01:00
src/TagPrint.cxx src/TagPrint.hxx \
2013-01-02 19:52:57 +01:00
src/TagSave.cxx src/TagSave.hxx \
src/tag_handler.c src/tag_handler.h \
src/tag_file.c src/tag_file.h \
src/tokenizer.c \
2013-01-03 10:12:41 +01:00
src/TextFile.cxx src/TextFile.hxx \
src/text_input_stream.c \
src/uri.c \
src/utils.c \
src/string_util.c \
2013-01-07 08:59:11 +01:00
src/Volume.cxx src/Volume.hxx \
2012-08-29 19:12:26 +02:00
src/SongFilter.cxx src/SongFilter.hxx \
2012-09-28 00:40:00 +02:00
src/PlaylistFile.cxx src/PlaylistFile.hxx \
src/timer.c
#
# Windows resource file
#
src/win/mpd_win32_rc.$(OBJEXT): src/win/mpd_win32_rc.rc
$(WINDRES) -i $< -o $@
if HAVE_WINDOWS
noinst_DATA = src/win/mpd_win32_rc.rc
src_mpd_DEPENDENCIES = src/win/mpd_win32_rc.$(OBJEXT)
src_mpd_LDFLAGS = -Wl,src/win/mpd_win32_rc.$(OBJEXT)
endif
2011-03-27 08:41:40 +02:00
if ENABLE_DESPOTIFY
src_mpd_SOURCES += \
src/despotify_utils.c
endif
if ENABLE_INOTIFY
src_mpd_SOURCES += \
2013-01-02 19:22:15 +01:00
src/InotifySource.cxx src/InotifySource.hxx \
src/InotifyQueue.cxx src/InotifyQueue.hxx \
src/InotifyUpdate.cxx src/InotifyUpdate.hxx
endif
if ENABLE_SQLITE
src_mpd_SOURCES += \
2012-08-25 12:59:54 +02:00
src/StickerCommands.cxx src/StickerCommands.hxx \
2013-01-02 22:25:17 +01:00
src/StickerDatabase.cxx src/StickerDatabase.hxx \
src/StickerPrint.cxx src/StickerPrint.hxx \
src/SongSticker.cxx src/SongSticker.hxx
endif
# Generic utility library
libutil_a_SOURCES = \
src/util/LazyRandomEngine.cxx src/util/LazyRandomEngine.hxx \
src/util/SliceBuffer.hxx \
2013-01-04 14:54:49 +01:00
src/util/HugeAllocator.cxx src/util/HugeAllocator.hxx \
src/util/list.h \
src/util/list_sort.c src/util/list_sort.h \
2012-03-21 18:45:51 +01:00
src/util/byte_reverse.c src/util/byte_reverse.h \
src/util/bit_reverse.c src/util/bit_reverse.h
# Event loop library
libevent_a_SOURCES = \
src/event/WakeFD.cxx
# PCM library
libpcm_a_SOURCES = \
src/pcm_buffer.c src/pcm_buffer.h \
src/pcm_export.c src/pcm_export.h \
src/pcm_convert.c src/pcm_convert.h \
2012-03-01 00:57:33 +01:00
src/dsd2pcm/dsd2pcm.c src/dsd2pcm/dsd2pcm.h \
src/pcm_dsd.c src/pcm_dsd.h \
src/pcm_dsd_usb.c src/pcm_dsd_usb.h \
src/pcm_volume.c src/pcm_volume.h \
src/pcm_mix.c src/pcm_mix.h \
src/pcm_channels.c src/pcm_channels.h \
src/pcm_pack.c src/pcm_pack.h \
src/pcm_format.c src/pcm_format.h \
src/pcm_resample.c src/pcm_resample.h \
src/pcm_resample_fallback.c \
src/pcm_resample_internal.h \
src/pcm_dither.c src/pcm_dither.h \
src/pcm_prng.h \
src/pcm_utils.h
libpcm_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(SAMPLERATE_CFLAGS)
PCM_LIBS = \
libpcm.a \
$(SAMPLERATE_LIBS)
if HAVE_LIBSAMPLERATE
libpcm_a_SOURCES += src/pcm_resample_libsamplerate.c
endif
2012-08-02 19:23:11 +02:00
# database plugins
libdb_plugins_a_SOURCES = \
2012-08-07 20:07:17 +02:00
src/DatabaseRegistry.cxx src/DatabaseRegistry.hxx \
src/DatabaseHelpers.cxx src/DatabaseHelpers.hxx \
2012-08-02 19:23:11 +02:00
src/db/SimpleDatabasePlugin.cxx src/db/SimpleDatabasePlugin.hxx
if HAVE_LIBMPDCLIENT
libdb_plugins_a_SOURCES += \
src/db/ProxyDatabasePlugin.cxx src/db/ProxyDatabasePlugin.hxx
endif
2012-08-02 19:23:11 +02:00
DB_LIBS = \
libdb_plugins.a \
$(LIBMPDCLIENT_LIBS)
2012-08-02 19:23:11 +02:00
# archive plugins
if ENABLE_ARCHIVE
noinst_LIBRARIES += libarchive.a
src_mpd_SOURCES += \
2013-01-02 19:22:15 +01:00
src/UpdateArchive.cxx src/UpdateArchive.hxx
libarchive_a_SOURCES = \
src/archive_api.c \
src/archive_list.c \
src/archive_plugin.c \
src/input/archive_input_plugin.c
libarchive_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(BZ2_CFLAGS) \
$(ISO9660_CFLAGS) \
$(ZZIP_CFLAGS)
ARCHIVE_LIBS = \
libarchive.a \
$(BZ2_LIBS) \
$(ISO9660_LIBS) \
$(ZZIP_LIBS)
if HAVE_BZ2
libarchive_a_SOURCES += src/archive/bz2_archive_plugin.c
endif
if HAVE_ZZIP
libarchive_a_SOURCES += src/archive/zzip_archive_plugin.c
endif
if HAVE_ISO9660
libarchive_a_SOURCES += src/archive/iso9660_archive_plugin.c
endif
else
ARCHIVE_LIBS =
endif
# tag plugins
libtag_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(ID3TAG_CFLAGS)
TAG_LIBS = \
libtag.a \
$(ID3TAG_LIBS)
libtag_a_SOURCES =\
src/ape.c \
src/replay_gain_ape.c \
src/tag_ape.c
if HAVE_ID3TAG
libtag_a_SOURCES += \
src/tag_id3.c \
src/tag_rva2.c \
src/riff.c src/aiff.c
endif
# decoder plugins
libdecoder_plugins_a_SOURCES = \
src/decoder/pcm_decoder_plugin.c \
src/decoder/dsdiff_decoder_plugin.c \
src/decoder/dsdiff_decoder_plugin.h \
src/decoder/dsf_decoder_plugin.c \
src/decoder/dsf_decoder_plugin.h \
src/decoder/dsdlib.c \
src/decoder/dsdlib.h \
src/decoder_buffer.c \
src/decoder_plugin.c \
src/decoder_list.c
libdecoder_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(VORBIS_CFLAGS) $(TREMOR_CFLAGS) \
$(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS)) \
$(SNDFILE_CFLAGS) \
$(AUDIOFILE_CFLAGS) \
$(LIBMIKMOD_CFLAGS) \
$(GME_CFLAGS) \
$(SIDPLAY_CFLAGS) \
$(FLUIDSYNTH_CFLAGS) \
$(WILDMIDI_CFLAGS) \
$(WAVPACK_CFLAGS) \
$(MAD_CFLAGS) \
$(MPG123_CFLAGS) \
$(OPUS_CFLAGS) \
$(FFMPEG_CFLAGS) \
$(MPCDEC_CFLAGS) \
2012-09-25 22:03:44 +02:00
$(ADPLUG_CFLAGS) \
$(FAAD_CFLAGS)
DECODER_LIBS = \
libdecoder_plugins.a \
$(VORBIS_LIBS) $(TREMOR_LIBS) \
$(FLAC_LIBS) \
$(SNDFILE_LIBS) \
$(AUDIOFILE_LIBS) $(LIBMIKMOD_LIBS) \
$(GME_LIBS) \
$(SIDPLAY_LIBS) \
$(FLUIDSYNTH_LIBS) \
$(WILDMIDI_LIBS) \
$(WAVPACK_LIBS) \
$(MAD_LIBS) \
$(MPG123_LIBS) \
$(OPUS_LIBS) \
$(MP4FF_LIBS) \
$(FFMPEG_LIBS) \
$(MPCDEC_LIBS) \
2012-09-25 22:03:44 +02:00
$(ADPLUG_LIBS) \
$(FAAD_LIBS)
DECODER_SRC =
if HAVE_MAD
libdecoder_plugins_a_SOURCES += src/decoder/mad_decoder_plugin.c
endif
if HAVE_MPG123
libdecoder_plugins_a_SOURCES += src/decoder/mpg123_decoder_plugin.c
endif
if HAVE_MPCDEC
libdecoder_plugins_a_SOURCES += src/decoder/mpcdec_decoder_plugin.c
endif
if HAVE_OPUS
libdecoder_plugins_a_SOURCES += \
src/decoder/OggUtil.cxx \
src/decoder/OggUtil.hxx \
2013-01-07 23:06:02 +01:00
src/decoder/OggFind.cxx src/decoder/OggFind.hxx \
src/decoder/OpusReader.hxx \
src/decoder/OpusHead.hxx \
src/decoder/OpusHead.cxx \
src/decoder/OpusTags.cxx \
src/decoder/OpusTags.hxx \
src/decoder/OpusDecoderPlugin.cxx \
src/decoder/OpusDecoderPlugin.h
endif
if HAVE_WAVPACK
libdecoder_plugins_a_SOURCES += src/decoder/wavpack_decoder_plugin.c
endif
2012-09-25 22:03:44 +02:00
if HAVE_ADPLUG
libdecoder_plugins_a_SOURCES += \
src/decoder/AdPlugDecoderPlugin.cxx \
src/decoder/AdPlugDecoderPlugin.h
endif
if HAVE_FAAD
libdecoder_plugins_a_SOURCES += src/decoder/faad_decoder_plugin.c
endif
if HAVE_MP4
libdecoder_plugins_a_SOURCES += src/decoder/mp4ff_decoder_plugin.c
endif
if HAVE_XIPH
libdecoder_plugins_a_SOURCES += \
src/decoder/XiphTags.c src/decoder/XiphTags.h \
2013-01-07 22:12:09 +01:00
src/decoder/OggCodec.cxx src/decoder/OggCodec.hxx
endif
if ENABLE_VORBIS_DECODER
libdecoder_plugins_a_SOURCES += \
2013-01-07 22:04:58 +01:00
src/decoder/VorbisComments.cxx src/decoder/VorbisComments.hxx \
src/decoder/VorbisDecoderPlugin.cxx src/decoder/VorbisDecoderPlugin.h
endif
if HAVE_FLAC
2012-10-02 10:58:53 +02:00
libdecoder_plugins_a_SOURCES += \
src/decoder/FLACInput.cxx src/decoder/FLACInput.hxx \
src/decoder/FLACIOHandle.cxx src/decoder/FLACIOHandle.hxx \
2012-10-02 10:56:44 +02:00
src/decoder/FLACMetaData.cxx src/decoder/FLACMetaData.hxx \
src/decoder/FLAC_PCM.cxx src/decoder/FLAC_PCM.hxx \
src/decoder/FLACCommon.cxx src/decoder/FLACCommon.hxx \
src/decoder/FLACDecoderPlugin.cxx \
src/decoder/FLACDecoderPlugin.h
endif
if HAVE_AUDIOFILE
libdecoder_plugins_a_SOURCES += src/decoder/audiofile_decoder_plugin.c
endif
if ENABLE_MIKMOD_DECODER
libdecoder_plugins_a_SOURCES += src/decoder/mikmod_decoder_plugin.c
endif
if HAVE_MODPLUG
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
libdecoder_plugins_a_SOURCES += src/decoder/sidplay_decoder_plugin.cxx
DECODER_SRC += src/dummy.cxx
endif
if ENABLE_FLUIDSYNTH
libdecoder_plugins_a_SOURCES += src/decoder/fluidsynth_decoder_plugin.c
endif
if ENABLE_WILDMIDI
libdecoder_plugins_a_SOURCES += src/decoder/wildmidi_decoder_plugin.c
endif
if HAVE_FFMPEG
libdecoder_plugins_a_SOURCES += \
src/decoder/ffmpeg_metadata.c \
src/decoder/ffmpeg_metadata.h \
src/decoder/ffmpeg_decoder_plugin.c
endif
if ENABLE_SNDFILE
libdecoder_plugins_a_SOURCES += src/decoder/sndfile_decoder_plugin.c
endif
if HAVE_GME
libdecoder_plugins_a_SOURCES += src/decoder/gme_decoder_plugin.c
endif
# encoder plugins
if ENABLE_ENCODER
noinst_LIBRARIES += libencoder_plugins.a
libencoder_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(LAME_CFLAGS) \
$(TWOLAME_CFLAGS) \
$(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS)) \
$(OPUS_CFLAGS) \
$(VORBISENC_CFLAGS)
ENCODER_LIBS = \
libencoder_plugins.a \
$(LAME_LIBS) \
$(TWOLAME_LIBS) \
$(FLAC_LIBS) \
$(OPUS_LIBS) \
$(VORBISENC_LIBS)
libencoder_plugins_a_SOURCES = \
src/encoder/OggStream.hxx \
src/encoder/null_encoder.c \
src/encoder_list.c
if ENABLE_WAVE_ENCODER
libencoder_plugins_a_SOURCES += src/encoder/wave_encoder.c
endif
if ENABLE_VORBIS_ENCODER
2012-10-01 20:02:59 +02:00
libencoder_plugins_a_SOURCES += \
src/encoder/VorbisEncoderPlugin.cxx \
src/encoder/VorbisEncoderPlugin.hxx
endif
if HAVE_OPUS
libencoder_plugins_a_SOURCES += \
src/encoder/OpusEncoderPlugin.cxx \
src/encoder/OpusEncoderPlugin.hxx
endif
if ENABLE_LAME_ENCODER
libencoder_plugins_a_SOURCES += src/encoder/lame_encoder.c
endif
if ENABLE_TWOLAME_ENCODER
libencoder_plugins_a_SOURCES += src/encoder/twolame_encoder.c
endif
if ENABLE_FLAC_ENCODER
libencoder_plugins_a_SOURCES += src/encoder/flac_encoder.c
endif
else
ENCODER_LIBS =
endif
if HAVE_ZEROCONF
src_mpd_SOURCES += src/zeroconf.c
if HAVE_AVAHI
src_mpd_SOURCES += src/zeroconf-avahi.c
endif
if HAVE_BONJOUR
src_mpd_SOURCES += src/zeroconf-bonjour.c
endif
endif
#
# input plugins
#
libinput_a_SOURCES = \
src/InputInit.cxx src/InputInit.hxx \
src/InputRegistry.cxx src/InputRegistry.hxx \
src/InputStream.cxx \
src/input_internal.c src/input_internal.h \
src/input/rewind_input_plugin.c \
src/input/file_input_plugin.c
libinput_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(CURL_CFLAGS) \
$(SOUP_CFLAGS) \
$(CDIO_PARANOIA_CFLAGS) \
$(FFMPEG_CFLAGS) \
$(DESPOTIFY_CFLAGS) \
$(MMS_CFLAGS)
INPUT_LIBS = \
libinput.a \
$(CURL_LIBS) \
$(SOUP_LIBS) \
$(CDIO_PARANOIA_LIBS) \
$(FFMPEG_LIBS) \
$(DESPOTIFY_LIBS) \
$(MMS_LIBS)
if ENABLE_CURL
libinput_a_SOURCES += src/input/curl_input_plugin.c \
src/icy_metadata.c
endif
if ENABLE_SOUP
libinput_a_SOURCES += \
src/input/soup_input_plugin.c \
src/input/soup_input_plugin.h
endif
if ENABLE_CDIO_PARANOIA
libinput_a_SOURCES += src/input/cdio_paranoia_input_plugin.c
endif
if HAVE_FFMPEG
libinput_a_SOURCES += src/input/ffmpeg_input_plugin.c
endif
if ENABLE_MMS
libinput_a_SOURCES += src/input/mms_input_plugin.c
endif
2011-03-27 08:41:40 +02:00
if ENABLE_DESPOTIFY
libinput_a_SOURCES += src/input/despotify_input_plugin.c
2011-03-27 08:41:40 +02:00
endif
liboutput_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(AO_CFLAGS) \
$(ALSA_CFLAGS) \
$(FFADO_CFLAGS) \
$(JACK_CFLAGS) \
$(OPENAL_CFLAGS) \
$(OPENSSL_CFLAGS) \
$(PULSE_CFLAGS) \
$(SHOUT_CFLAGS)
OUTPUT_LIBS = \
liboutput_plugins.a \
$(LIBWRAP_LDFLAGS) \
$(AO_LIBS) \
$(ALSA_LIBS) \
2011-02-08 00:17:58 +01:00
$(ROAR_LIBS) \
$(FFADO_LIBS) \
$(JACK_LIBS) \
$(OPENAL_LIBS) \
$(PULSE_LIBS) \
$(SHOUT_LIBS)
OUTPUT_API_SRC = \
2013-01-04 09:46:41 +01:00
src/OutputList.cxx src/OutputList.hxx \
2013-01-07 08:54:26 +01:00
src/OutputAll.cxx src/OutputAll.hxx \
2013-01-04 09:46:41 +01:00
src/OutputThread.cxx src/OutputThread.hxx \
src/OutputError.hxx \
src/OutputControl.cxx src/OutputControl.hxx \
2013-01-02 19:52:57 +01:00
src/OutputState.cxx src/OutputState.hxx \
2013-01-03 10:58:39 +01:00
src/OutputPrint.cxx src/OutputPrint.hxx \
2013-01-04 09:46:41 +01:00
src/OutputCommand.cxx src/OutputCommand.hxx \
src/OutputPlugin.cxx src/output_plugin.h \
src/OutputFinish.cxx \
src/OutputInit.cxx
liboutput_plugins_a_SOURCES = \
2012-06-27 10:11:21 +02:00
src/output/null_output_plugin.h \
2011-09-17 08:54:50 +02:00
src/output/null_output_plugin.c
MIXER_LIBS = \
libmixer_plugins.a \
$(PULSE_LIBS)
MIXER_API_SRC = \
src/mixer_control.c \
src/mixer_type.c \
2013-01-07 08:54:26 +01:00
src/MixerAll.cxx src/MixerAll.hxx \
src/mixer_api.c
libmixer_plugins_a_SOURCES = \
src/mixer/software_mixer_plugin.c
libmixer_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(ALSA_CFLAGS) \
$(PULSE_CFLAGS)
if HAVE_ALSA
liboutput_plugins_a_SOURCES += \
src/output/alsa_output_plugin.c src/output/alsa_output_plugin.h
2013-01-09 22:25:24 +01:00
libmixer_plugins_a_SOURCES += src/mixer/AlsaMixerPlugin.cxx
endif
2011-02-08 00:17:58 +01:00
if HAVE_ROAR
liboutput_plugins_a_SOURCES += \
src/output/roar_output_plugin.c src/output/roar_output_plugin.h
libmixer_plugins_a_SOURCES += src/mixer/roar_mixer_plugin.c
2011-02-08 00:17:58 +01:00
endif
if ENABLE_FFADO_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/ffado_output_plugin.c src/output/ffado_output_plugin.h
endif
if HAVE_AO
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/ao_output_plugin.c src/output/ao_output_plugin.h
endif
if HAVE_FIFO
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/fifo_output_plugin.c src/output/fifo_output_plugin.h
endif
if ENABLE_PIPE_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/pipe_output_plugin.c src/output/pipe_output_plugin.h
endif
if HAVE_JACK
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/jack_output_plugin.c src/output/jack_output_plugin.h
endif
if HAVE_MVP
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/mvp_output_plugin.c src/output/mvp_output_plugin.h
endif
if HAVE_OSS
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/oss_output_plugin.c src/output/oss_output_plugin.h
libmixer_plugins_a_SOURCES += src/mixer/oss_mixer_plugin.c
endif
2009-08-31 09:26:22 +02:00
if HAVE_OPENAL
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/openal_output_plugin.c src/output/openal_output_plugin.h
2009-08-31 09:26:22 +02:00
endif
if HAVE_OSX
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/osx_output_plugin.c src/output/osx_output_plugin.h
endif
if HAVE_PULSE
liboutput_plugins_a_SOURCES += \
src/output/pulse_output_plugin.c src/output/pulse_output_plugin.h
2013-01-09 22:25:24 +01:00
libmixer_plugins_a_SOURCES += \
src/mixer/PulseMixerPlugin.cxx src/mixer/PulseMixerPlugin.h
endif
if HAVE_SHOUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/shout_output_plugin.c src/output/shout_output_plugin.h
endif
if ENABLE_RECORDER_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/recorder_output_plugin.c src/output/recorder_output_plugin.h
endif
if ENABLE_HTTPD_OUTPUT
liboutput_plugins_a_SOURCES += \
src/icy_server.c \
src/output/httpd_client.c \
2012-06-27 10:11:21 +02:00
src/output/httpd_output_plugin.c src/output/httpd_output_plugin.h
endif
if ENABLE_SOLARIS_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
src/output/solaris_output_plugin.c src/output/solaris_output_plugin.h
endif
if ENABLE_WINMM_OUTPUT
liboutput_plugins_a_SOURCES += \
src/output/winmm_output_plugin.c src/output/winmm_output_plugin.h
libmixer_plugins_a_SOURCES += src/mixer/winmm_mixer_plugin.c
endif
#
# Playlist plugins
#
libplaylist_plugins_a_SOURCES = \
src/playlist/extm3u_playlist_plugin.c \
src/playlist/m3u_playlist_plugin.c \
2009-10-15 00:08:06 +02:00
src/playlist/pls_playlist_plugin.c \
2009-10-13 16:31:07 +02:00
src/playlist/xspf_playlist_plugin.c \
src/playlist/asx_playlist_plugin.c \
src/playlist/rss_playlist_plugin.c \
src/playlist/cue_playlist_plugin.c \
src/playlist/embcue_playlist_plugin.c \
src/playlist/embcue_playlist_plugin.h \
src/playlist_list.c
libplaylist_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(YAJL_CFLAGS) \
$(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS))
PLAYLIST_LIBS = \
libplaylist_plugins.a \
$(FLAC_LIBS)
if ENABLE_LASTFM
libplaylist_plugins_a_SOURCES += src/playlist/lastfm_playlist_plugin.c
endif
2011-03-27 08:41:40 +02:00
if ENABLE_DESPOTIFY
libplaylist_plugins_a_SOURCES += src/playlist/despotify_playlist_plugin.c
2011-03-27 08:41:40 +02:00
endif
if ENABLE_SOUNDCLOUD
libplaylist_plugins_a_SOURCES += \
src/playlist/soundcloud_playlist_plugin.h \
src/playlist/soundcloud_playlist_plugin.c
PLAYLIST_LIBS += $(YAJL_LIBS)
endif
#
# Filter plugins
#
libfilter_plugins_a_SOURCES = \
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 \
2013-01-07 10:12:51 +01:00
src/filter/ReplayGainFilterPlugin.cxx \
src/filter/ReplayGainFilterPlugin.hxx \
src/filter/volume_filter_plugin.c
FILTER_LIBS = \
libfilter_plugins.a \
$(PCM_LIBS)
#
# systemd unit
#
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
mpd.service
endif
#
# Sparse code analysis
#
# sparse is a semantic parser
# URL: git://www.kernel.org/pub/scm/devel/sparse/sparse.git
#
SPARSE = sparse
SPARSE_FLAGS =
SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
-I$(shell $(CC) -print-file-name=include) \
-I$(shell $(CC) -print-file-name=include-fixed)
SPARSE_CPPFLAGS += -D__SCHAR_MAX__=127 -D__SHRT_MAX__=32767 \
-D__INT_MAX__=2147483647 -D__LONG_MAX__=2147483647
SPARSE_SRC = $(addprefix $(top_srcdir)/,$(filter %.c,$(src_mpd_SOURCES)))
sparse-check:
$(SPARSE) -I. $(src_mpd_CFLAGS) $(src_mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(SPARSE_SRC)
.PHONY: sparse-check
#
# Test programs
#
if ENABLE_TEST
C_TESTS = \
test/test_byte_reverse \
test/test_pcm \
test/test_queue_priority
TESTS = $(C_TESTS)
noinst_PROGRAMS = \
$(C_TESTS) \
2009-04-10 09:14:12 +02:00
test/read_conf \
test/run_resolver \
2012-08-07 20:08:50 +02:00
test/DumpDatabase \
2013-01-05 02:39:32 +01:00
test/run_input \
test/dump_text_file \
2013-01-05 02:39:32 +01:00
test/dump_playlist \
test/run_decoder \
test/read_tags \
test/run_filter \
test/run_output \
test/run_convert \
2009-12-02 21:56:02 +01:00
test/run_normalize \
test/software_volume
if HAVE_ID3TAG
noinst_PROGRAMS += test/dump_rva2
endif
if HAVE_ALSA
# this debug program is still ALSA specific
noinst_PROGRAMS += test/read_mixer
endif
test_read_conf_LDADD = \
2009-04-10 09:14:12 +02:00
$(GLIB_LIBS)
test_read_conf_SOURCES = test/read_conf.c \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c
2009-04-10 09:14:12 +02:00
test_run_resolver_LDADD = \
$(GLIB_LIBS)
test_run_resolver_SOURCES = test/run_resolver.c \
src/resolver.c
2012-08-07 20:08:50 +02:00
test_DumpDatabase_LDADD = \
$(DB_LIBS) \
2012-08-07 20:08:50 +02:00
libutil.a \
$(GLIB_LIBS)
test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/DatabaseRegistry.cxx \
2012-08-29 20:03:37 +02:00
src/DatabaseSelection.cxx \
2013-01-02 19:52:57 +01:00
src/Directory.cxx src/DirectorySave.cxx \
src/PlaylistVector.cxx src/PlaylistDatabase.cxx \
2013-01-02 20:56:21 +01:00
src/DatabaseLock.cxx src/DatabaseSave.cxx \
2013-01-02 19:52:57 +01:00
src/Song.cxx src/song_sort.c src/SongSave.cxx \
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx \
2012-08-07 20:08:50 +02:00
src/path.c \
2012-08-29 19:12:26 +02:00
src/SongFilter.cxx \
2013-01-03 10:12:41 +01:00
src/TextFile.cxx \
2012-08-07 20:08:50 +02:00
src/conf.c src/tokenizer.c src/utils.c src/string_util.c
2013-01-05 02:39:32 +01:00
test_run_input_LDADD = \
2009-04-13 19:18:10 +02:00
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
2009-04-13 19:18:10 +02:00
$(GLIB_LIBS)
2013-01-05 02:39:32 +01:00
test_run_input_SOURCES = test/run_input.c \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/io_thread.c src/io_thread.h \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c\
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx \
src/uri.c \
src/fd_util.c
2009-04-13 19:18:10 +02:00
test_dump_text_file_LDADD = \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(GLIB_LIBS)
test_dump_text_file_SOURCES = test/dump_text_file.cxx \
test/stdbin.h \
src/io_thread.c src/io_thread.h \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c\
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/text_input_stream.c src/fifo_buffer.c \
src/uri.c \
src/fd_util.c
2013-01-05 02:39:32 +01:00
test_dump_playlist_LDADD = \
$(PLAYLIST_LIBS) \
$(FLAC_LIBS) \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(DECODER_LIBS) \
$(TAG_LIBS) \
libutil.a \
$(GLIB_LIBS)
2013-01-05 02:39:32 +01:00
test_dump_playlist_SOURCES = test/dump_playlist.cxx \
$(DECODER_SRC) \
src/io_thread.c src/io_thread.h \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c\
src/uri.c \
2013-01-07 10:36:27 +01:00
src/Song.cxx src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx \
src/tag_handler.c src/tag_file.c \
src/audio_check.c src/pcm_buffer.c \
src/text_input_stream.c src/fifo_buffer.c \
src/cue/cue_parser.c src/cue/cue_parser.h \
src/fd_util.c
if HAVE_FLAC
2013-01-05 02:39:32 +01:00
test_dump_playlist_SOURCES += \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
2012-10-02 10:56:44 +02:00
src/decoder/FLACMetaData.cxx
endif
test_run_decoder_LDADD = \
$(DECODER_LIBS) \
libpcm.a \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(TAG_LIBS) \
libutil.a \
$(GLIB_LIBS)
test_run_decoder_SOURCES = test/run_decoder.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/io_thread.c src/io_thread.h \
2013-01-09 22:33:06 +01:00
src/conf.c src/tokenizer.c src/utils.c src/string_util.c \
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/tag_handler.c \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
src/uri.c \
src/fd_util.c \
src/audio_check.c \
src/audio_format.c \
$(ARCHIVE_SRC) \
$(INPUT_SRC) \
$(TAG_SRC) \
$(DECODER_SRC)
test_read_tags_LDADD = \
$(DECODER_LIBS) \
libpcm.a \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(TAG_LIBS) \
libutil.a \
$(GLIB_LIBS)
test_read_tags_SOURCES = test/read_tags.cxx \
src/io_thread.c src/io_thread.h \
2013-01-09 22:33:06 +01:00
src/conf.c src/tokenizer.c src/utils.c src/string_util.c \
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx src/tag_handler.c \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
src/uri.c \
src/fd_util.c \
src/audio_check.c \
$(DECODER_SRC)
if HAVE_ID3TAG
test_dump_rva2_LDADD = \
$(ID3TAG_LIBS) \
$(GLIB_LIBS)
test_dump_rva2_SOURCES = test/dump_rva2.c \
src/riff.c src/aiff.c \
src/tag_handler.c \
src/tag_id3.c \
src/tag_rva2.c
endif
test_run_filter_LDADD = \
$(FILTER_LIBS) \
$(GLIB_LIBS)
test_run_filter_SOURCES = test/run_filter.c \
test/FakeReplayGainConfig.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/filter_plugin.c \
src/filter_registry.c \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c \
src/audio_check.c \
src/audio_format.c \
src/audio_parser.c \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
src/AudioCompress/compress.c
2011-03-27 08:41:40 +02:00
if ENABLE_DESPOTIFY
test_read_tags_SOURCES += \
src/despotify_utils.c
2013-01-05 02:39:32 +01:00
test_run_input_SOURCES += \
2011-03-27 08:41:40 +02:00
src/despotify_utils.c
test_dump_text_file_SOURCES += \
src/despotify_utils.c
2013-01-05 02:39:32 +01:00
test_dump_playlist_SOURCES += \
2011-03-27 08:41:40 +02:00
src/despotify_utils.c
test_run_decoder_SOURCES += \
src/despotify_utils.c
endif
if ENABLE_ENCODER
noinst_PROGRAMS += test/run_encoder
test_run_encoder_SOURCES = test/run_encoder.c \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/fifo_buffer.c src/growing_fifo.c \
2009-07-19 15:11:37 +02:00
src/conf.c src/tokenizer.c \
src/utils.c src/string_util.c \
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/audio_check.c \
src/audio_format.c \
src/audio_parser.c
test_run_encoder_LDADD = \
$(ENCODER_LIBS) \
libpcm.a \
$(TAG_LIBS) \
$(GLIB_LIBS)
endif
if ENABLE_VORBIS_ENCODER
noinst_PROGRAMS += test/test_vorbis_encoder
test_test_vorbis_encoder_SOURCES = test/test_vorbis_encoder.c \
test/stdbin.h \
src/conf.c src/tokenizer.c \
src/utils.c \
src/string_util.c \
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/audio_check.c \
src/audio_format.c \
src/audio_parser.c \
src/pcm_buffer.c \
src/fifo_buffer.c src/growing_fifo.c \
$(ENCODER_SRC)
test_test_vorbis_encoder_CPPFLAGS = $(AM_CPPFLAGS) \
$(ENCODER_CFLAGS)
test_test_vorbis_encoder_LDADD = $(MPD_LIBS) \
$(ENCODER_LIBS) \
$(GLIB_LIBS)
endif
test_software_volume_SOURCES = test/software_volume.c \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/audio_check.c \
src/audio_parser.c
test_software_volume_LDADD = \
$(PCM_LIBS) \
$(GLIB_LIBS)
2009-12-02 21:56:02 +01:00
test_run_normalize_SOURCES = test/run_normalize.c \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
2009-12-02 21:56:02 +01:00
src/audio_check.c \
src/audio_parser.c \
src/AudioCompress/compress.c
2009-12-02 21:56:02 +01:00
test_run_normalize_LDADD = \
$(GLIB_LIBS)
test_run_convert_SOURCES = test/run_convert.c \
2012-03-01 00:57:33 +01:00
src/dsd2pcm/dsd2pcm.c \
src/fifo_buffer.c \
src/audio_format.c \
src/audio_check.c \
src/audio_parser.c
test_run_convert_LDADD = \
$(PCM_LIBS) \
libutil.a \
$(GLIB_LIBS)
test_run_output_LDADD = $(MPD_LIBS) \
$(OUTPUT_LIBS) \
$(ENCODER_LIBS) \
libmixer_plugins.a \
$(FILTER_LIBS) \
libutil.a \
$(GLIB_LIBS)
2013-01-04 09:46:41 +01:00
test_run_output_SOURCES = test/run_output.cxx \
test/FakeReplayGainConfig.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
2013-01-09 22:33:06 +01:00
src/conf.c src/tokenizer.c src/utils.c src/string_util.c \
2011-08-28 17:29:09 +02:00
src/io_thread.c src/io_thread.h \
src/audio_check.c \
src/audio_format.c \
src/audio_parser.c \
src/timer.c src/clock.c \
2013-01-07 10:36:27 +01:00
src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/fifo_buffer.c src/growing_fifo.c \
src/page.c \
src/socket_util.c \
src/resolver.c \
2013-01-04 09:46:41 +01:00
src/OutputInit.cxx src/OutputFinish.cxx src/OutputList.cxx \
src/OutputPlugin.cxx \
src/mixer_api.c \
src/mixer_control.c \
src/mixer_type.c \
src/filter_plugin.c \
src/filter_config.c \
src/AudioCompress/compress.c \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
src/fd_util.c \
src/server_socket.c
test_read_mixer_LDADD = \
libpcm.a \
libmixer_plugins.a \
$(OUTPUT_LIBS) \
$(GLIB_LIBS)
test_read_mixer_SOURCES = test/read_mixer.c \
2013-01-09 22:33:06 +01:00
src/conf.c src/tokenizer.c src/utils.c src/string_util.c \
src/mixer_control.c src/mixer_api.c \
src/filter_plugin.c \
src/filter/volume_filter_plugin.c \
src/fd_util.c
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.cxx \
src/fd_util.c \
src/fifo_buffer.c \
2013-01-02 19:22:15 +01:00
src/InotifySource.cxx
test_run_inotify_LDADD = $(GLIB_LIBS)
endif
test_test_byte_reverse_SOURCES = \
test/test_byte_reverse.c
test_test_byte_reverse_LDADD = \
libutil.a \
$(GLIB_LIBS)
test_test_pcm_SOURCES = \
test/test_pcm_dither.c \
test/test_pcm_pack.c \
test/test_pcm_channels.c \
2012-07-09 23:11:40 +02:00
test/test_pcm_volume.c \
test/test_pcm_all.h \
test/test_pcm_main.c
test_test_pcm_LDADD = \
$(PCM_LIBS) \
2012-03-21 18:45:51 +01:00
libutil.a \
$(GLIB_LIBS)
test_test_queue_priority_SOURCES = \
2013-01-04 20:50:00 +01:00
src/Queue.cxx \
src/fd_util.c \
test/test_queue_priority.cxx
test_test_queue_priority_LDADD = \
libutil.a \
$(GLIB_LIBS)
noinst_PROGRAMS += src/dsd2pcm/dsd2pcm
src_dsd2pcm_dsd2pcm_SOURCES = \
src/dsd2pcm/dsd2pcm.c src/dsd2pcm/dsd2pcm.h \
src/dsd2pcm/noiseshape.c src/dsd2pcm/noiseshape.h \
src/dsd2pcm/main.cpp
src_dsd2pcm_dsd2pcm_LDADD = libutil.a
endif
#
# Documentation
#
man_MANS = doc/mpd.1 doc/mpd.conf.5
doc_DATA = AUTHORS COPYING NEWS README UPGRADING doc/mpdconf.example
2010-02-08 11:55:03 +01:00
DOCBOOK_FILES = doc/protocol.xml doc/user.xml doc/developer.xml
if ENABLE_DOCUMENTATION
protocoldir = $(docdir)/protocol
protocol_DATA = $(wildcard doc/protocol/*.html)
userdir = $(docdir)/user
user_DATA = $(wildcard doc/user/*.html)
developerdir = $(docdir)/developer
developer_DATA = $(wildcard doc/developer/*.html)
if HAVE_XMLTO
DOCBOOK_HTML = $(patsubst %.xml,%/index.html,$(DOCBOOK_FILES))
$(DOCBOOK_HTML): %/index.html: %.xml
$(XMLTO) -o $(@D) --stringparam chunker.output.encoding=utf-8 html $<
else
DOCBOOK_HTML =
endif
doc/api/html/index.html: doc/doxygen.conf
@mkdir -p $(@D)
$(DOXYGEN) $<
all-local: $(DOCBOOK_HTML) doc/api/html/index.html
clean-local:
rm -rf $(patsubst %.xml,%,$(DOCBOOK_FILES))
rm -rf doc/api
install-data-local: doc/api/html/index.html
$(mkinstalldirs) $(DESTDIR)$(docdir)/api/html
$(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/ www.musicpd.org:/var/www/doc/ \
--chmod=Dug+rwx,Do+rx,Fug+rw,Fo+r \
--include=protocol --include=protocol/** \
--include=user --include=user/** \
--include=developer --include=developer/** \
--include=api --include=api/** \
--exclude=*
endif
#
# Distribution
#
Merge branches/ew r7104 thread-safety work in preparation for rewrite to use pthreads Expect no regressions against trunk (r7078), possibly minor performance improvements in update (due to fewer heap allocations), but increased stack usage. Applied the following patches: * maxpath_str for reentrancy (temporary fix, reverted) * path: start working on thread-safe variants of these methods * Re-entrancy work on path/character-set conversions * directory.c: exploreDirectory() use reentrant functions here * directory/update: more use of reentrant functions + cleanups * string_toupper: a strdup-less version of strDupToUpper * get_song_url: a static-variable-free version of getSongUrl() * Use reentrant/thread-safe get_song_url everywhere * replace rmp2amp with the reentrant version, rmp2amp_r * Get rid of the non-reentrant/non-thread-safe rpp2app, too. * buffer2array: assert strdup() returns a usable value in unit tests * replace utf8ToFsCharset and fsCharsetToUtf8 with thread-safe variants * fix storing playlists w/o absolute paths * parent_path(), a reentrant version of parentPath() * parentPath => parent_path for reentrancy and thread-safety * allow "make test" to automatically run embedded unit tests * remove convStrDup() and maxpath_str() * use MPD_PATH_MAX everywhere instead of MAXPATHLEN * path: get rid of appendSlash, pfx_path and just use pfx_dir * get_song_url: fix the ability to play songs in the top-level music_directory git-svn-id: https://svn.musicpd.org/mpd/trunk@7106 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-12-28 03:56:25 +01:00
EXTRA_DIST = $(doc_DATA) autogen.sh \
$(wildcard scripts/*.sh) \
$(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf \
src/win/mpd_win32_rc.rc.in