mpd/Makefile.am

1997 lines
53 KiB
Makefile
Raw Normal View History

ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign 1.11 dist-xz subdir-objects
AM_CPPFLAGS += -I$(srcdir)/src $(GLIB_CFLAGS)
AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"'
if ANDROID
else
bin_PROGRAMS = src/mpd
endif
noinst_LIBRARIES = \
libmpd.a \
libutil.a \
libthread.a \
libsystem.a \
libevent.a \
libicu.a \
libpcm.a \
libconf.a \
libtag.a \
libinput.a \
2013-01-21 20:31:29 +01:00
libfs.a \
libplaylist_plugins.a \
libdecoder.a \
libfilter_plugins.a \
libmixer_plugins.a \
liboutput_plugins.a
libmpd_a_DEPENDENCIES =
libmpd_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(LIBMPDCLIENT_CFLAGS) \
$(AVAHI_CFLAGS) \
2010-01-20 21:04:07 +01:00
$(LIBWRAP_CFLAGS) \
$(SQLITE_CFLAGS)
src_mpd_LDADD = \
libmpd.a \
$(NEIGHBOR_LIBS) \
2012-08-02 19:23:11 +02:00
$(DB_LIBS) \
$(STORAGE_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) \
libconf.a \
libevent.a \
libthread.a \
libsystem.a \
$(ICU_LDADD) \
libutil.a \
2013-01-21 20:31:29 +01:00
libfs.a \
$(SYSTEMD_DAEMON_LIBS) \
$(GLIB_LIBS)
src_mpd_SOURCES = \
src/Main.cxx src/Main.hxx
libmpd_a_SOURCES = \
$(OUTPUT_API_SRC) \
$(MIXER_API_SRC) \
src/check.h \
2013-10-15 09:21:13 +02:00
src/Compiler.h \
src/open.h \
src/poison.h \
2013-01-10 10:44:04 +01:00
src/notify.cxx src/notify.hxx \
2013-01-30 21:47:12 +01:00
src/AudioConfig.cxx src/AudioConfig.hxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx src/CheckAudioFormat.hxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx src/AudioFormat.hxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx src/AudioParser.hxx \
src/protocol/Ack.cxx src/protocol/Ack.hxx \
2013-01-03 10:33:04 +01:00
src/protocol/ArgParser.cxx src/protocol/ArgParser.hxx \
src/protocol/Result.cxx src/protocol/Result.hxx \
2013-10-20 13:41:04 +02:00
src/command/CommandResult.hxx \
src/command/CommandError.cxx src/command/CommandError.hxx \
src/command/AllCommands.cxx src/command/AllCommands.hxx \
src/command/QueueCommands.cxx src/command/QueueCommands.hxx \
src/command/TagCommands.cxx src/command/TagCommands.hxx \
2013-10-20 13:41:04 +02:00
src/command/PlayerCommands.cxx src/command/PlayerCommands.hxx \
src/command/PlaylistCommands.cxx src/command/PlaylistCommands.hxx \
src/command/FileCommands.cxx src/command/FileCommands.hxx \
2013-10-20 13:41:04 +02:00
src/command/OutputCommands.cxx src/command/OutputCommands.hxx \
src/command/MessageCommands.cxx src/command/MessageCommands.hxx \
src/command/OtherCommands.cxx src/command/OtherCommands.hxx \
src/command/CommandListBuilder.cxx src/command/CommandListBuilder.hxx \
2013-01-09 08:36:52 +01:00
src/Idle.cxx src/Idle.hxx \
2013-01-04 10:31:59 +01:00
src/CrossFade.cxx src/CrossFade.hxx \
2014-01-24 00:02:24 +01:00
src/decoder/DecoderError.cxx src/decoder/DecoderError.hxx \
src/decoder/DecoderThread.cxx src/decoder/DecoderThread.hxx \
src/decoder/DecoderCommand.hxx \
src/decoder/DecoderControl.cxx src/decoder/DecoderControl.hxx \
src/decoder/DecoderAPI.cxx src/decoder/DecoderAPI.hxx \
src/decoder/DecoderPlugin.hxx \
src/decoder/DecoderInternal.cxx src/decoder/DecoderInternal.hxx \
src/decoder/DecoderPrint.cxx src/decoder/DecoderPrint.hxx \
2014-01-24 16:31:52 +01:00
src/filter/FilterConfig.cxx src/filter/FilterConfig.hxx \
src/filter/FilterPlugin.cxx src/filter/FilterPlugin.hxx \
src/filter/FilterInternal.hxx \
src/filter/FilterRegistry.cxx src/filter/FilterRegistry.hxx \
2014-01-24 00:26:53 +01:00
src/client/Client.cxx src/client/Client.hxx \
src/client/ClientInternal.hxx \
src/client/ClientEvent.cxx \
src/client/ClientExpire.cxx \
src/client/ClientGlobal.cxx \
src/client/ClientIdle.cxx \
src/client/ClientList.cxx src/client/ClientList.hxx \
src/client/ClientNew.cxx \
src/client/ClientProcess.cxx \
src/client/ClientRead.cxx \
src/client/ClientWrite.cxx \
src/client/ClientMessage.cxx src/client/ClientMessage.hxx \
src/client/ClientSubscribe.cxx \
src/client/ClientFile.cxx \
2013-01-03 11:05:44 +01:00
src/Listen.cxx src/Listen.hxx \
src/LogInit.cxx src/LogInit.hxx \
src/LogBackend.cxx src/LogBackend.hxx \
src/Log.cxx src/Log.hxx src/LogV.hxx \
src/LogLevel.hxx \
2013-08-07 18:47:33 +02:00
src/ls.cxx src/ls.hxx \
2013-01-10 10:33:20 +01:00
src/IOThread.cxx src/IOThread.hxx \
src/Instance.cxx src/Instance.hxx \
2014-01-24 16:14:05 +01:00
src/win32/Win32Main.cxx \
2013-01-09 23:12:53 +01:00
src/GlobalEvents.cxx src/GlobalEvents.hxx \
src/MixRampInfo.hxx \
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 \
2013-01-02 22:43:56 +01:00
src/Mapper.cxx src/Mapper.hxx \
src/Partition.cxx 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 \
src/PlayerListener.hxx \
src/Playlist.cxx src/Playlist.hxx \
src/PlaylistError.cxx src/PlaylistError.hxx \
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/PlaylistTag.cxx \
src/PlaylistPrint.cxx src/PlaylistPrint.hxx \
src/PlaylistSave.cxx src/PlaylistSave.hxx \
src/playlist/PlaylistStream.cxx src/playlist/PlaylistStream.hxx \
2014-01-23 23:30:12 +01:00
src/playlist/PlaylistMapper.cxx src/playlist/PlaylistMapper.hxx \
src/playlist/PlaylistAny.cxx src/playlist/PlaylistAny.hxx \
src/playlist/PlaylistSong.cxx src/playlist/PlaylistSong.hxx \
2013-01-02 19:52:57 +01:00
src/PlaylistState.cxx src/PlaylistState.hxx \
2014-01-23 23:30:12 +01:00
src/playlist/PlaylistQueue.cxx src/playlist/PlaylistQueue.hxx \
src/playlist/Print.cxx src/playlist/Print.hxx \
2014-01-27 11:05:21 +01:00
src/db/PlaylistVector.cxx src/db/PlaylistVector.hxx \
src/db/PlaylistInfo.hxx \
2014-01-24 00:17:50 +01:00
src/queue/IdTable.hxx \
src/queue/Queue.cxx src/queue/Queue.hxx \
src/queue/QueuePrint.cxx src/queue/QueuePrint.hxx \
src/queue/QueueSave.cxx src/queue/QueueSave.hxx \
2013-10-02 12:22:12 +02:00
src/ReplayGainConfig.cxx src/ReplayGainConfig.hxx \
src/ReplayGainInfo.cxx src/ReplayGainInfo.hxx \
src/DetachedSong.cxx src/DetachedSong.hxx \
2013-01-02 22:42:12 +01:00
src/SongUpdate.cxx \
src/SongLoader.cxx src/SongLoader.hxx \
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/StateFile.cxx src/StateFile.hxx \
2013-10-02 12:14:07 +02:00
src/Stats.cxx src/Stats.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 \
2013-01-26 01:18:12 +01:00
src/TagFile.cxx src/TagFile.hxx \
src/TagStream.cxx src/TagStream.hxx \
src/TimePrint.cxx src/TimePrint.hxx \
2014-01-24 16:25:21 +01:00
src/mixer/Volume.cxx src/mixer/Volume.hxx \
2012-08-29 19:12:26 +02:00
src/SongFilter.cxx src/SongFilter.hxx \
2014-02-19 09:00:29 +01:00
src/PlaylistFile.cxx src/PlaylistFile.hxx
if ANDROID
else
libmpd_a_SOURCES += \
src/unix/SignalHandlers.cxx src/unix/SignalHandlers.hxx \
src/unix/Daemon.cxx src/unix/Daemon.hxx \
src/unix/PidFile.hxx \
src/CommandLine.cxx src/CommandLine.hxx
endif
if ENABLE_DATABASE
libmpd_a_SOURCES += \
src/PlaylistUpdate.cxx \
src/command/StorageCommands.cxx src/command/StorageCommands.hxx \
src/command/DatabaseCommands.cxx src/command/DatabaseCommands.hxx \
src/db/LightSong.cxx src/db/LightSong.hxx \
src/db/LightDirectory.hxx \
src/db/update/UpdateDomain.cxx src/db/update/UpdateDomain.hxx \
src/db/update/Service.cxx src/db/update/Service.hxx \
src/db/update/UpdateGlue.cxx \
src/db/update/Queue.cxx src/db/update/Queue.hxx \
src/db/update/UpdateIO.cxx src/db/update/UpdateIO.hxx \
src/db/update/Editor.cxx src/db/update/Editor.hxx \
src/db/update/Walk.cxx src/db/update/Walk.hxx \
src/db/update/UpdateSong.cxx \
src/db/update/Container.cxx \
src/db/update/Remove.cxx src/db/update/Remove.hxx \
src/db/update/ExcludeList.cxx src/db/update/ExcludeList.hxx \
src/db/Uri.hxx \
src/db/DatabaseGlue.cxx src/db/DatabaseGlue.hxx \
2014-02-17 21:47:15 +01:00
src/db/Configured.cxx src/db/Configured.hxx \
src/db/DatabaseSong.cxx src/db/DatabaseSong.hxx \
src/db/DatabasePrint.cxx src/db/DatabasePrint.hxx \
src/db/DatabaseQueue.cxx src/db/DatabaseQueue.hxx \
src/db/DatabasePlaylist.cxx src/db/DatabasePlaylist.hxx \
src/db/DatabaseError.cxx src/db/DatabaseError.hxx \
src/db/DatabaseLock.cxx src/db/DatabaseLock.hxx \
src/db/DatabasePlugin.hxx \
2014-02-19 22:54:52 +01:00
src/db/Interface.hxx \
src/db/Stats.hxx \
src/db/DatabaseListener.hxx \
src/db/Visitor.hxx \
src/db/Selection.cxx src/db/Selection.hxx
endif
UPNP_SOURCES = \
src/lib/upnp/Init.cxx src/lib/upnp/Init.hxx \
src/lib/upnp/ClientInit.cxx src/lib/upnp/ClientInit.hxx \
src/lib/upnp/Device.cxx src/lib/upnp/Device.hxx \
src/lib/upnp/ContentDirectoryService.cxx src/lib/upnp/ContentDirectoryService.hxx \
src/lib/upnp/Discovery.cxx src/lib/upnp/Discovery.hxx \
src/lib/upnp/Domain.cxx src/lib/upnp/Domain.hxx \
src/lib/upnp/ixmlwrap.cxx src/lib/upnp/ixmlwrap.hxx \
src/lib/upnp/Callback.hxx \
src/lib/upnp/Util.cxx src/lib/upnp/Util.hxx \
src/lib/upnp/WorkQueue.hxx \
src/lib/upnp/Action.hxx
#
# Android native library
#
if ANDROID
noinst_LIBRARIES += libmain.a
libmain_a_SOURCES = \
src/Main.cxx src/Main.hxx
libmain_a_CPPFLAGS = $(AM_CPPFLAGS) -Iandroid/build/include
all-local: android/build/bin/Main-debug.apk
clean-local:
rm -rf android/build
libmpd.so: $(filter %.a,$(src_mpd_LDADD)) libmain.a
$(AM_V_CXXLD)$(CXXLD) -shared -Wl,--no-undefined,-shared,-Bsymbolic -llog -lz -o $@ $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) src/libmain_a-Main.o $(src_mpd_LDADD) $(LIBS)
android/build/build.xml: android/AndroidManifest.xml
rm -rf android/build
mkdir -p android/build/include
ln -s $(srcdir)/android/AndroidManifest.xml $(srcdir)/android/custom_rules.xml $(srcdir)/android/src $(srcdir)/android/res android/build
$(ANDROID_SDK)/tools/android update project --path android/build --target android-9
android/build/bin/classes/org/musicpd/Bridge.class: android/src/Bridge.java android/build/build.xml
cd android/build && ant compile-jni-classes
android/build/include/org_musicpd_Bridge.h: android/build/bin/classes/org/musicpd/Bridge.class
javah -classpath $(ANDROID_SDK)/platforms/android-17/android.jar:android/build/bin/classes -d $(@D) org.musicpd.Bridge
libmpd_a_DEPENDENCIES += android/build/include/org_musicpd_Bridge.h
android/build/libs/armeabi-v7a/libmpd.so: libmpd.so android/build/build.xml
mkdir -p $(@D)
rm -f $@
strip -o $@ $<
android/build/bin/Main-debug.apk: android/build/build.xml android/build/libs/armeabi-v7a/libmpd.so
cd android/build && ant nodeps debug
android/build/bin/Main-release-unsigned.apk: android/build/build.xml android/build/libs/armeabi-v7a/libmpd.so
cd android/build && ant nodeps release
android/build/bin/Main-release-unaligned.apk: android/build/bin/Main-release-unsigned.apk
jarsigner -digestalg SHA1 -sigalg MD5withRSA -storepass:env ANDROID_KEYSTORE_PASS -keystore $(ANDROID_KEYSTORE) -signedjar $@ $< $(ANDROID_KEY_ALIAS)
android/build/bin/Main.apk: android/build/bin/Main-release-unaligned.apk
$(ANDROID_SDK)/tools/zipalign -f 4 $< $@
endif
#
# Windows resource file
#
2014-01-24 16:14:05 +01:00
src/win32/mpd_win32_rc.$(OBJEXT): src/win32/mpd_win32_rc.rc
$(WINDRES) -i $< -o $@
if HAVE_WINDOWS
2014-01-24 16:14:05 +01:00
noinst_DATA = src/win32/mpd_win32_rc.rc
2014-01-24 16:14:05 +01:00
src_mpd_DEPENDENCIES = src/win32/mpd_win32_rc.$(OBJEXT)
src_mpd_LDFLAGS = -Wl,src/win32/mpd_win32_rc.$(OBJEXT)
endif
if ENABLE_DATABASE
if ENABLE_INOTIFY
libmpd_a_SOURCES += \
2014-01-24 16:18:50 +01:00
src/db/update/InotifyDomain.cxx src/db/update/InotifyDomain.hxx \
src/db/update/InotifySource.cxx src/db/update/InotifySource.hxx \
src/db/update/InotifyQueue.cxx src/db/update/InotifyQueue.hxx \
src/db/update/InotifyUpdate.cxx src/db/update/InotifyUpdate.hxx
endif
endif
if ENABLE_SQLITE
libmpd_a_SOURCES += \
2013-10-20 13:41:04 +02:00
src/command/StickerCommands.cxx src/command/StickerCommands.hxx \
2014-01-24 16:15:41 +01:00
src/sticker/StickerDatabase.cxx src/sticker/StickerDatabase.hxx \
src/sticker/StickerPrint.cxx src/sticker/StickerPrint.hxx \
src/sticker/SongSticker.cxx src/sticker/SongSticker.hxx
endif
# Generic utility library
libutil_a_SOURCES = \
src/util/Macros.hxx \
2013-12-26 11:42:34 +01:00
src/util/Cast.hxx \
2013-12-22 21:08:06 +01:00
src/util/Clamp.hxx \
src/util/Alloc.cxx src/util/Alloc.hxx \
src/util/VarSize.hxx \
src/util/Error.cxx src/util/Error.hxx \
src/util/Domain.hxx \
src/util/ReusableArray.hxx \
src/util/ASCII.hxx \
2013-10-31 00:08:14 +01:00
src/util/CharUtil.hxx \
src/util/NumberParser.hxx \
2013-04-09 01:08:20 +02:00
src/util/StringUtil.cxx src/util/StringUtil.hxx \
src/util/SplitString.cxx src/util/SplitString.hxx \
src/util/FormatString.cxx src/util/FormatString.hxx \
2013-04-08 23:51:39 +02:00
src/util/Tokenizer.cxx src/util/Tokenizer.hxx \
2013-04-08 23:30:21 +02:00
src/util/UriUtil.cxx src/util/UriUtil.hxx \
2013-01-30 23:48:34 +01:00
src/util/Manual.hxx \
2013-01-29 23:20:19 +01:00
src/util/RefCount.hxx \
src/util/FifoBuffer.hxx \
src/util/DynamicFifoBuffer.hxx \
2013-11-11 22:34:57 +01:00
src/util/ConstBuffer.hxx \
src/util/WritableBuffer.hxx \
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/PeakBuffer.cxx src/util/PeakBuffer.hxx \
2014-01-27 08:53:42 +01:00
src/util/OptionParser.cxx src/util/OptionParser.hxx \
src/util/OptionDef.hxx \
src/util/list.h \
src/util/list_sort.c src/util/list_sort.h \
2013-10-16 21:04:52 +02:00
src/util/ByteReverse.cxx src/util/ByteReverse.hxx \
src/util/bit_reverse.c src/util/bit_reverse.h
# Multi-threading library
libthread_a_SOURCES = \
src/thread/Util.hxx \
src/thread/Name.hxx \
src/thread/Mutex.hxx \
src/thread/PosixMutex.hxx \
src/thread/CriticalSection.hxx \
src/thread/GLibMutex.hxx \
src/thread/Cond.hxx \
src/thread/PosixCond.hxx \
src/thread/WindowsCond.hxx \
src/thread/GLibCond.hxx \
src/thread/Thread.cxx src/thread/Thread.hxx \
src/thread/Id.hxx
# System library
libsystem_a_SOURCES = \
src/system/ByteOrder.hxx \
src/system/FatalError.cxx src/system/FatalError.hxx \
src/system/fd_util.c src/system/fd_util.h \
src/system/SocketUtil.cxx src/system/SocketUtil.hxx \
src/system/SocketError.cxx src/system/SocketError.hxx \
2013-09-04 18:02:09 +02:00
src/system/Resolver.cxx src/system/Resolver.hxx \
2013-08-07 11:52:26 +02:00
src/system/EventPipe.cxx src/system/EventPipe.hxx \
src/system/EventFD.cxx src/system/EventFD.hxx \
src/system/SignalFD.cxx src/system/SignalFD.hxx \
src/system/EPollFD.cxx src/system/EPollFD.hxx \
src/system/PeriodClock.hxx \
2013-10-15 09:38:12 +02:00
src/system/Clock.cxx src/system/Clock.hxx
# Event loop library
libevent_a_SOURCES = \
src/event/WakeFD.hxx \
src/event/PollGroup.hxx \
src/event/PollGroupEPoll.hxx \
src/event/PollGroupPoll.hxx src/event/PollGroupPoll.cxx \
src/event/PollGroupWinSelect.hxx src/event/PollGroupWinSelect.cxx \
src/event/PollResultGeneric.hxx \
src/event/SignalMonitor.hxx src/event/SignalMonitor.cxx \
src/event/TimeoutMonitor.hxx src/event/TimeoutMonitor.cxx \
2013-08-10 10:33:43 +02:00
src/event/IdleMonitor.hxx src/event/IdleMonitor.cxx \
src/event/DeferredMonitor.hxx src/event/DeferredMonitor.cxx \
src/event/SocketMonitor.cxx src/event/SocketMonitor.hxx \
src/event/BufferedSocket.cxx src/event/BufferedSocket.hxx \
src/event/FullyBufferedSocket.cxx src/event/FullyBufferedSocket.hxx \
src/event/MultiSocketMonitor.cxx src/event/MultiSocketMonitor.hxx \
2013-01-30 13:39:12 +01:00
src/event/ServerSocket.cxx src/event/ServerSocket.hxx \
src/event/Call.hxx src/event/Call.cxx \
src/event/Loop.cxx src/event/Loop.hxx
# UTF-8 library
libicu_a_SOURCES = \
src/lib/icu/Collate.cxx src/lib/icu/Collate.hxx \
src/lib/icu/Error.cxx src/lib/icu/Error.hxx
ICU_LDADD = libicu.a $(ICU_LIBS)
# PCM library
libpcm_a_SOURCES = \
src/pcm/Domain.cxx src/pcm/Domain.hxx \
src/pcm/Traits.hxx \
2013-07-29 08:10:10 +02:00
src/pcm/PcmBuffer.cxx src/pcm/PcmBuffer.hxx \
2013-04-09 01:24:32 +02:00
src/pcm/PcmExport.cxx src/pcm/PcmExport.hxx \
2013-04-09 01:24:52 +02:00
src/pcm/PcmConvert.cxx src/pcm/PcmConvert.hxx \
src/pcm/dsd2pcm/dsd2pcm.c src/pcm/dsd2pcm/dsd2pcm.h \
2013-07-29 07:56:40 +02:00
src/pcm/PcmDsd.cxx src/pcm/PcmDsd.hxx \
src/pcm/PcmDsdUsb.cxx src/pcm/PcmDsdUsb.hxx \
2013-12-22 23:24:42 +01:00
src/pcm/Volume.cxx src/pcm/Volume.hxx \
2013-04-09 01:24:52 +02:00
src/pcm/PcmMix.cxx src/pcm/PcmMix.hxx \
src/pcm/PcmChannels.cxx src/pcm/PcmChannels.hxx \
2013-10-16 20:54:51 +02:00
src/pcm/PcmPack.cxx src/pcm/PcmPack.hxx \
2013-04-09 01:24:52 +02:00
src/pcm/PcmFormat.cxx src/pcm/PcmFormat.hxx \
src/pcm/FormatConverter.cxx src/pcm/FormatConverter.hxx \
src/pcm/ChannelsConverter.cxx src/pcm/ChannelsConverter.hxx \
src/pcm/Resampler.hxx \
src/pcm/GlueResampler.cxx src/pcm/GlueResampler.hxx \
src/pcm/FallbackResampler.cxx src/pcm/FallbackResampler.hxx \
src/pcm/ConfiguredResampler.cxx src/pcm/ConfiguredResampler.hxx \
2013-04-09 01:24:52 +02:00
src/pcm/PcmDither.cxx src/pcm/PcmDither.hxx \
src/pcm/PcmPrng.hxx \
src/pcm/PcmUtils.hxx
libpcm_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(SOXR_CFLAGS) \
$(SAMPLERATE_CFLAGS)
PCM_LIBS = \
libpcm.a \
$(SOXR_LIBS) \
$(SAMPLERATE_LIBS)
if HAVE_LIBSAMPLERATE
libpcm_a_SOURCES += \
src/pcm/LibsamplerateResampler.cxx src/pcm/LibsamplerateResampler.hxx
endif
if HAVE_SOXR
libpcm_a_SOURCES += \
src/pcm/SoxrResampler.cxx src/pcm/SoxrResampler.hxx
endif
2013-01-21 20:31:29 +01:00
# File system library
libfs_a_SOURCES = \
src/fs/Domain.cxx src/fs/Domain.hxx \
src/fs/Limits.hxx \
2013-10-21 10:26:53 +02:00
src/fs/Traits.cxx src/fs/Traits.hxx \
src/fs/Config.cxx src/fs/Config.hxx \
src/fs/Charset.cxx src/fs/Charset.hxx \
2013-01-21 20:31:29 +01:00
src/fs/Path.cxx src/fs/Path.hxx \
src/fs/AllocatedPath.cxx src/fs/AllocatedPath.hxx \
2013-12-06 22:22:58 +01:00
src/fs/TextFile.cxx src/fs/TextFile.hxx \
2013-01-21 20:31:29 +01:00
src/fs/FileSystem.cxx src/fs/FileSystem.hxx \
src/fs/StandardDirectory.cxx src/fs/StandardDirectory.hxx \
src/fs/CheckFile.cxx src/fs/CheckFile.hxx \
2013-01-21 20:31:29 +01:00
src/fs/DirectoryReader.hxx
# Storage library
SMBCLIENT_SOURCES = \
src/lib/smbclient/Domain.cxx src/lib/smbclient/Domain.hxx \
src/lib/smbclient/Mutex.cxx src/lib/smbclient/Mutex.hxx \
src/lib/smbclient/Init.cxx src/lib/smbclient/Init.hxx
if ENABLE_DATABASE
noinst_LIBRARIES += libstorage.a
libstorage_a_SOURCES = \
src/storage/StoragePlugin.hxx \
src/storage/Registry.cxx src/storage/Registry.hxx \
src/storage/StorageInterface.cxx src/storage/StorageInterface.hxx \
src/storage/CompositeStorage.cxx src/storage/CompositeStorage.hxx \
src/storage/Configured.cxx src/storage/Configured.hxx \
src/storage/plugins/LocalStorage.cxx src/storage/plugins/LocalStorage.hxx \
src/storage/FileInfo.hxx
libstorage_a_CPPFLAGS = $(AM_CPPFLAGS) \
2014-02-08 14:03:25 +01:00
$(NFS_CFLAGS) \
$(SMBCLIENT_CFLAGS)
STORAGE_LIBS = libstorage.a
if ENABLE_SMBCLIENT
libstorage_a_SOURCES += \
$(SMBCLIENT_SOURCES) \
src/storage/plugins/SmbclientStorage.cxx src/neighbor/plugins/SmbclientStorage.hxx
endif
2014-02-08 14:03:25 +01:00
if ENABLE_NFS
libstorage_a_SOURCES += \
src/lib/nfs/Domain.cxx src/lib/nfs/Domain.hxx \
src/storage/plugins/NfsStorage.cxx src/neighbor/plugins/NfsStorage.hxx
endif
endif
# neighbor plugins
if ENABLE_NEIGHBOR_PLUGINS
libmpd_a_SOURCES += \
src/command/NeighborCommands.cxx \
src/command/NeighborCommands.hxx
noinst_LIBRARIES += libneighbor.a
libneighbor_a_SOURCES = \
src/neighbor/Registry.cxx src/neighbor/Registry.hxx \
src/neighbor/Glue.cxx src/neighbor/Glue.hxx \
src/neighbor/Info.hxx \
src/neighbor/Listener.hxx \
src/neighbor/Explorer.hxx \
src/neighbor/NeighborPlugin.hxx
libneighbor_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(SMBCLIENT_CFLAGS)
if ENABLE_SMBCLIENT
libneighbor_a_SOURCES += \
$(SMBCLIENT_SOURCES) \
src/neighbor/plugins/SmbclientNeighborPlugin.cxx src/neighbor/plugins/SmbclientNeighborPlugin.hxx
endif
NEIGHBOR_LIBS = \
$(SMBCLIENT_LIBS) \
libneighbor.a
if HAVE_LIBUPNP
libneighbor_a_SOURCES += \
$(UPNP_SOURCES) \
src/neighbor/plugins/UpnpNeighborPlugin.cxx src/neighbor/plugins/UpnpNeighborPlugin.hxx
NEIGHBOR_LIBS += \
$(EXPAT_LIBS) \
$(UPNP_LIBS)
endif
endif
2012-08-02 19:23:11 +02:00
# database plugins
if ENABLE_DATABASE
noinst_LIBRARIES += libdb_plugins.a
2012-08-02 19:23:11 +02:00
libdb_plugins_a_SOURCES = \
src/PlaylistDatabase.cxx src/PlaylistDatabase.hxx \
2014-01-24 16:18:50 +01:00
src/db/Registry.cxx src/db/Registry.hxx \
src/db/Helpers.cxx src/db/Helpers.hxx \
2014-02-26 09:17:41 +01:00
src/db/plugins/simple/DatabaseSave.cxx \
src/db/plugins/simple/DatabaseSave.hxx \
src/db/plugins/simple/DirectorySave.cxx \
src/db/plugins/simple/DirectorySave.hxx \
2014-01-24 16:18:50 +01:00
src/db/plugins/LazyDatabase.cxx src/db/plugins/LazyDatabase.hxx \
2014-02-26 09:17:41 +01:00
src/db/plugins/simple/Directory.cxx \
src/db/plugins/simple/Directory.hxx \
src/db/plugins/simple/Song.cxx \
src/db/plugins/simple/Song.hxx \
src/db/plugins/simple/SongSort.cxx \
src/db/plugins/simple/SongSort.hxx \
src/db/plugins/simple/SimpleDatabasePlugin.cxx \
src/db/plugins/simple/SimpleDatabasePlugin.hxx
2012-08-02 19:23:11 +02:00
if HAVE_LIBMPDCLIENT
libdb_plugins_a_SOURCES += \
2014-01-24 16:18:50 +01:00
src/db/plugins/ProxyDatabasePlugin.cxx src/db/plugins/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
if HAVE_LIBUPNP
libdb_plugins_a_SOURCES += \
$(UPNP_SOURCES) \
src/db/plugins/upnp/UpnpDatabasePlugin.cxx src/db/plugins/upnp/UpnpDatabasePlugin.hxx \
2014-01-24 16:18:50 +01:00
src/db/plugins/upnp/Tags.cxx src/db/plugins/upnp/Tags.hxx \
src/db/plugins/upnp/ContentDirectoryService.cxx \
2014-01-24 16:18:50 +01:00
src/db/plugins/upnp/Directory.cxx src/db/plugins/upnp/Directory.hxx \
src/db/plugins/upnp/Object.cxx src/db/plugins/upnp/Object.hxx
DB_LIBS += \
$(EXPAT_LIBS) \
$(UPNP_LIBS)
endif
endif
# archive plugins
if ENABLE_ARCHIVE
noinst_LIBRARIES += libarchive.a
libmpd_a_SOURCES += \
src/db/update/Archive.cxx
libarchive_a_SOURCES = \
2014-01-24 00:09:37 +01:00
src/archive/ArchiveDomain.cxx src/archive/ArchiveDomain.hxx \
src/archive/ArchiveLookup.cxx src/archive/ArchiveLookup.hxx \
src/archive/ArchiveList.cxx src/archive/ArchiveList.hxx \
src/archive/ArchivePlugin.cxx src/archive/ArchivePlugin.hxx \
src/archive/ArchiveVisitor.hxx \
src/archive/ArchiveFile.hxx \
2014-01-24 16:18:21 +01:00
src/input/plugins/ArchiveInputPlugin.cxx src/input/plugins/ArchiveInputPlugin.hxx
libarchive_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(BZ2_CFLAGS) \
$(ISO9660_CFLAGS) \
$(ZZIP_CFLAGS)
ARCHIVE_LIBS = \
libarchive.a \
$(BZ2_LIBS) \
$(ISO9660_LIBS) \
$(ZZIP_LIBS)
if HAVE_BZ2
2013-01-24 19:18:58 +01:00
libarchive_a_SOURCES += \
2014-01-24 00:09:37 +01:00
src/archive/plugins/Bzip2ArchivePlugin.cxx \
src/archive/plugins/Bzip2ArchivePlugin.hxx
endif
if HAVE_ZZIP
2013-01-24 19:18:58 +01:00
libarchive_a_SOURCES += \
2014-01-24 00:09:37 +01:00
src/archive/plugins/ZzipArchivePlugin.cxx \
src/archive/plugins/ZzipArchivePlugin.hxx
endif
if HAVE_ISO9660
2013-01-24 19:18:58 +01:00
libarchive_a_SOURCES += \
2014-01-24 00:09:37 +01:00
src/archive/plugins/Iso9660ArchivePlugin.cxx \
src/archive/plugins/Iso9660ArchivePlugin.hxx
endif
else
ARCHIVE_LIBS =
endif
# configuration library
libconf_a_SOURCES = \
2014-01-24 00:20:01 +01:00
src/config/ConfigDefaults.hxx \
src/config/ConfigPath.cxx src/config/ConfigPath.hxx \
src/config/ConfigData.cxx src/config/ConfigData.hxx \
src/config/ConfigParser.cxx src/config/ConfigParser.hxx \
src/config/ConfigGlobal.cxx src/config/ConfigGlobal.hxx \
src/config/ConfigFile.cxx src/config/ConfigFile.hxx \
src/config/ConfigTemplates.cxx src/config/ConfigTemplates.hxx \
src/config/ConfigError.cxx src/config/ConfigError.hxx \
src/config/ConfigOption.hxx
# tag plugins
libtag_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(ID3TAG_CFLAGS)
TAG_LIBS = \
libtag.a \
$(ID3TAG_LIBS)
libtag_a_SOURCES =\
2013-09-05 18:22:02 +02:00
src/tag/TagType.h \
src/tag/Tag.cxx src/tag/Tag.hxx \
src/tag/TagBuilder.cxx src/tag/TagBuilder.hxx \
src/tag/TagItem.hxx \
2013-09-05 18:22:02 +02:00
src/tag/TagHandler.cxx src/tag/TagHandler.hxx \
src/tag/TagSettings.c src/tag/TagSettings.h \
src/tag/TagConfig.cxx src/tag/TagConfig.hxx \
2013-09-05 18:22:02 +02:00
src/tag/TagNames.c \
src/tag/TagString.cxx src/tag/TagString.hxx \
2013-09-05 18:22:02 +02:00
src/tag/TagPool.cxx src/tag/TagPool.hxx \
src/tag/TagTable.cxx src/tag/TagTable.hxx \
src/tag/ApeLoader.cxx src/tag/ApeLoader.hxx \
src/tag/ApeReplayGain.cxx src/tag/ApeReplayGain.hxx \
src/tag/ApeTag.cxx src/tag/ApeTag.hxx
if HAVE_ID3TAG
libtag_a_SOURCES += \
src/tag/TagId3.cxx src/tag/TagId3.hxx \
src/tag/TagRva2.cxx src/tag/TagRva2.hxx \
2013-09-28 14:14:13 +02:00
src/tag/Riff.cxx src/tag/Riff.hxx \
src/tag/Aiff.cxx src/tag/Aiff.hxx
endif
# decoder plugins
libdecoder_a_SOURCES = \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/PcmDecoderPlugin.cxx \
src/decoder/plugins/PcmDecoderPlugin.hxx \
src/decoder/plugins/DsdiffDecoderPlugin.cxx \
src/decoder/plugins/DsdiffDecoderPlugin.hxx \
src/decoder/plugins/DsfDecoderPlugin.cxx \
src/decoder/plugins/DsfDecoderPlugin.hxx \
src/decoder/plugins/DsdLib.cxx \
src/decoder/plugins/DsdLib.hxx \
src/decoder/DecoderBuffer.cxx src/decoder/DecoderBuffer.hxx \
src/decoder/DecoderPlugin.cxx \
src/decoder/DecoderList.cxx src/decoder/DecoderList.hxx
libdecoder_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.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) \
$(FFMPEG_LIBS) \
$(MPCDEC_LIBS) \
2012-09-25 22:03:44 +02:00
$(ADPLUG_LIBS) \
$(FAAD_LIBS)
if HAVE_MAD
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/MadDecoderPlugin.cxx \
src/decoder/plugins/MadDecoderPlugin.hxx
endif
if HAVE_MPG123
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/Mpg123DecoderPlugin.cxx \
src/decoder/plugins/Mpg123DecoderPlugin.hxx
endif
if HAVE_MPCDEC
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/MpcdecDecoderPlugin.cxx \
src/decoder/plugins/MpcdecDecoderPlugin.hxx
endif
if HAVE_OPUS
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/OggUtil.cxx \
src/decoder/plugins/OggUtil.hxx \
src/decoder/plugins/OggSyncState.hxx \
src/decoder/plugins/OggFind.cxx src/decoder/plugins/OggFind.hxx \
src/decoder/plugins/OpusDomain.cxx src/decoder/plugins/OpusDomain.hxx \
src/decoder/plugins/OpusReader.hxx \
src/decoder/plugins/OpusHead.hxx \
src/decoder/plugins/OpusHead.cxx \
src/decoder/plugins/OpusTags.cxx \
src/decoder/plugins/OpusTags.hxx \
src/decoder/plugins/OpusDecoderPlugin.cxx \
src/decoder/plugins/OpusDecoderPlugin.h
endif
if HAVE_WAVPACK
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/WavpackDecoderPlugin.cxx \
src/decoder/plugins/WavpackDecoderPlugin.hxx
endif
2012-09-25 22:03:44 +02:00
if HAVE_ADPLUG
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/AdPlugDecoderPlugin.cxx \
src/decoder/plugins/AdPlugDecoderPlugin.h
2012-09-25 22:03:44 +02:00
endif
if HAVE_FAAD
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/FaadDecoderPlugin.cxx src/decoder/plugins/FaadDecoderPlugin.hxx
endif
if HAVE_XIPH
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/XiphTags.cxx src/decoder/plugins/XiphTags.hxx \
src/decoder/plugins/OggCodec.cxx src/decoder/plugins/OggCodec.hxx
endif
if ENABLE_VORBIS_DECODER
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/VorbisDomain.cxx src/decoder/plugins/VorbisDomain.hxx \
src/decoder/plugins/VorbisComments.cxx src/decoder/plugins/VorbisComments.hxx \
src/decoder/plugins/VorbisDecoderPlugin.cxx src/decoder/plugins/VorbisDecoderPlugin.h
endif
if HAVE_FLAC
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/FlacInput.cxx src/decoder/plugins/FlacInput.hxx \
src/decoder/plugins/FlacIOHandle.cxx src/decoder/plugins/FlacIOHandle.hxx \
src/decoder/plugins/FlacMetadata.cxx src/decoder/plugins/FlacMetadata.hxx \
src/decoder/plugins/FlacPcm.cxx src/decoder/plugins/FlacPcm.hxx \
src/decoder/plugins/FlacDomain.cxx src/decoder/plugins/FlacDomain.hxx \
src/decoder/plugins/FlacCommon.cxx src/decoder/plugins/FlacCommon.hxx \
src/decoder/plugins/FlacDecoderPlugin.cxx \
src/decoder/plugins/FlacDecoderPlugin.h
endif
if HAVE_AUDIOFILE
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/AudiofileDecoderPlugin.cxx \
src/decoder/plugins/AudiofileDecoderPlugin.hxx
endif
if ENABLE_MIKMOD_DECODER
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/MikmodDecoderPlugin.cxx \
src/decoder/plugins/MikmodDecoderPlugin.hxx
endif
if HAVE_MODPLUG
2013-07-28 12:56:35 +02:00
libmodplug_decoder_plugin_a_SOURCES = \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/ModplugDecoderPlugin.cxx \
src/decoder/plugins/ModplugDecoderPlugin.hxx
2013-07-28 12:56:35 +02:00
libmodplug_decoder_plugin_a_CXXFLAGS = $(AM_CXXFLAGS) $(MODPLUG_CFLAGS)
libmodplug_decoder_plugin_a_CPPFLAGS = $(AM_CPPFLAGS)
noinst_LIBRARIES += libmodplug_decoder_plugin.a
DECODER_LIBS += libmodplug_decoder_plugin.a $(MODPLUG_LIBS)
endif
if ENABLE_SIDPLAY
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/SidplayDecoderPlugin.cxx \
src/decoder/plugins/SidplayDecoderPlugin.hxx
endif
if ENABLE_FLUIDSYNTH
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/FluidsynthDecoderPlugin.cxx \
src/decoder/plugins/FluidsynthDecoderPlugin.hxx
endif
if ENABLE_WILDMIDI
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/WildmidiDecoderPlugin.cxx \
src/decoder/plugins/WildmidiDecoderPlugin.hxx
endif
if HAVE_FFMPEG
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/FfmpegMetaData.cxx \
src/decoder/plugins/FfmpegMetaData.hxx \
src/decoder/plugins/FfmpegDecoderPlugin.cxx \
src/decoder/plugins/FfmpegDecoderPlugin.hxx
endif
if ENABLE_SNDFILE
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/SndfileDecoderPlugin.cxx \
src/decoder/plugins/SndfileDecoderPlugin.hxx
endif
if HAVE_GME
libdecoder_a_SOURCES += \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/GmeDecoderPlugin.cxx src/decoder/plugins/GmeDecoderPlugin.hxx
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) \
$(SHINE_CFLAGS) \
$(VORBISENC_CFLAGS)
ENCODER_LIBS = \
libencoder_plugins.a \
$(LAME_LIBS) \
$(TWOLAME_LIBS) \
$(FLAC_LIBS) \
$(OPUS_LIBS) \
$(SHINE_LIBS) \
$(VORBISENC_LIBS)
libencoder_plugins_a_SOURCES = \
2014-01-27 08:53:42 +01:00
src/encoder/EncoderAPI.hxx \
src/encoder/EncoderPlugin.hxx \
src/encoder/plugins/OggStream.hxx \
src/encoder/plugins/NullEncoderPlugin.cxx \
src/encoder/plugins/NullEncoderPlugin.hxx \
src/encoder/EncoderList.cxx src/encoder/EncoderList.hxx
if HAVE_OGG_ENCODER
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/OggSerial.cxx \
src/encoder/plugins/OggSerial.hxx \
src/encoder/plugins/OggStream.hxx
endif
if ENABLE_WAVE_ENCODER
2013-07-30 08:48:53 +02:00
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/WaveEncoderPlugin.cxx \
src/encoder/plugins/WaveEncoderPlugin.hxx
endif
if ENABLE_VORBIS_ENCODER
2012-10-01 20:02:59 +02:00
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/VorbisEncoderPlugin.cxx \
src/encoder/plugins/VorbisEncoderPlugin.hxx
endif
if HAVE_OPUS
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/OpusEncoderPlugin.cxx \
src/encoder/plugins/OpusEncoderPlugin.hxx
endif
if ENABLE_LAME_ENCODER
2013-07-30 08:52:47 +02:00
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/LameEncoderPlugin.cxx \
src/encoder/plugins/LameEncoderPlugin.hxx
endif
if ENABLE_TWOLAME_ENCODER
2013-07-30 08:52:47 +02:00
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/TwolameEncoderPlugin.cxx \
src/encoder/plugins/TwolameEncoderPlugin.hxx
endif
if ENABLE_FLAC_ENCODER
2013-07-29 08:04:34 +02:00
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/FlacEncoderPlugin.cxx \
src/encoder/plugins/FlacEncoderPlugin.hxx
endif
if ENABLE_SHINE_ENCODER
libencoder_plugins_a_SOURCES += \
src/encoder/plugins/ShineEncoderPlugin.cxx \
src/encoder/plugins/ShineEncoderPlugin.hxx
endif
else
ENCODER_LIBS =
endif
if HAVE_ZEROCONF
libmpd_a_SOURCES += \
2014-01-24 00:14:54 +01:00
src/zeroconf/ZeroconfInternal.hxx \
src/zeroconf/ZeroconfGlue.cxx src/zeroconf/ZeroconfGlue.hxx
if HAVE_AVAHI
libmpd_a_SOURCES += \
2014-01-24 00:14:54 +01:00
src/zeroconf/AvahiPoll.cxx src/zeroconf/AvahiPoll.hxx \
src/zeroconf/ZeroconfAvahi.cxx src/zeroconf/ZeroconfAvahi.hxx
endif
if HAVE_BONJOUR
libmpd_a_SOURCES += src/zeroconf/ZeroconfBonjour.cxx src/zeroconf/ZeroconfBonjour.hxx
endif
endif
#
# input plugins
#
libinput_a_SOURCES = \
2014-01-24 16:18:21 +01:00
src/input/Init.cxx src/input/Init.hxx \
src/input/Registry.cxx src/input/Registry.hxx \
src/input/InputStream.cxx src/input/InputStream.hxx \
src/input/InputPlugin.hxx \
src/input/TextInputStream.cxx src/input/TextInputStream.hxx \
src/input/plugins/RewindInputPlugin.cxx src/input/plugins/RewindInputPlugin.hxx \
src/input/plugins/FileInputPlugin.cxx src/input/plugins/FileInputPlugin.hxx
libinput_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(CURL_CFLAGS) \
2013-12-29 00:36:57 +01:00
$(SMBCLIENT_CFLAGS) \
2014-02-06 07:29:26 +01:00
$(NFS_CFLAGS) \
$(CDIO_PARANOIA_CFLAGS) \
$(FFMPEG_CFLAGS) \
$(DESPOTIFY_CFLAGS) \
$(MMS_CFLAGS)
INPUT_LIBS = \
libinput.a \
$(CURL_LIBS) \
2013-12-29 00:36:57 +01:00
$(SMBCLIENT_LIBS) \
2014-02-06 07:29:26 +01:00
$(NFS_LIBS) \
$(CDIO_PARANOIA_LIBS) \
$(FFMPEG_LIBS) \
$(DESPOTIFY_LIBS) \
$(MMS_LIBS)
if HAVE_ALSA
libinput_a_SOURCES += \
2014-01-24 16:18:21 +01:00
src/input/plugins/AlsaInputPlugin.cxx \
src/input/plugins/AlsaInputPlugin.hxx
INPUT_LIBS += $(ALSA_LIBS)
endif
if ENABLE_CURL
2013-01-10 10:14:29 +01:00
libinput_a_SOURCES += \
2014-01-24 16:18:21 +01:00
src/input/plugins/CurlInputPlugin.cxx src/input/plugins/CurlInputPlugin.hxx \
2013-01-10 22:33:16 +01:00
src/IcyMetaDataParser.cxx src/IcyMetaDataParser.hxx
endif
2013-12-29 00:36:57 +01:00
if ENABLE_SMBCLIENT
libinput_a_SOURCES += \
$(SMBCLIENT_SOURCES) \
2014-01-24 16:18:21 +01:00
src/input/plugins/SmbclientInputPlugin.cxx src/input/plugins/SmbclientInputPlugin.hxx
2013-12-29 00:36:57 +01:00
endif
2014-02-06 07:29:26 +01:00
if ENABLE_NFS
libinput_a_SOURCES += \
src/lib/nfs/Domain.cxx src/lib/nfs/Domain.hxx \
2014-02-06 07:29:26 +01:00
src/input/plugins/NfsInputPlugin.cxx src/input/plugins/NfsInputPlugin.hxx
endif
if ENABLE_CDIO_PARANOIA
2013-01-21 17:58:30 +01:00
libinput_a_SOURCES += \
2014-01-24 16:18:21 +01:00
src/input/plugins/CdioParanoiaInputPlugin.cxx \
src/input/plugins/CdioParanoiaInputPlugin.hxx
endif
if HAVE_FFMPEG
2013-01-21 17:38:40 +01:00
libinput_a_SOURCES += \
2014-01-24 16:18:21 +01:00
src/input/plugins/FfmpegInputPlugin.cxx src/input/plugins/FfmpegInputPlugin.hxx
endif
if ENABLE_MMS
2013-01-21 10:49:42 +01:00
libinput_a_SOURCES += \
2014-01-24 16:18:21 +01:00
src/input/plugins/MmsInputPlugin.cxx src/input/plugins/MmsInputPlugin.hxx
endif
2011-03-27 08:41:40 +02:00
if ENABLE_DESPOTIFY
libinput_a_SOURCES += \
src/lib/despotify/DespotifyUtils.cxx \
src/lib/despotify/DespotifyUtils.hxx \
2014-01-24 16:18:21 +01:00
src/input/plugins/DespotifyInputPlugin.cxx \
src/input/plugins/DespotifyInputPlugin.hxx
2011-03-27 08:41:40 +02:00
endif
liboutput_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(AO_CFLAGS) \
$(ALSA_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) \
$(JACK_LIBS) \
$(OPENAL_LIBS) \
$(PULSE_LIBS) \
$(SHOUT_LIBS)
OUTPUT_API_SRC = \
2014-01-23 23:49:50 +01:00
src/output/OutputAPI.hxx \
2014-01-28 11:42:54 +01:00
src/output/Internal.hxx \
src/output/Registry.cxx src/output/Registry.hxx \
src/output/MultipleOutputs.cxx src/output/MultipleOutputs.hxx \
src/output/OutputThread.cxx \
2014-01-28 11:42:54 +01:00
src/output/Domain.cxx src/output/Domain.hxx \
src/output/OutputControl.cxx \
2014-01-23 23:49:50 +01:00
src/output/OutputState.cxx src/output/OutputState.hxx \
src/output/OutputPrint.cxx src/output/OutputPrint.hxx \
src/output/OutputCommand.cxx src/output/OutputCommand.hxx \
src/output/OutputPlugin.cxx src/output/OutputPlugin.hxx \
2014-01-28 11:42:54 +01:00
src/output/Finish.cxx \
src/output/Init.cxx
liboutput_plugins_a_SOURCES = \
2014-02-19 09:00:29 +01:00
src/output/Timer.cxx src/output/Timer.hxx \
2014-01-23 23:49:50 +01:00
src/output/plugins/NullOutputPlugin.cxx \
src/output/plugins/NullOutputPlugin.hxx
MIXER_LIBS = \
libmixer_plugins.a \
$(PULSE_LIBS)
MIXER_API_SRC = \
src/mixer/Listener.hxx \
2014-01-24 16:25:21 +01:00
src/mixer/MixerPlugin.hxx \
src/mixer/MixerList.hxx \
src/mixer/MixerControl.cxx src/mixer/MixerControl.hxx \
src/mixer/MixerType.cxx src/mixer/MixerType.hxx \
src/mixer/MixerAll.cxx \
2014-01-24 16:25:21 +01:00
src/mixer/MixerInternal.hxx
libmixer_plugins_a_SOURCES = \
2014-01-24 16:25:21 +01:00
src/mixer/plugins/SoftwareMixerPlugin.cxx \
src/mixer/plugins/SoftwareMixerPlugin.hxx
libmixer_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(ALSA_CFLAGS) \
$(PULSE_CFLAGS)
if HAVE_ALSA
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/AlsaOutputPlugin.cxx \
src/output/plugins/AlsaOutputPlugin.hxx
2014-01-24 16:25:21 +01:00
libmixer_plugins_a_SOURCES += src/mixer/plugins/AlsaMixerPlugin.cxx
endif
if ANDROID
liboutput_plugins_a_SOURCES += \
src/output/plugins/sles/Object.hxx \
src/output/plugins/sles/Engine.hxx \
src/output/plugins/sles/Play.hxx \
src/output/plugins/sles/AndroidSimpleBufferQueue.hxx \
src/output/plugins/sles/SlesOutputPlugin.cxx \
src/output/plugins/sles/SlesOutputPlugin.hxx
OUTPUT_LIBS += -lOpenSLES
endif
2011-02-08 00:17:58 +01:00
if HAVE_ROAR
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/RoarOutputPlugin.cxx \
src/output/plugins/RoarOutputPlugin.hxx
2014-01-24 16:25:21 +01:00
libmixer_plugins_a_SOURCES += src/mixer/plugins/RoarMixerPlugin.cxx
2011-02-08 00:17:58 +01:00
endif
if HAVE_AO
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/AoOutputPlugin.cxx \
src/output/plugins/AoOutputPlugin.hxx
endif
if HAVE_FIFO
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/FifoOutputPlugin.cxx \
src/output/plugins/FifoOutputPlugin.hxx
endif
if ENABLE_PIPE_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/PipeOutputPlugin.cxx \
src/output/plugins/PipeOutputPlugin.hxx
endif
if HAVE_JACK
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/JackOutputPlugin.cxx \
src/output/plugins/JackOutputPlugin.hxx
endif
if HAVE_OSS
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/OssOutputPlugin.cxx \
src/output/plugins/OssOutputPlugin.hxx
2014-01-24 16:25:21 +01:00
libmixer_plugins_a_SOURCES += src/mixer/plugins/OssMixerPlugin.cxx
endif
2009-08-31 09:26:22 +02:00
if HAVE_OPENAL
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/OpenALOutputPlugin.cxx \
src/output/plugins/OpenALOutputPlugin.hxx
2009-08-31 09:26:22 +02:00
endif
if HAVE_OSX
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/OSXOutputPlugin.cxx \
src/output/plugins/OSXOutputPlugin.hxx
endif
if HAVE_PULSE
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/PulseOutputPlugin.cxx \
src/output/plugins/PulseOutputPlugin.hxx
2013-01-09 22:25:24 +01:00
libmixer_plugins_a_SOURCES += \
2014-01-24 16:25:21 +01:00
src/mixer/plugins/PulseMixerPlugin.cxx src/mixer/plugins/PulseMixerPlugin.hxx
endif
if HAVE_SHOUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/ShoutOutputPlugin.cxx \
src/output/plugins/ShoutOutputPlugin.hxx
endif
if ENABLE_RECORDER_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/RecorderOutputPlugin.cxx \
src/output/plugins/RecorderOutputPlugin.hxx
endif
if ENABLE_HTTPD_OUTPUT
liboutput_plugins_a_SOURCES += \
src/output/plugins/httpd/IcyMetaDataServer.cxx \
src/output/plugins/httpd/IcyMetaDataServer.hxx \
src/output/plugins/httpd/Page.cxx src/output/plugins/httpd/Page.hxx \
src/output/plugins/httpd/HttpdInternal.hxx \
src/output/plugins/httpd/HttpdClient.cxx \
src/output/plugins/httpd/HttpdClient.hxx \
src/output/plugins/httpd/HttpdOutputPlugin.cxx \
src/output/plugins/httpd/HttpdOutputPlugin.hxx
endif
if ENABLE_SOLARIS_OUTPUT
2012-06-27 10:11:21 +02:00
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/SolarisOutputPlugin.cxx src/output/plugins/SolarisOutputPlugin.hxx
endif
if ENABLE_WINMM_OUTPUT
liboutput_plugins_a_SOURCES += \
2014-01-23 23:49:50 +01:00
src/output/plugins/WinmmOutputPlugin.cxx \
src/output/plugins/WinmmOutputPlugin.hxx
2014-01-24 16:25:21 +01:00
libmixer_plugins_a_SOURCES += src/mixer/plugins/WinmmMixerPlugin.cxx
endif
#
# Playlist plugins
#
libplaylist_plugins_a_SOURCES = \
2014-01-23 23:30:12 +01:00
src/playlist/PlaylistPlugin.hxx \
src/playlist/SongEnumerator.hxx \
src/playlist/CloseSongEnumerator.cxx \
src/playlist/CloseSongEnumerator.hxx \
2014-01-23 23:30:12 +01:00
src/playlist/MemorySongEnumerator.cxx \
src/playlist/MemorySongEnumerator.hxx \
2014-02-19 08:56:58 +01:00
src/playlist/cue/CueParser.cxx src/playlist/cue/CueParser.hxx \
2014-01-23 23:30:12 +01:00
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/PlaylistRegistry.cxx src/playlist/PlaylistRegistry.hxx
libplaylist_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(EXPAT_CFLAGS) \
$(YAJL_CFLAGS) \
$(patsubst -I%/FLAC,-I%,$(FLAC_CFLAGS))
PLAYLIST_LIBS = \
libplaylist_plugins.a \
$(EXPAT_LIBS) \
$(FLAC_LIBS)
2011-03-27 08:41:40 +02:00
if ENABLE_DESPOTIFY
libplaylist_plugins_a_SOURCES += \
src/lib/despotify/DespotifyUtils.cxx \
src/lib/despotify/DespotifyUtils.hxx \
src/playlist/plugins/DespotifyPlaylistPlugin.cxx \
src/playlist/plugins/DespotifyPlaylistPlugin.hxx
2011-03-27 08:41:40 +02:00
endif
if ENABLE_SOUNDCLOUD
libplaylist_plugins_a_SOURCES += \
2014-01-23 23:30:12 +01:00
src/playlist/plugins/SoundCloudPlaylistPlugin.cxx \
src/playlist/plugins/SoundCloudPlaylistPlugin.hxx
PLAYLIST_LIBS += $(YAJL_LIBS)
endif
if HAVE_EXPAT
libplaylist_plugins_a_SOURCES += \
2014-01-24 16:26:42 +01:00
src/lib/expat/ExpatParser.cxx src/lib/expat/ExpatParser.hxx \
2014-01-23 23:30:12 +01:00
src/playlist/plugins/XspfPlaylistPlugin.cxx \
src/playlist/plugins/XspfPlaylistPlugin.hxx \
src/playlist/plugins/AsxPlaylistPlugin.cxx \
src/playlist/plugins/AsxPlaylistPlugin.hxx \
src/playlist/plugins/RssPlaylistPlugin.cxx \
src/playlist/plugins/RssPlaylistPlugin.hxx
endif
if HAVE_GLIB
libplaylist_plugins_a_SOURCES += \
2014-01-23 23:30:12 +01:00
src/playlist/plugins/PlsPlaylistPlugin.cxx \
src/playlist/plugins/PlsPlaylistPlugin.hxx
endif
#
# Filter plugins
#
libfilter_plugins_a_SOURCES = \
src/AudioCompress/config.h \
src/AudioCompress/compress.h \
src/AudioCompress/compress.c \
2014-01-24 16:31:52 +01:00
src/filter/plugins/NullFilterPlugin.cxx \
src/filter/plugins/ChainFilterPlugin.cxx \
src/filter/plugins/ChainFilterPlugin.hxx \
src/filter/plugins/AutoConvertFilterPlugin.cxx \
src/filter/plugins/AutoConvertFilterPlugin.hxx \
src/filter/plugins/ConvertFilterPlugin.cxx \
src/filter/plugins/ConvertFilterPlugin.hxx \
src/filter/plugins/RouteFilterPlugin.cxx \
src/filter/plugins/NormalizeFilterPlugin.cxx \
src/filter/plugins/ReplayGainFilterPlugin.cxx \
src/filter/plugins/ReplayGainFilterPlugin.hxx \
src/filter/plugins/VolumeFilterPlugin.cxx \
src/filter/plugins/VolumeFilterPlugin.hxx
FILTER_LIBS = \
libfilter_plugins.a \
$(PCM_LIBS)
#
# systemd unit
#
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
2014-02-12 21:22:36 +01:00
systemd/mpd.socket \
systemd/mpd.service
endif
#
# Test programs
#
if ENABLE_TEST
C_TESTS = \
test/test_util \
test/test_byte_reverse \
test/test_mixramp \
test/test_pcm \
test/test_queue_priority
if ENABLE_CURL
C_TESTS += test/test_icy_parser
endif
if ENABLE_DATABASE
C_TESTS += test/test_translate_song
endif
if ENABLE_ARCHIVE
C_TESTS += test/test_archive
endif
TESTS = $(C_TESTS)
noinst_PROGRAMS = \
$(C_TESTS) \
2009-04-10 09:14:12 +02:00
test/read_conf \
test/run_resolver \
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 ENABLE_DATABASE
noinst_PROGRAMS += test/DumpDatabase
endif
if ENABLE_NEIGHBOR_PLUGINS
noinst_PROGRAMS += test/run_neighbor_explorer
endif
2013-10-18 08:37:28 +02:00
if HAVE_AVAHI
noinst_PROGRAMS += test/run_avahi
endif
2013-01-29 22:40:11 +01:00
if ENABLE_ARCHIVE
noinst_PROGRAMS += test/visit_archive
endif
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 = \
libconf.a \
libsystem.a \
libfs.a \
libutil.a \
2009-04-10 09:14:12 +02:00
$(GLIB_LIBS)
test_read_conf_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
test/read_conf.cxx
2009-04-10 09:14:12 +02:00
test_run_resolver_LDADD = \
libsystem.a \
libutil.a \
$(GLIB_LIBS)
test_run_resolver_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
test/run_resolver.cxx
if ENABLE_DATABASE
2012-08-07 20:08:50 +02:00
test_DumpDatabase_LDADD = \
$(DB_LIBS) \
2013-09-05 18:22:02 +02:00
$(TAG_LIBS) \
libconf.a \
2012-08-07 20:08:50 +02:00
libutil.a \
libevent.a \
libsystem.a \
2013-01-21 20:31:29 +01:00
libfs.a \
$(ICU_LDADD) \
2012-08-07 20:08:50 +02:00
$(GLIB_LIBS)
test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/protocol/Ack.cxx \
src/Log.cxx src/LogBackend.cxx \
2014-01-24 16:18:50 +01:00
src/db/DatabaseError.cxx \
src/db/Registry.cxx \
src/db/Selection.cxx \
src/db/PlaylistVector.cxx \
src/db/DatabaseLock.cxx \
2014-02-26 09:17:41 +01:00
src/SongSave.cxx \
src/DetachedSong.cxx \
2013-09-05 18:22:02 +02:00
src/TagSave.cxx \
2013-12-06 22:22:58 +01:00
src/SongFilter.cxx
2012-08-07 20:08:50 +02:00
if HAVE_LIBUPNP
2014-01-24 16:26:42 +01:00
test_DumpDatabase_SOURCES += src/lib/expat/ExpatParser.cxx
endif
endif
2013-01-05 02:39:32 +01:00
test_run_input_LDADD = \
2009-04-13 19:18:10 +02:00
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
2013-09-05 18:22:02 +02:00
$(TAG_LIBS) \
libconf.a \
2013-04-08 23:30:21 +02:00
libutil.a \
libevent.a \
libthread.a \
libsystem.a \
libfs.a \
2009-04-13 19:18:10 +02:00
$(GLIB_LIBS)
test_run_input_SOURCES = test/run_input.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
2013-01-10 10:33:20 +01:00
src/IOThread.cxx \
2013-09-05 18:22:02 +02:00
src/TagSave.cxx
2009-04-13 19:18:10 +02:00
if ENABLE_NEIGHBOR_PLUGINS
test_run_neighbor_explorer_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
src/IOThread.cxx \
test/run_neighbor_explorer.cxx
test_run_neighbor_explorer_LDADD = $(AM_LDADD) \
$(GLIB_LIBS) \
$(NEIGHBOR_LIBS) \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
libtag.a \
libconf.a \
libevent.a \
libfs.a \
libsystem.a \
libthread.a \
libutil.a
if HAVE_LIBUPNP
test_run_neighbor_explorer_SOURCES += src/lib/expat/ExpatParser.cxx
endif
if ENABLE_DESPOTIFY
test_run_neighbor_explorer_SOURCES += \
src/lib/despotify/DespotifyUtils.cxx \
src/lib/despotify/DespotifyUtils.hxx
endif
endif
2013-01-29 22:40:11 +01:00
if ENABLE_ARCHIVE
test_visit_archive_LDADD = \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
2013-09-05 18:22:02 +02:00
$(TAG_LIBS) \
libconf.a \
2013-04-08 23:30:21 +02:00
libutil.a \
2013-01-29 22:40:11 +01:00
libevent.a \
libthread.a \
libsystem.a \
2013-01-29 22:40:11 +01:00
libfs.a \
$(GLIB_LIBS)
test_visit_archive_SOURCES = test/visit_archive.cxx \
src/Log.cxx src/LogBackend.cxx \
2013-01-29 22:40:11 +01:00
src/IOThread.cxx \
2014-01-24 16:18:21 +01:00
src/input/InputStream.cxx
2013-01-29 22:40:11 +01:00
endif
test_dump_text_file_LDADD = \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
2013-09-05 18:22:02 +02:00
$(TAG_LIBS) \
libconf.a \
libevent.a \
libfs.a \
libsystem.a \
libthread.a \
libutil.a \
$(GLIB_LIBS)
test_dump_text_file_SOURCES = test/dump_text_file.cxx \
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
2014-01-24 16:18:21 +01:00
src/IOThread.cxx
2013-01-05 02:39:32 +01:00
test_dump_playlist_LDADD = \
$(PLAYLIST_LIBS) \
$(FLAC_LIBS) \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(DECODER_LIBS) \
$(TAG_LIBS) \
libconf.a \
libevent.a \
libthread.a \
libsystem.a \
libfs.a \
libutil.a \
2013-04-09 01:24:52 +02:00
libpcm.a \
$(GLIB_LIBS)
2013-01-05 02:39:32 +01:00
test_dump_playlist_SOURCES = test/dump_playlist.cxx \
test/FakeDecoderAPI.cxx \
$(DECODER_SRC) \
src/Log.cxx src/LogBackend.cxx \
2013-01-10 10:33:20 +01:00
src/IOThread.cxx \
src/TagSave.cxx \
2013-09-05 18:22:02 +02:00
src/TagFile.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
2014-02-19 08:56:58 +01:00
src/DetachedSong.cxx
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 \
2014-01-24 00:02:24 +01:00
src/decoder/plugins/FlacMetadata.cxx
endif
test_run_decoder_LDADD = \
$(DECODER_LIBS) \
libpcm.a \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(TAG_LIBS) \
libconf.a \
libevent.a \
libthread.a \
libsystem.a \
libfs.a \
libutil.a \
$(GLIB_LIBS)
test_run_decoder_SOURCES = test/run_decoder.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
2013-01-10 10:33:20 +01:00
src/IOThread.cxx \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx src/CheckAudioFormat.cxx \
$(ARCHIVE_SRC) \
$(INPUT_SRC) \
$(TAG_SRC) \
$(DECODER_SRC)
test_read_tags_LDADD = \
$(DECODER_LIBS) \
libpcm.a \
$(INPUT_LIBS) \
$(ARCHIVE_LIBS) \
$(TAG_LIBS) \
libconf.a \
libevent.a \
libthread.a \
libsystem.a \
libfs.a \
libutil.a \
$(GLIB_LIBS)
test_read_tags_SOURCES = test/read_tags.cxx \
test/FakeDecoderAPI.cxx \
src/Log.cxx src/LogBackend.cxx \
2013-01-10 10:33:20 +01:00
src/IOThread.cxx \
2013-01-04 23:45:55 +01:00
src/ReplayGainInfo.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
$(DECODER_SRC)
if HAVE_ID3TAG
test_dump_rva2_LDADD = \
$(TAG_LIBS) \
libutil.a \
$(GLIB_LIBS)
test_dump_rva2_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
test/dump_rva2.cxx
endif
test_run_filter_LDADD = \
$(FILTER_LIBS) \
libconf.a \
libsystem.a \
libfs.a \
libutil.a \
$(GLIB_LIBS)
test_run_filter_SOURCES = test/run_filter.cxx \
test/FakeReplayGainConfig.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
2014-01-24 16:31:52 +01:00
src/filter/FilterPlugin.cxx src/filter/FilterRegistry.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx \
src/ReplayGainInfo.cxx
if ENABLE_ENCODER
noinst_PROGRAMS += test/run_encoder
2013-01-30 21:27:37 +01:00
test_run_encoder_SOURCES = test/run_encoder.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx
test_run_encoder_LDADD = \
$(ENCODER_LIBS) \
$(TAG_LIBS) \
libconf.a \
libpcm.a \
libthread.a \
libsystem.a \
libfs.a \
2013-01-15 01:00:59 +01:00
libutil.a \
$(GLIB_LIBS)
endif
if ENABLE_VORBIS_ENCODER
noinst_PROGRAMS += test/test_vorbis_encoder
test_test_vorbis_encoder_SOURCES = test/test_vorbis_encoder.cxx \
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx \
$(ENCODER_SRC)
test_test_vorbis_encoder_CPPFLAGS = $(AM_CPPFLAGS) \
$(ENCODER_CFLAGS)
test_test_vorbis_encoder_LDADD = $(MPD_LIBS) \
$(ENCODER_LIBS) \
2013-04-09 01:24:52 +02:00
$(PCM_LIBS) \
2013-09-05 18:22:02 +02:00
$(TAG_LIBS) \
libconf.a \
libsystem.a \
libfs.a \
2013-01-15 01:00:59 +01:00
libutil.a \
$(GLIB_LIBS)
endif
2013-01-30 21:27:37 +01:00
test_software_volume_SOURCES = test/software_volume.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
src/Log.cxx src/LogBackend.cxx \
src/AudioFormat.cxx src/CheckAudioFormat.cxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx
test_software_volume_LDADD = \
$(PCM_LIBS) \
libutil.a \
$(GLIB_LIBS)
2013-10-18 08:37:28 +02:00
test_run_avahi_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
2014-01-24 00:14:54 +01:00
src/zeroconf/ZeroconfAvahi.cxx src/zeroconf/AvahiPoll.cxx \
2013-10-18 08:37:28 +02:00
test/ShutdownHandler.cxx test/ShutdownHandler.hxx \
test/run_avahi.cxx
test_run_avahi_CPPFLAGS = $(AM_CPPFLAGS) \
$(AVAHI_CFLAGS)
test_run_avahi_LDADD = \
libevent.a \
libsystem.a \
$(GLIB_LIBS) \
2013-10-18 08:37:28 +02:00
$(AVAHI_LIBS)
2013-01-30 21:47:12 +01:00
test_run_normalize_SOURCES = test/run_normalize.cxx \
2011-02-18 08:19:37 +01:00
test/stdbin.h \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
src/AudioCompress/compress.c \
src/AudioParser.cxx
2009-12-02 21:56:02 +01:00
test_run_normalize_LDADD = \
libutil.a \
2009-12-02 21:56:02 +01:00
$(GLIB_LIBS)
2013-01-30 21:27:37 +01:00
test_run_convert_SOURCES = test/run_convert.cxx \
src/Log.cxx src/LogBackend.cxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx
test_run_convert_LDADD = \
$(PCM_LIBS) \
libutil.a \
$(GLIB_LIBS)
test_run_output_LDADD = $(MPD_LIBS) \
2013-04-09 01:24:32 +02:00
$(PCM_LIBS) \
$(OUTPUT_LIBS) \
$(ENCODER_LIBS) \
libmixer_plugins.a \
$(FILTER_LIBS) \
2013-09-05 18:22:02 +02:00
$(TAG_LIBS) \
libconf.a \
2013-01-15 07:53:44 +01:00
libevent.a \
libfs.a \
libsystem.a \
libthread.a \
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 \
src/Log.cxx src/LogBackend.cxx \
2013-01-10 10:33:20 +01:00
src/IOThread.cxx \
2013-07-29 07:50:08 +02:00
src/CheckAudioFormat.cxx \
2013-08-03 21:00:50 +02:00
src/AudioFormat.cxx \
2013-01-30 21:47:12 +01:00
src/AudioParser.cxx \
2014-01-28 11:42:54 +01:00
src/output/Domain.cxx \
src/output/Init.cxx src/output/Finish.cxx src/output/Registry.cxx \
2014-01-23 23:49:50 +01:00
src/output/OutputPlugin.cxx \
2014-01-24 16:25:21 +01:00
src/mixer/MixerControl.cxx \
src/mixer/MixerType.cxx \
2014-01-24 16:31:52 +01:00
src/filter/FilterPlugin.cxx \
src/filter/FilterConfig.cxx \
src/ReplayGainInfo.cxx
test_read_mixer_LDADD = \
libpcm.a \
libmixer_plugins.a \
$(OUTPUT_LIBS) \
libconf.a \
2013-01-15 07:53:44 +01:00
libevent.a \
libsystem.a \
libfs.a \
libutil.a \
$(GLIB_LIBS)
2013-01-30 19:05:04 +01:00
test_read_mixer_SOURCES = test/read_mixer.cxx \
src/Log.cxx src/LogBackend.cxx \
2014-01-24 16:25:21 +01:00
src/mixer/MixerControl.cxx \
2014-01-24 16:31:52 +01:00
src/filter/FilterPlugin.cxx \
src/AudioFormat.cxx \
2014-01-24 16:31:52 +01:00
src/filter/plugins/VolumeFilterPlugin.cxx
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 \
2013-10-18 08:56:25 +02:00
test/ShutdownHandler.cxx test/ShutdownHandler.hxx \
src/Log.cxx src/LogBackend.cxx \
2014-01-24 16:18:50 +01:00
src/db/update/InotifyDomain.cxx \
src/db/update/InotifySource.cxx
2013-01-15 01:00:59 +01:00
test_run_inotify_LDADD = \
libevent.a \
libsystem.a \
2013-01-15 01:00:59 +01:00
libutil.a \
$(GLIB_LIBS)
endif
test_test_util_SOURCES = \
test/test_util.cxx
test_test_util_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_util_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_util_LDADD = \
libutil.a \
$(CPPUNIT_LIBS)
test_test_byte_reverse_SOURCES = \
2013-10-16 21:04:52 +02:00
test/test_byte_reverse.cxx
test_test_byte_reverse_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_byte_reverse_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_byte_reverse_LDADD = \
libutil.a \
$(CPPUNIT_LIBS)
test_test_mixramp_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
test/test_mixramp.cxx
test_test_mixramp_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_mixramp_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_mixramp_LDADD = \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS)
if ENABLE_CURL
test_test_icy_parser_SOURCES = \
2014-01-27 10:33:42 +01:00
src/Log.cxx src/LogBackend.cxx \
test/test_icy_parser.cxx
test_test_icy_parser_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_icy_parser_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_icy_parser_LDADD = \
libtag.a \
2014-01-27 10:33:42 +01:00
libutil.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS)
endif
test_test_pcm_SOURCES = \
src/AudioFormat.cxx \
test/test_pcm_util.hxx \
2013-01-31 20:45:19 +01:00
test/test_pcm_dither.cxx \
test/test_pcm_pack.cxx \
test/test_pcm_channels.cxx \
test/test_pcm_format.cxx \
2013-01-31 20:45:19 +01:00
test/test_pcm_volume.cxx \
test/test_pcm_mix.cxx \
2013-01-31 20:45:19 +01:00
test/test_pcm_all.hxx \
test/test_pcm_main.cxx
test_test_pcm_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_pcm_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_pcm_LDADD = \
$(PCM_LIBS) \
2012-03-21 18:45:51 +01:00
libutil.a \
$(CPPUNIT_LIBS) \
$(GLIB_LIBS)
test_test_archive_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
test/test_archive.cxx
test_test_archive_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_archive_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_archive_LDADD = \
libarchive.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS)
if ENABLE_DATABASE
test_test_translate_song_SOURCES = \
2014-01-23 23:30:12 +01:00
src/playlist/PlaylistSong.cxx \
src/PlaylistError.cxx \
src/DetachedSong.cxx \
src/SongLoader.cxx \
src/Log.cxx \
test/test_translate_song.cxx
test_test_translate_song_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_translate_song_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_translate_song_LDADD = \
$(STORAGE_LIBS) \
libtag.a \
libfs.a \
libsystem.a \
libutil.a \
$(GLIB_LIBS) \
$(CPPUNIT_LIBS)
endif
test_test_queue_priority_SOURCES = \
2014-01-24 00:17:50 +01:00
src/queue/Queue.cxx \
src/DetachedSong.cxx \
test/test_queue_priority.cxx
test_test_queue_priority_CPPFLAGS = $(AM_CPPFLAGS) $(CPPUNIT_CFLAGS) -DCPPUNIT_HAVE_RTTI=0
test_test_queue_priority_CXXFLAGS = $(AM_CXXFLAGS) -Wno-error=deprecated-declarations
test_test_queue_priority_LDADD = \
libsystem.a \
libutil.a \
$(CPPUNIT_LIBS)
2013-04-09 01:24:52 +02:00
noinst_PROGRAMS += src/pcm/dsd2pcm/dsd2pcm
2013-04-09 01:24:52 +02:00
src_pcm_dsd2pcm_dsd2pcm_SOURCES = \
src/pcm/dsd2pcm/dsd2pcm.c src/pcm/dsd2pcm/dsd2pcm.h \
2013-11-04 08:08:54 +01:00
src/pcm/dsd2pcm/dsd2pcm.hpp \
2013-04-09 01:24:52 +02:00
src/pcm/dsd2pcm/noiseshape.c src/pcm/dsd2pcm/noiseshape.h \
2013-11-04 08:08:54 +01:00
src/pcm/dsd2pcm/noiseshape.hpp \
2013-04-09 01:24:52 +02:00
src/pcm/dsd2pcm/main.cpp
src_pcm_dsd2pcm_dsd2pcm_LDADD = libutil.a
endif
#
# Documentation
#
man_MANS = doc/mpd.1 doc/mpd.conf.5
doc_DATA = AUTHORS COPYING NEWS README 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
2014-01-26 12:30:36 +01:00
@$(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 \
2013-11-04 08:08:54 +01:00
test/test_archive_bzip2.sh \
test/test_archive_iso9660.sh \
test/test_archive_zzip.sh \
$(wildcard scripts/*.sh) \
$(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf \
2014-01-24 16:14:05 +01:00
src/win32/mpd_win32_rc.rc.in src/win32/mpd.ico