Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b3f5b493
Commit
b3f5b493
authored
Nov 21, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: add macro MPD_ENABLE_AUTO_PKG
Simplify the definition of many build options.
parent
b3f5f2f7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
115 additions
and
90 deletions
+115
-90
Makefile.am
Makefile.am
+36
-36
configure.ac
configure.ac
+0
-0
mpd_auto.m4
m4/mpd_auto.m4
+27
-0
ArchiveList.cxx
src/archive/ArchiveList.cxx
+1
-1
Registry.cxx
src/db/Registry.cxx
+2
-2
SimpleDatabasePlugin.cxx
src/db/plugins/simple/SimpleDatabasePlugin.cxx
+9
-9
SimpleDatabasePlugin.hxx
src/db/plugins/simple/SimpleDatabasePlugin.hxx
+1
-1
DecoderList.cxx
src/decoder/DecoderList.cxx
+8
-10
EncoderList.cxx
src/encoder/EncoderList.cxx
+4
-4
TextFile.cxx
src/fs/io/TextFile.cxx
+3
-3
TextFile.hxx
src/fs/io/TextFile.hxx
+1
-1
Registry.cxx
src/input/Registry.cxx
+4
-4
ls.cxx
src/ls.cxx
+2
-2
Registry.cxx
src/neighbor/Registry.cxx
+1
-1
Registry.cxx
src/output/Registry.cxx
+5
-5
ConfiguredResampler.cxx
src/pcm/ConfiguredResampler.cxx
+8
-8
PlaylistRegistry.cxx
src/playlist/PlaylistRegistry.cxx
+1
-1
fd_util.h
src/system/fd_util.h
+1
-1
DumpDatabase.cxx
test/DumpDatabase.cxx
+1
-1
No files found.
Makefile.am
View file @
b3f5b493
...
@@ -492,12 +492,12 @@ libpcm_a_SOURCES = \
...
@@ -492,12 +492,12 @@ libpcm_a_SOURCES = \
src/pcm/PcmUtils.hxx
src/pcm/PcmUtils.hxx
libpcm_a_CPPFLAGS
=
$(AM_CPPFLAGS)
\
libpcm_a_CPPFLAGS
=
$(AM_CPPFLAGS)
\
$(SOXR_CFLAGS)
\
$(SOXR_CFLAGS)
\
$(SAMPLERATE_CFLAGS)
$(
LIB
SAMPLERATE_CFLAGS)
PCM_LIBS
=
\
PCM_LIBS
=
\
libpcm.a
\
libpcm.a
\
$(SOXR_LIBS)
\
$(SOXR_LIBS)
\
$(SAMPLERATE_LIBS)
$(
LIB
SAMPLERATE_LIBS)
if
ENABLE_DSD
if
ENABLE_DSD
libpcm_a_SOURCES
+=
\
libpcm_a_SOURCES
+=
\
...
@@ -505,12 +505,12 @@ libpcm_a_SOURCES += \
...
@@ -505,12 +505,12 @@ libpcm_a_SOURCES += \
src/pcm/dsd2pcm/dsd2pcm.c src/pcm/dsd2pcm/dsd2pcm.h
src/pcm/dsd2pcm/dsd2pcm.c src/pcm/dsd2pcm/dsd2pcm.h
endif
endif
if
HAV
E_LIBSAMPLERATE
if
ENABL
E_LIBSAMPLERATE
libpcm_a_SOURCES
+=
\
libpcm_a_SOURCES
+=
\
src/pcm/LibsamplerateResampler.cxx src/pcm/LibsamplerateResampler.hxx
src/pcm/LibsamplerateResampler.cxx src/pcm/LibsamplerateResampler.hxx
endif
endif
if
HAV
E_SOXR
if
ENABL
E_SOXR
libpcm_a_SOURCES
+=
\
libpcm_a_SOURCES
+=
\
src/pcm/SoxrResampler.cxx src/pcm/SoxrResampler.hxx
src/pcm/SoxrResampler.cxx src/pcm/SoxrResampler.hxx
endif
endif
...
@@ -542,7 +542,7 @@ libfs_a_SOURCES = \
...
@@ -542,7 +542,7 @@ libfs_a_SOURCES = \
src/fs/DirectoryReader.hxx
src/fs/DirectoryReader.hxx
libfs_a_CPPFLAGS
=
$(AM_CPPFLAGS)
$(ZLIB_CFLAGS)
libfs_a_CPPFLAGS
=
$(AM_CPPFLAGS)
$(ZLIB_CFLAGS)
if
HAV
E_ZLIB
if
ENABL
E_ZLIB
libfs_a_SOURCES
+=
\
libfs_a_SOURCES
+=
\
src/lib/zlib/Domain.cxx src/lib/zlib/Domain.hxx
\
src/lib/zlib/Domain.cxx src/lib/zlib/Domain.hxx
\
src/fs/io/GunzipReader.cxx src/fs/io/GunzipReader.hxx
\
src/fs/io/GunzipReader.cxx src/fs/io/GunzipReader.hxx
\
...
@@ -638,7 +638,7 @@ NEIGHBOR_LIBS = \
...
@@ -638,7 +638,7 @@ NEIGHBOR_LIBS = \
$(SMBCLIENT_LIBS)
\
$(SMBCLIENT_LIBS)
\
libneighbor.a
libneighbor.a
if
HAVE_LIB
UPNP
if
ENABLE_
UPNP
libneighbor_a_SOURCES
+=
\
libneighbor_a_SOURCES
+=
\
$(UPNP_SOURCES)
\
$(UPNP_SOURCES)
\
src/neighbor/plugins/UpnpNeighborPlugin.cxx src/neighbor/plugins/UpnpNeighborPlugin.hxx
src/neighbor/plugins/UpnpNeighborPlugin.cxx src/neighbor/plugins/UpnpNeighborPlugin.hxx
...
@@ -677,7 +677,7 @@ libdb_plugins_a_SOURCES = \
...
@@ -677,7 +677,7 @@ libdb_plugins_a_SOURCES = \
src/db/plugins/simple/SimpleDatabasePlugin.cxx
\
src/db/plugins/simple/SimpleDatabasePlugin.cxx
\
src/db/plugins/simple/SimpleDatabasePlugin.hxx
src/db/plugins/simple/SimpleDatabasePlugin.hxx
if
HAV
E_LIBMPDCLIENT
if
ENABL
E_LIBMPDCLIENT
libdb_plugins_a_SOURCES
+=
\
libdb_plugins_a_SOURCES
+=
\
src/db/plugins/ProxyDatabasePlugin.cxx src/db/plugins/ProxyDatabasePlugin.hxx
src/db/plugins/ProxyDatabasePlugin.cxx src/db/plugins/ProxyDatabasePlugin.hxx
endif
endif
...
@@ -686,7 +686,7 @@ DB_LIBS = \
...
@@ -686,7 +686,7 @@ DB_LIBS = \
libdb_plugins.a
\
libdb_plugins.a
\
$(LIBMPDCLIENT_LIBS)
$(LIBMPDCLIENT_LIBS)
if
HAVE_LIB
UPNP
if
ENABLE_
UPNP
libdb_plugins_a_SOURCES
+=
\
libdb_plugins_a_SOURCES
+=
\
$(UPNP_SOURCES)
\
$(UPNP_SOURCES)
\
src/db/plugins/upnp/UpnpDatabasePlugin.cxx src/db/plugins/upnp/UpnpDatabasePlugin.hxx
\
src/db/plugins/upnp/UpnpDatabasePlugin.cxx src/db/plugins/upnp/UpnpDatabasePlugin.hxx
\
...
@@ -735,7 +735,7 @@ libarchive_a_SOURCES += \
...
@@ -735,7 +735,7 @@ libarchive_a_SOURCES += \
src/archive/plugins/Bzip2ArchivePlugin.hxx
src/archive/plugins/Bzip2ArchivePlugin.hxx
endif
endif
if
HAV
E_ZZIP
if
ENABL
E_ZZIP
libarchive_a_SOURCES
+=
\
libarchive_a_SOURCES
+=
\
src/archive/plugins/ZzipArchivePlugin.cxx
\
src/archive/plugins/ZzipArchivePlugin.cxx
\
src/archive/plugins/ZzipArchivePlugin.hxx
src/archive/plugins/ZzipArchivePlugin.hxx
...
@@ -802,7 +802,7 @@ endif
...
@@ -802,7 +802,7 @@ endif
# ffmpeg
# ffmpeg
if
HAV
E_FFMPEG
if
ENABL
E_FFMPEG
noinst_LIBRARIES
+=
libffmpeg.a
noinst_LIBRARIES
+=
libffmpeg.a
libffmpeg_a_SOURCES
=
\
libffmpeg_a_SOURCES
=
\
src/lib/ffmpeg/Error.cxx src/lib/ffmpeg/Error.hxx
\
src/lib/ffmpeg/Error.cxx src/lib/ffmpeg/Error.hxx
\
...
@@ -876,7 +876,7 @@ libdecoder_a_SOURCES += \
...
@@ -876,7 +876,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/MadDecoderPlugin.hxx
src/decoder/plugins/MadDecoderPlugin.hxx
endif
endif
if
HAV
E_MPG123
if
ENABL
E_MPG123
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/Mpg123DecoderPlugin.cxx
\
src/decoder/plugins/Mpg123DecoderPlugin.cxx
\
src/decoder/plugins/Mpg123DecoderPlugin.hxx
src/decoder/plugins/Mpg123DecoderPlugin.hxx
...
@@ -888,7 +888,7 @@ libdecoder_a_SOURCES += \
...
@@ -888,7 +888,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/MpcdecDecoderPlugin.hxx
src/decoder/plugins/MpcdecDecoderPlugin.hxx
endif
endif
if
HAV
E_OPUS
if
ENABL
E_OPUS
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/OggUtil.cxx
\
src/decoder/plugins/OggUtil.cxx
\
src/decoder/plugins/OggUtil.hxx
\
src/decoder/plugins/OggUtil.hxx
\
...
@@ -904,13 +904,13 @@ libdecoder_a_SOURCES += \
...
@@ -904,13 +904,13 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/OpusDecoderPlugin.h
src/decoder/plugins/OpusDecoderPlugin.h
endif
endif
if
HAV
E_WAVPACK
if
ENABL
E_WAVPACK
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/WavpackDecoderPlugin.cxx
\
src/decoder/plugins/WavpackDecoderPlugin.cxx
\
src/decoder/plugins/WavpackDecoderPlugin.hxx
src/decoder/plugins/WavpackDecoderPlugin.hxx
endif
endif
if
HAV
E_ADPLUG
if
ENABL
E_ADPLUG
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/AdPlugDecoderPlugin.cxx
\
src/decoder/plugins/AdPlugDecoderPlugin.cxx
\
src/decoder/plugins/AdPlugDecoderPlugin.h
src/decoder/plugins/AdPlugDecoderPlugin.h
...
@@ -934,7 +934,7 @@ libdecoder_a_SOURCES += \
...
@@ -934,7 +934,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/VorbisDecoderPlugin.cxx src/decoder/plugins/VorbisDecoderPlugin.h
src/decoder/plugins/VorbisDecoderPlugin.cxx src/decoder/plugins/VorbisDecoderPlugin.h
endif
endif
if
HAV
E_FLAC
if
ENABL
E_FLAC
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/FlacInput.cxx src/decoder/plugins/FlacInput.hxx
\
src/decoder/plugins/FlacInput.cxx src/decoder/plugins/FlacInput.hxx
\
src/decoder/plugins/FlacIOHandle.cxx src/decoder/plugins/FlacIOHandle.hxx
\
src/decoder/plugins/FlacIOHandle.cxx src/decoder/plugins/FlacIOHandle.hxx
\
...
@@ -946,7 +946,7 @@ libdecoder_a_SOURCES += \
...
@@ -946,7 +946,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/FlacDecoderPlugin.h
src/decoder/plugins/FlacDecoderPlugin.h
endif
endif
if
HAV
E_AUDIOFILE
if
ENABL
E_AUDIOFILE
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/AudiofileDecoderPlugin.cxx
\
src/decoder/plugins/AudiofileDecoderPlugin.cxx
\
src/decoder/plugins/AudiofileDecoderPlugin.hxx
src/decoder/plugins/AudiofileDecoderPlugin.hxx
...
@@ -958,7 +958,7 @@ libdecoder_a_SOURCES += \
...
@@ -958,7 +958,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/MikmodDecoderPlugin.hxx
src/decoder/plugins/MikmodDecoderPlugin.hxx
endif
endif
if
HAV
E_MODPLUG
if
ENABL
E_MODPLUG
libmodplug_decoder_plugin_a_SOURCES
=
\
libmodplug_decoder_plugin_a_SOURCES
=
\
src/decoder/plugins/ModplugDecoderPlugin.cxx
\
src/decoder/plugins/ModplugDecoderPlugin.cxx
\
src/decoder/plugins/ModplugDecoderPlugin.hxx
src/decoder/plugins/ModplugDecoderPlugin.hxx
...
@@ -992,7 +992,7 @@ libdecoder_a_SOURCES += \
...
@@ -992,7 +992,7 @@ libdecoder_a_SOURCES += \
src/decoder/plugins/WildmidiDecoderPlugin.hxx
src/decoder/plugins/WildmidiDecoderPlugin.hxx
endif
endif
if
HAV
E_FFMPEG
if
ENABL
E_FFMPEG
libdecoder_a_SOURCES
+=
\
libdecoder_a_SOURCES
+=
\
src/decoder/plugins/FfmpegMetaData.cxx
\
src/decoder/plugins/FfmpegMetaData.cxx
\
src/decoder/plugins/FfmpegMetaData.hxx
\
src/decoder/plugins/FfmpegMetaData.hxx
\
...
@@ -1055,13 +1055,13 @@ libencoder_plugins_a_SOURCES += \
...
@@ -1055,13 +1055,13 @@ libencoder_plugins_a_SOURCES += \
src/encoder/plugins/WaveEncoderPlugin.hxx
src/encoder/plugins/WaveEncoderPlugin.hxx
endif
endif
if
ENABLE_VORBIS
_ENCODER
if
ENABLE_VORBIS
ENC
libencoder_plugins_a_SOURCES
+=
\
libencoder_plugins_a_SOURCES
+=
\
src/encoder/plugins/VorbisEncoderPlugin.cxx
\
src/encoder/plugins/VorbisEncoderPlugin.cxx
\
src/encoder/plugins/VorbisEncoderPlugin.hxx
src/encoder/plugins/VorbisEncoderPlugin.hxx
endif
endif
if
HAV
E_OPUS
if
ENABL
E_OPUS
libencoder_plugins_a_SOURCES
+=
\
libencoder_plugins_a_SOURCES
+=
\
src/encoder/plugins/OpusEncoderPlugin.cxx
\
src/encoder/plugins/OpusEncoderPlugin.cxx
\
src/encoder/plugins/OpusEncoderPlugin.hxx
src/encoder/plugins/OpusEncoderPlugin.hxx
...
@@ -1073,7 +1073,7 @@ libencoder_plugins_a_SOURCES += \
...
@@ -1073,7 +1073,7 @@ libencoder_plugins_a_SOURCES += \
src/encoder/plugins/LameEncoderPlugin.hxx
src/encoder/plugins/LameEncoderPlugin.hxx
endif
endif
if
ENABLE_TWOLAME
_ENCODER
if
ENABLE_TWOLAME
libencoder_plugins_a_SOURCES
+=
\
libencoder_plugins_a_SOURCES
+=
\
src/encoder/plugins/TwolameEncoderPlugin.cxx
\
src/encoder/plugins/TwolameEncoderPlugin.cxx
\
src/encoder/plugins/TwolameEncoderPlugin.hxx
src/encoder/plugins/TwolameEncoderPlugin.hxx
...
@@ -1085,7 +1085,7 @@ libencoder_plugins_a_SOURCES += \
...
@@ -1085,7 +1085,7 @@ libencoder_plugins_a_SOURCES += \
src/encoder/plugins/FlacEncoderPlugin.hxx
src/encoder/plugins/FlacEncoderPlugin.hxx
endif
endif
if
ENABLE_SHINE
_ENCODER
if
ENABLE_SHINE
libencoder_plugins_a_SOURCES
+=
\
libencoder_plugins_a_SOURCES
+=
\
src/encoder/plugins/ShineEncoderPlugin.cxx
\
src/encoder/plugins/ShineEncoderPlugin.cxx
\
src/encoder/plugins/ShineEncoderPlugin.hxx
src/encoder/plugins/ShineEncoderPlugin.hxx
...
@@ -1151,7 +1151,7 @@ INPUT_LIBS = \
...
@@ -1151,7 +1151,7 @@ INPUT_LIBS = \
$(DESPOTIFY_LIBS)
\
$(DESPOTIFY_LIBS)
\
$(MMS_LIBS)
$(MMS_LIBS)
if
HAV
E_ALSA
if
ENABL
E_ALSA
libinput_a_SOURCES
+=
\
libinput_a_SOURCES
+=
\
src/input/plugins/AlsaInputPlugin.cxx
\
src/input/plugins/AlsaInputPlugin.cxx
\
src/input/plugins/AlsaInputPlugin.hxx
src/input/plugins/AlsaInputPlugin.hxx
...
@@ -1184,7 +1184,7 @@ libinput_a_SOURCES += \
...
@@ -1184,7 +1184,7 @@ libinput_a_SOURCES += \
src/input/plugins/CdioParanoiaInputPlugin.hxx
src/input/plugins/CdioParanoiaInputPlugin.hxx
endif
endif
if
HAV
E_FFMPEG
if
ENABL
E_FFMPEG
libinput_a_SOURCES
+=
\
libinput_a_SOURCES
+=
\
src/input/plugins/FfmpegInputPlugin.cxx src/input/plugins/FfmpegInputPlugin.hxx
src/input/plugins/FfmpegInputPlugin.cxx src/input/plugins/FfmpegInputPlugin.hxx
endif
endif
...
@@ -1263,7 +1263,7 @@ libmixer_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
...
@@ -1263,7 +1263,7 @@ libmixer_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(ALSA_CFLAGS)
\
$(ALSA_CFLAGS)
\
$(PULSE_CFLAGS)
$(PULSE_CFLAGS)
if
HAV
E_ALSA
if
ENABL
E_ALSA
liboutput_plugins_a_SOURCES
+=
\
liboutput_plugins_a_SOURCES
+=
\
src/output/plugins/AlsaOutputPlugin.cxx
\
src/output/plugins/AlsaOutputPlugin.cxx
\
src/output/plugins/AlsaOutputPlugin.hxx
src/output/plugins/AlsaOutputPlugin.hxx
...
@@ -1281,14 +1281,14 @@ liboutput_plugins_a_SOURCES += \
...
@@ -1281,14 +1281,14 @@ liboutput_plugins_a_SOURCES += \
OUTPUT_LIBS
+=
-lOpenSLES
OUTPUT_LIBS
+=
-lOpenSLES
endif
endif
if
HAV
E_ROAR
if
ENABL
E_ROAR
liboutput_plugins_a_SOURCES
+=
\
liboutput_plugins_a_SOURCES
+=
\
src/output/plugins/RoarOutputPlugin.cxx
\
src/output/plugins/RoarOutputPlugin.cxx
\
src/output/plugins/RoarOutputPlugin.hxx
src/output/plugins/RoarOutputPlugin.hxx
libmixer_plugins_a_SOURCES
+=
src/mixer/plugins/RoarMixerPlugin.cxx
libmixer_plugins_a_SOURCES
+=
src/mixer/plugins/RoarMixerPlugin.cxx
endif
endif
if
HAV
E_AO
if
ENABL
E_AO
liboutput_plugins_a_SOURCES
+=
\
liboutput_plugins_a_SOURCES
+=
\
src/output/plugins/AoOutputPlugin.cxx
\
src/output/plugins/AoOutputPlugin.cxx
\
src/output/plugins/AoOutputPlugin.hxx
src/output/plugins/AoOutputPlugin.hxx
...
@@ -1306,7 +1306,7 @@ liboutput_plugins_a_SOURCES += \
...
@@ -1306,7 +1306,7 @@ liboutput_plugins_a_SOURCES += \
src/output/plugins/PipeOutputPlugin.hxx
src/output/plugins/PipeOutputPlugin.hxx
endif
endif
if
HAV
E_JACK
if
ENABL
E_JACK
liboutput_plugins_a_SOURCES
+=
\
liboutput_plugins_a_SOURCES
+=
\
src/output/plugins/JackOutputPlugin.cxx
\
src/output/plugins/JackOutputPlugin.cxx
\
src/output/plugins/JackOutputPlugin.hxx
src/output/plugins/JackOutputPlugin.hxx
...
@@ -1331,7 +1331,7 @@ liboutput_plugins_a_SOURCES += \
...
@@ -1331,7 +1331,7 @@ liboutput_plugins_a_SOURCES += \
src/output/plugins/OSXOutputPlugin.hxx
src/output/plugins/OSXOutputPlugin.hxx
endif
endif
if
HAV
E_PULSE
if
ENABL
E_PULSE
liboutput_plugins_a_SOURCES
+=
\
liboutput_plugins_a_SOURCES
+=
\
src/output/plugins/PulseOutputPlugin.cxx
\
src/output/plugins/PulseOutputPlugin.cxx
\
src/output/plugins/PulseOutputPlugin.hxx
src/output/plugins/PulseOutputPlugin.hxx
...
@@ -1422,7 +1422,7 @@ libplaylist_plugins_a_SOURCES += \
...
@@ -1422,7 +1422,7 @@ libplaylist_plugins_a_SOURCES += \
PLAYLIST_LIBS
+=
$(YAJL_LIBS)
PLAYLIST_LIBS
+=
$(YAJL_LIBS)
endif
endif
if
HAV
E_EXPAT
if
ENABL
E_EXPAT
libplaylist_plugins_a_SOURCES
+=
\
libplaylist_plugins_a_SOURCES
+=
\
src/lib/expat/ExpatParser.cxx src/lib/expat/ExpatParser.hxx
\
src/lib/expat/ExpatParser.cxx src/lib/expat/ExpatParser.hxx
\
src/playlist/plugins/XspfPlaylistPlugin.cxx
\
src/playlist/plugins/XspfPlaylistPlugin.cxx
\
...
@@ -1542,7 +1542,7 @@ if HAVE_ID3TAG
...
@@ -1542,7 +1542,7 @@ if HAVE_ID3TAG
noinst_PROGRAMS
+=
test
/dump_rva2
noinst_PROGRAMS
+=
test
/dump_rva2
endif
endif
if
HAV
E_ALSA
if
ENABL
E_ALSA
# this debug program is still ALSA specific
# this debug program is still ALSA specific
noinst_PROGRAMS
+=
test
/read_mixer
noinst_PROGRAMS
+=
test
/read_mixer
endif
endif
...
@@ -1590,7 +1590,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
...
@@ -1590,7 +1590,7 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
src/TagSave.cxx
\
src/TagSave.cxx
\
src/SongFilter.cxx
src/SongFilter.cxx
if
HAVE_LIB
UPNP
if
ENABLE_
UPNP
test_DumpDatabase_SOURCES
+=
src/lib/expat/ExpatParser.cxx
test_DumpDatabase_SOURCES
+=
src/lib/expat/ExpatParser.cxx
endif
endif
...
@@ -1647,7 +1647,7 @@ test_run_neighbor_explorer_LDADD = $(AM_LDADD) \
...
@@ -1647,7 +1647,7 @@ test_run_neighbor_explorer_LDADD = $(AM_LDADD) \
libthread.a
\
libthread.a
\
libutil.a
libutil.a
if
HAVE_LIB
UPNP
if
ENABLE_
UPNP
test_run_neighbor_explorer_SOURCES
+=
src/lib/expat/ExpatParser.cxx
test_run_neighbor_explorer_SOURCES
+=
src/lib/expat/ExpatParser.cxx
endif
endif
...
@@ -1680,7 +1680,7 @@ test_visit_archive_SOURCES = test/visit_archive.cxx \
...
@@ -1680,7 +1680,7 @@ test_visit_archive_SOURCES = test/visit_archive.cxx \
endif
endif
if
HAV
E_ZLIB
if
ENABL
E_ZLIB
noinst_PROGRAMS
+=
test
/run_gzip
test
/run_gunzip
noinst_PROGRAMS
+=
test
/run_gzip
test
/run_gunzip
...
@@ -1742,7 +1742,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
...
@@ -1742,7 +1742,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
src/AudioFormat.cxx src/CheckAudioFormat.cxx
\
src/AudioFormat.cxx src/CheckAudioFormat.cxx
\
src/DetachedSong.cxx
src/DetachedSong.cxx
if
HAV
E_FLAC
if
ENABL
E_FLAC
test_dump_playlist_SOURCES
+=
\
test_dump_playlist_SOURCES
+=
\
src/ReplayGainInfo.cxx
\
src/ReplayGainInfo.cxx
\
src/decoder/plugins/FlacMetadata.cxx
src/decoder/plugins/FlacMetadata.cxx
...
@@ -1843,7 +1843,7 @@ test_run_encoder_LDADD = \
...
@@ -1843,7 +1843,7 @@ test_run_encoder_LDADD = \
$(GLIB_LIBS)
$(GLIB_LIBS)
endif
endif
if
ENABLE_VORBIS
_ENCODER
if
ENABLE_VORBIS
ENC
noinst_PROGRAMS
+=
test
/test_vorbis_encoder
noinst_PROGRAMS
+=
test
/test_vorbis_encoder
test_test_vorbis_encoder_SOURCES
=
test
/test_vorbis_encoder.cxx
\
test_test_vorbis_encoder_SOURCES
=
test
/test_vorbis_encoder.cxx
\
test
/stdbin.h
\
test
/stdbin.h
\
...
...
configure.ac
View file @
b3f5b493
This diff is collapsed.
Click to expand it.
m4/mpd_auto.m4
View file @
b3f5b493
...
@@ -77,3 +77,30 @@ AC_DEFUN([MPD_AUTO_LIB], [
...
@@ -77,3 +77,30 @@ AC_DEFUN([MPD_AUTO_LIB], [
MPD_AUTO_RESULT([$1], [$7], [$8])
MPD_AUTO_RESULT([$1], [$7], [$8])
])
])
dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_PKG
dnl
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, pre
AC_DEFUN([MPD_ENABLE_AUTO_PKG], [
AC_ARG_ENABLE(translit([$1], [_], [-]),
AS_HELP_STRING([--enable-]translit([$1], [_], [-]),
[enable $4 (default: auto)]),,
[enable_$1=]ifelse([$6], [], [auto], [$6]))
$7
MPD_AUTO_PKG($1, $2, $3, $4, $5)
if test x$[]enable_$1 = xyes; then
AC_DEFINE(ENABLE_$2, 1,
[Define to enable $4])
fi
AM_CONDITIONAL(ENABLE_$2, test x$[]enable_$1 = xyes)
])
dnl Wrapper for MPD_ENABLE_AUTO_PKG and MPD_DEPENDS
dnl
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, dep_variable, dep_errmsg
AC_DEFUN([MPD_ENABLE_AUTO_PKG_DEPENDS], [
MPD_ENABLE_AUTO_PKG([$1], [$2], [$3], [$4], [$5], [$6],
[MPD_DEPENDS([enable_$1], [$7], [$8])])
])
src/archive/ArchiveList.cxx
View file @
b3f5b493
...
@@ -32,7 +32,7 @@ const ArchivePlugin *const archive_plugins[] = {
...
@@ -32,7 +32,7 @@ const ArchivePlugin *const archive_plugins[] = {
#ifdef HAVE_BZ2
#ifdef HAVE_BZ2
&
bz2_archive_plugin
,
&
bz2_archive_plugin
,
#endif
#endif
#ifdef
HAV
E_ZZIP
#ifdef
ENABL
E_ZZIP
&
zzip_archive_plugin
,
&
zzip_archive_plugin
,
#endif
#endif
#ifdef HAVE_ISO9660
#ifdef HAVE_ISO9660
...
...
src/db/Registry.cxx
View file @
b3f5b493
...
@@ -28,10 +28,10 @@
...
@@ -28,10 +28,10 @@
const
DatabasePlugin
*
const
database_plugins
[]
=
{
const
DatabasePlugin
*
const
database_plugins
[]
=
{
&
simple_db_plugin
,
&
simple_db_plugin
,
#ifdef
HAV
E_LIBMPDCLIENT
#ifdef
ENABL
E_LIBMPDCLIENT
&
proxy_db_plugin
,
&
proxy_db_plugin
,
#endif
#endif
#ifdef
HAVE_LIB
UPNP
#ifdef
ENABLE_
UPNP
&
upnp_db_plugin
,
&
upnp_db_plugin
,
#endif
#endif
nullptr
nullptr
...
...
src/db/plugins/simple/SimpleDatabasePlugin.cxx
View file @
b3f5b493
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
#include "fs/io/GzipOutputStream.hxx"
#include "fs/io/GzipOutputStream.hxx"
#endif
#endif
...
@@ -52,21 +52,21 @@ static constexpr Domain simple_db_domain("simple_db");
...
@@ -52,21 +52,21 @@ static constexpr Domain simple_db_domain("simple_db");
inline
SimpleDatabase
::
SimpleDatabase
()
inline
SimpleDatabase
::
SimpleDatabase
()
:
Database
(
simple_db_plugin
),
:
Database
(
simple_db_plugin
),
path
(
AllocatedPath
::
Null
()),
path
(
AllocatedPath
::
Null
()),
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
compress
(
true
),
compress
(
true
),
#endif
#endif
cache_path
(
AllocatedPath
::
Null
()),
cache_path
(
AllocatedPath
::
Null
()),
prefixed_light_song
(
nullptr
)
{}
prefixed_light_song
(
nullptr
)
{}
inline
SimpleDatabase
::
SimpleDatabase
(
AllocatedPath
&&
_path
,
inline
SimpleDatabase
::
SimpleDatabase
(
AllocatedPath
&&
_path
,
#ifndef
HAV
E_ZLIB
#ifndef
ENABL
E_ZLIB
gcc_unused
gcc_unused
#endif
#endif
bool
_compress
)
bool
_compress
)
:
Database
(
simple_db_plugin
),
:
Database
(
simple_db_plugin
),
path
(
std
::
move
(
_path
)),
path
(
std
::
move
(
_path
)),
path_utf8
(
path
.
ToUTF8
()),
path_utf8
(
path
.
ToUTF8
()),
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
compress
(
_compress
),
compress
(
_compress
),
#endif
#endif
cache_path
(
AllocatedPath
::
Null
()),
cache_path
(
AllocatedPath
::
Null
()),
...
@@ -104,7 +104,7 @@ SimpleDatabase::Configure(const config_param ¶m, Error &error)
...
@@ -104,7 +104,7 @@ SimpleDatabase::Configure(const config_param ¶m, Error &error)
if
(
path
.
IsNull
()
&&
error
.
IsDefined
())
if
(
path
.
IsNull
()
&&
error
.
IsDefined
())
return
false
;
return
false
;
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
compress
=
param
.
GetBlockValue
(
"compress"
,
compress
);
compress
=
param
.
GetBlockValue
(
"compress"
,
compress
);
#endif
#endif
...
@@ -389,7 +389,7 @@ SimpleDatabase::Save(Error &error)
...
@@ -389,7 +389,7 @@ SimpleDatabase::Save(Error &error)
OutputStream
*
os
=
&
fos
;
OutputStream
*
os
=
&
fos
;
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
GzipOutputStream
*
gzip
=
nullptr
;
GzipOutputStream
*
gzip
=
nullptr
;
if
(
compress
)
{
if
(
compress
)
{
gzip
=
new
GzipOutputStream
(
*
os
,
error
);
gzip
=
new
GzipOutputStream
(
*
os
,
error
);
...
@@ -407,13 +407,13 @@ SimpleDatabase::Save(Error &error)
...
@@ -407,13 +407,13 @@ SimpleDatabase::Save(Error &error)
db_save_internal
(
bos
,
*
root
);
db_save_internal
(
bos
,
*
root
);
if
(
!
bos
.
Flush
(
error
))
{
if
(
!
bos
.
Flush
(
error
))
{
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
delete
gzip
;
delete
gzip
;
#endif
#endif
return
false
;
return
false
;
}
}
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
if
(
gzip
!=
nullptr
)
{
if
(
gzip
!=
nullptr
)
{
bool
success
=
gzip
->
Flush
(
error
);
bool
success
=
gzip
->
Flush
(
error
);
delete
gzip
;
delete
gzip
;
...
@@ -484,7 +484,7 @@ SimpleDatabase::Mount(const char *local_uri, const char *storage_uri,
...
@@ -484,7 +484,7 @@ SimpleDatabase::Mount(const char *local_uri, const char *storage_uri,
std
::
string
name
(
storage_uri
);
std
::
string
name
(
storage_uri
);
std
::
replace_if
(
name
.
begin
(),
name
.
end
(),
IsUnsafeChar
,
'_'
);
std
::
replace_if
(
name
.
begin
(),
name
.
end
(),
IsUnsafeChar
,
'_'
);
#ifndef
HAV
E_ZLIB
#ifndef
ENABL
E_ZLIB
constexpr
bool
compress
=
false
;
constexpr
bool
compress
=
false
;
#endif
#endif
auto
db
=
new
SimpleDatabase
(
AllocatedPath
::
Build
(
cache_path
,
auto
db
=
new
SimpleDatabase
(
AllocatedPath
::
Build
(
cache_path
,
...
...
src/db/plugins/simple/SimpleDatabasePlugin.hxx
View file @
b3f5b493
...
@@ -39,7 +39,7 @@ class SimpleDatabase : public Database {
...
@@ -39,7 +39,7 @@ class SimpleDatabase : public Database {
AllocatedPath
path
;
AllocatedPath
path
;
std
::
string
path_utf8
;
std
::
string
path_utf8
;
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
bool
compress
;
bool
compress
;
#endif
#endif
...
...
src/decoder/DecoderList.cxx
View file @
b3f5b493
...
@@ -52,7 +52,7 @@ const struct DecoderPlugin *const decoder_plugins[] = {
...
@@ -52,7 +52,7 @@ const struct DecoderPlugin *const decoder_plugins[] = {
#ifdef HAVE_MAD
#ifdef HAVE_MAD
&
mad_decoder_plugin
,
&
mad_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_MPG123
#ifdef
ENABL
E_MPG123
&
mpg123_decoder_plugin
,
&
mpg123_decoder_plugin
,
#endif
#endif
#ifdef HAVE_MP4V2
#ifdef HAVE_MP4V2
...
@@ -61,19 +61,17 @@ const struct DecoderPlugin *const decoder_plugins[] = {
...
@@ -61,19 +61,17 @@ const struct DecoderPlugin *const decoder_plugins[] = {
#ifdef ENABLE_VORBIS_DECODER
#ifdef ENABLE_VORBIS_DECODER
&
vorbis_decoder_plugin
,
&
vorbis_decoder_plugin
,
#endif
#endif
#if
defined(HAVE_FLAC)
#if
def ENABLE_FLAC
&
oggflac_decoder_plugin
,
&
oggflac_decoder_plugin
,
#endif
#ifdef HAVE_FLAC
&
flac_decoder_plugin
,
&
flac_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_OPUS
#ifdef
ENABL
E_OPUS
&
opus_decoder_plugin
,
&
opus_decoder_plugin
,
#endif
#endif
#ifdef ENABLE_SNDFILE
#ifdef ENABLE_SNDFILE
&
sndfile_decoder_plugin
,
&
sndfile_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_AUDIOFILE
#ifdef
ENABL
E_AUDIOFILE
&
audiofile_decoder_plugin
,
&
audiofile_decoder_plugin
,
#endif
#endif
#ifdef ENABLE_DSD
#ifdef ENABLE_DSD
...
@@ -86,10 +84,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
...
@@ -86,10 +84,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
#ifdef HAVE_MPCDEC
#ifdef HAVE_MPCDEC
&
mpcdec_decoder_plugin
,
&
mpcdec_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_WAVPACK
#ifdef
ENABL
E_WAVPACK
&
wavpack_decoder_plugin
,
&
wavpack_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_MODPLUG
#ifdef
ENABL
E_MODPLUG
&
modplug_decoder_plugin
,
&
modplug_decoder_plugin
,
#endif
#endif
#ifdef ENABLE_MIKMOD_DECODER
#ifdef ENABLE_MIKMOD_DECODER
...
@@ -104,10 +102,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
...
@@ -104,10 +102,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
#ifdef ENABLE_FLUIDSYNTH
#ifdef ENABLE_FLUIDSYNTH
&
fluidsynth_decoder_plugin
,
&
fluidsynth_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_ADPLUG
#ifdef
ENABL
E_ADPLUG
&
adplug_decoder_plugin
,
&
adplug_decoder_plugin
,
#endif
#endif
#ifdef
HAV
E_FFMPEG
#ifdef
ENABL
E_FFMPEG
&
ffmpeg_decoder_plugin
,
&
ffmpeg_decoder_plugin
,
#endif
#endif
#ifdef HAVE_GME
#ifdef HAVE_GME
...
...
src/encoder/EncoderList.cxx
View file @
b3f5b493
...
@@ -33,16 +33,16 @@
...
@@ -33,16 +33,16 @@
const
EncoderPlugin
*
const
encoder_plugins
[]
=
{
const
EncoderPlugin
*
const
encoder_plugins
[]
=
{
&
null_encoder_plugin
,
&
null_encoder_plugin
,
#ifdef ENABLE_VORBIS
_ENCODER
#ifdef ENABLE_VORBIS
ENC
&
vorbis_encoder_plugin
,
&
vorbis_encoder_plugin
,
#endif
#endif
#ifdef
HAV
E_OPUS
#ifdef
ENABL
E_OPUS
&
opus_encoder_plugin
,
&
opus_encoder_plugin
,
#endif
#endif
#ifdef ENABLE_LAME_ENCODER
#ifdef ENABLE_LAME_ENCODER
&
lame_encoder_plugin
,
&
lame_encoder_plugin
,
#endif
#endif
#ifdef ENABLE_TWOLAME
_ENCODER
#ifdef ENABLE_TWOLAME
&
twolame_encoder_plugin
,
&
twolame_encoder_plugin
,
#endif
#endif
#ifdef ENABLE_WAVE_ENCODER
#ifdef ENABLE_WAVE_ENCODER
...
@@ -51,7 +51,7 @@ const EncoderPlugin *const encoder_plugins[] = {
...
@@ -51,7 +51,7 @@ const EncoderPlugin *const encoder_plugins[] = {
#ifdef ENABLE_FLAC_ENCODER
#ifdef ENABLE_FLAC_ENCODER
&
flac_encoder_plugin
,
&
flac_encoder_plugin
,
#endif
#endif
#ifdef ENABLE_SHINE
_ENCODER
#ifdef ENABLE_SHINE
&
shine_encoder_plugin
,
&
shine_encoder_plugin
,
#endif
#endif
nullptr
nullptr
...
...
src/fs/io/TextFile.cxx
View file @
b3f5b493
...
@@ -28,14 +28,14 @@
...
@@ -28,14 +28,14 @@
TextFile
::
TextFile
(
Path
path_fs
,
Error
&
error
)
TextFile
::
TextFile
(
Path
path_fs
,
Error
&
error
)
:
file_reader
(
new
FileReader
(
path_fs
,
error
)),
:
file_reader
(
new
FileReader
(
path_fs
,
error
)),
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
gunzip_reader
(
file_reader
->
IsDefined
()
gunzip_reader
(
file_reader
->
IsDefined
()
?
new
AutoGunzipReader
(
*
file_reader
)
?
new
AutoGunzipReader
(
*
file_reader
)
:
nullptr
),
:
nullptr
),
#endif
#endif
buffered_reader
(
file_reader
->
IsDefined
()
buffered_reader
(
file_reader
->
IsDefined
()
?
new
BufferedReader
(
*
?
new
BufferedReader
(
*
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
gunzip_reader
gunzip_reader
#else
#else
file_reader
file_reader
...
@@ -48,7 +48,7 @@ TextFile::TextFile(Path path_fs, Error &error)
...
@@ -48,7 +48,7 @@ TextFile::TextFile(Path path_fs, Error &error)
TextFile
::~
TextFile
()
TextFile
::~
TextFile
()
{
{
delete
buffered_reader
;
delete
buffered_reader
;
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
delete
gunzip_reader
;
delete
gunzip_reader
;
#endif
#endif
delete
file_reader
;
delete
file_reader
;
...
...
src/fs/io/TextFile.hxx
View file @
b3f5b493
...
@@ -34,7 +34,7 @@ class BufferedReader;
...
@@ -34,7 +34,7 @@ class BufferedReader;
class
TextFile
{
class
TextFile
{
FileReader
*
const
file_reader
;
FileReader
*
const
file_reader
;
#ifdef
HAV
E_ZLIB
#ifdef
ENABL
E_ZLIB
AutoGunzipReader
*
const
gunzip_reader
;
AutoGunzipReader
*
const
gunzip_reader
;
#endif
#endif
...
...
src/input/Registry.cxx
View file @
b3f5b493
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "util/Macros.hxx"
#include "util/Macros.hxx"
#include "plugins/FileInputPlugin.hxx"
#include "plugins/FileInputPlugin.hxx"
#ifdef
HAV
E_ALSA
#ifdef
ENABL
E_ALSA
#include "plugins/AlsaInputPlugin.hxx"
#include "plugins/AlsaInputPlugin.hxx"
#endif
#endif
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "plugins/CurlInputPlugin.hxx"
#include "plugins/CurlInputPlugin.hxx"
#endif
#endif
#ifdef
HAV
E_FFMPEG
#ifdef
ENABL
E_FFMPEG
#include "plugins/FfmpegInputPlugin.hxx"
#include "plugins/FfmpegInputPlugin.hxx"
#endif
#endif
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
const
InputPlugin
*
const
input_plugins
[]
=
{
const
InputPlugin
*
const
input_plugins
[]
=
{
&
input_plugin_file
,
&
input_plugin_file
,
#ifdef
HAV
E_ALSA
#ifdef
ENABL
E_ALSA
&
input_plugin_alsa
,
&
input_plugin_alsa
,
#endif
#endif
#ifdef ENABLE_ARCHIVE
#ifdef ENABLE_ARCHIVE
...
@@ -69,7 +69,7 @@ const InputPlugin *const input_plugins[] = {
...
@@ -69,7 +69,7 @@ const InputPlugin *const input_plugins[] = {
#ifdef ENABLE_CURL
#ifdef ENABLE_CURL
&
input_plugin_curl
,
&
input_plugin_curl
,
#endif
#endif
#ifdef
HAV
E_FFMPEG
#ifdef
ENABL
E_FFMPEG
&
input_plugin_ffmpeg
,
&
input_plugin_ffmpeg
,
#endif
#endif
#ifdef ENABLE_SMBCLIENT
#ifdef ENABLE_SMBCLIENT
...
...
src/ls.cxx
View file @
b3f5b493
...
@@ -41,7 +41,7 @@ static const char *remoteUrlPrefixes[] = {
...
@@ -41,7 +41,7 @@ static const char *remoteUrlPrefixes[] = {
"mmst://"
,
"mmst://"
,
"mmsu://"
,
"mmsu://"
,
#endif
#endif
#ifdef
HAV
E_FFMPEG
#ifdef
ENABL
E_FFMPEG
"gopher://"
,
"gopher://"
,
"rtp://"
,
"rtp://"
,
"rtsp://"
,
"rtsp://"
,
...
@@ -61,7 +61,7 @@ static const char *remoteUrlPrefixes[] = {
...
@@ -61,7 +61,7 @@ static const char *remoteUrlPrefixes[] = {
#ifdef ENABLE_DESPOTIFY
#ifdef ENABLE_DESPOTIFY
"spt://"
,
"spt://"
,
#endif
#endif
#ifdef
HAV
E_ALSA
#ifdef
ENABL
E_ALSA
"alsa://"
,
"alsa://"
,
#endif
#endif
NULL
NULL
...
...
src/neighbor/Registry.cxx
View file @
b3f5b493
...
@@ -29,7 +29,7 @@ const NeighborPlugin *const neighbor_plugins[] = {
...
@@ -29,7 +29,7 @@ const NeighborPlugin *const neighbor_plugins[] = {
#ifdef ENABLE_SMBCLIENT
#ifdef ENABLE_SMBCLIENT
&
smbclient_neighbor_plugin
,
&
smbclient_neighbor_plugin
,
#endif
#endif
#ifdef
HAVE_LIB
UPNP
#ifdef
ENABLE_
UPNP
&
upnp_neighbor_plugin
,
&
upnp_neighbor_plugin
,
#endif
#endif
nullptr
nullptr
...
...
src/output/Registry.cxx
View file @
b3f5b493
...
@@ -54,13 +54,13 @@ const AudioOutputPlugin *const audio_output_plugins[] = {
...
@@ -54,13 +54,13 @@ const AudioOutputPlugin *const audio_output_plugins[] = {
#ifdef ENABLE_PIPE_OUTPUT
#ifdef ENABLE_PIPE_OUTPUT
&
pipe_output_plugin
,
&
pipe_output_plugin
,
#endif
#endif
#ifdef
HAV
E_ALSA
#ifdef
ENABL
E_ALSA
&
alsa_output_plugin
,
&
alsa_output_plugin
,
#endif
#endif
#ifdef
HAV
E_ROAR
#ifdef
ENABL
E_ROAR
&
roar_output_plugin
,
&
roar_output_plugin
,
#endif
#endif
#ifdef
HAV
E_AO
#ifdef
ENABL
E_AO
&
ao_output_plugin
,
&
ao_output_plugin
,
#endif
#endif
#ifdef HAVE_OSS
#ifdef HAVE_OSS
...
@@ -75,10 +75,10 @@ const AudioOutputPlugin *const audio_output_plugins[] = {
...
@@ -75,10 +75,10 @@ const AudioOutputPlugin *const audio_output_plugins[] = {
#ifdef ENABLE_SOLARIS_OUTPUT
#ifdef ENABLE_SOLARIS_OUTPUT
&
solaris_output_plugin
,
&
solaris_output_plugin
,
#endif
#endif
#ifdef
HAV
E_PULSE
#ifdef
ENABL
E_PULSE
&
pulse_output_plugin
,
&
pulse_output_plugin
,
#endif
#endif
#ifdef
HAV
E_JACK
#ifdef
ENABL
E_JACK
&
jack_output_plugin
,
&
jack_output_plugin
,
#endif
#endif
#ifdef ENABLE_HTTPD_OUTPUT
#ifdef ENABLE_HTTPD_OUTPUT
...
...
src/pcm/ConfiguredResampler.cxx
View file @
b3f5b493
...
@@ -25,11 +25,11 @@
...
@@ -25,11 +25,11 @@
#include "config/ConfigError.hxx"
#include "config/ConfigError.hxx"
#include "util/Error.hxx"
#include "util/Error.hxx"
#ifdef
HAV
E_LIBSAMPLERATE
#ifdef
ENABL
E_LIBSAMPLERATE
#include "LibsamplerateResampler.hxx"
#include "LibsamplerateResampler.hxx"
#endif
#endif
#ifdef
HAV
E_SOXR
#ifdef
ENABL
E_SOXR
#include "SoxrResampler.hxx"
#include "SoxrResampler.hxx"
#endif
#endif
...
@@ -38,11 +38,11 @@
...
@@ -38,11 +38,11 @@
enum
class
SelectedResampler
{
enum
class
SelectedResampler
{
FALLBACK
,
FALLBACK
,
#ifdef
HAV
E_LIBSAMPLERATE
#ifdef
ENABL
E_LIBSAMPLERATE
LIBSAMPLERATE
,
LIBSAMPLERATE
,
#endif
#endif
#ifdef
HAV
E_SOXR
#ifdef
ENABL
E_SOXR
SOXR
,
SOXR
,
#endif
#endif
};
};
...
@@ -58,14 +58,14 @@ pcm_resampler_global_init(Error &error)
...
@@ -58,14 +58,14 @@ pcm_resampler_global_init(Error &error)
if
(
strcmp
(
converter
,
"internal"
)
==
0
)
if
(
strcmp
(
converter
,
"internal"
)
==
0
)
return
true
;
return
true
;
#ifdef
HAV
E_SOXR
#ifdef
ENABL
E_SOXR
if
(
memcmp
(
converter
,
"soxr"
,
4
)
==
0
)
{
if
(
memcmp
(
converter
,
"soxr"
,
4
)
==
0
)
{
selected_resampler
=
SelectedResampler
::
SOXR
;
selected_resampler
=
SelectedResampler
::
SOXR
;
return
pcm_resample_soxr_global_init
(
converter
,
error
);
return
pcm_resample_soxr_global_init
(
converter
,
error
);
}
}
#endif
#endif
#ifdef
HAV
E_LIBSAMPLERATE
#ifdef
ENABL
E_LIBSAMPLERATE
selected_resampler
=
SelectedResampler
::
LIBSAMPLERATE
;
selected_resampler
=
SelectedResampler
::
LIBSAMPLERATE
;
return
pcm_resample_lsr_global_init
(
converter
,
error
);
return
pcm_resample_lsr_global_init
(
converter
,
error
);
#endif
#endif
...
@@ -86,12 +86,12 @@ pcm_resampler_create()
...
@@ -86,12 +86,12 @@ pcm_resampler_create()
case
SelectedResampler
:
:
FALLBACK
:
case
SelectedResampler
:
:
FALLBACK
:
return
new
FallbackPcmResampler
();
return
new
FallbackPcmResampler
();
#ifdef
HAV
E_LIBSAMPLERATE
#ifdef
ENABL
E_LIBSAMPLERATE
case
SelectedResampler
:
:
LIBSAMPLERATE
:
case
SelectedResampler
:
:
LIBSAMPLERATE
:
return
new
LibsampleratePcmResampler
();
return
new
LibsampleratePcmResampler
();
#endif
#endif
#ifdef
HAV
E_SOXR
#ifdef
ENABL
E_SOXR
case
SelectedResampler
:
:
SOXR
:
case
SelectedResampler
:
:
SOXR
:
return
new
SoxrPcmResampler
();
return
new
SoxrPcmResampler
();
#endif
#endif
...
...
src/playlist/PlaylistRegistry.cxx
View file @
b3f5b493
...
@@ -49,7 +49,7 @@ const struct playlist_plugin *const playlist_plugins[] = {
...
@@ -49,7 +49,7 @@ const struct playlist_plugin *const playlist_plugins[] = {
// TODO: enable without GLib
// TODO: enable without GLib
&
pls_playlist_plugin
,
&
pls_playlist_plugin
,
#endif
#endif
#ifdef
HAV
E_EXPAT
#ifdef
ENABL
E_EXPAT
&
xspf_playlist_plugin
,
&
xspf_playlist_plugin
,
&
asx_playlist_plugin
,
&
asx_playlist_plugin
,
&
rss_playlist_plugin
,
&
rss_playlist_plugin
,
...
...
src/system/fd_util.h
View file @
b3f5b493
...
@@ -103,7 +103,7 @@ socketpair_cloexec_nonblock(int domain, int type, int protocol, int sv[2]);
...
@@ -103,7 +103,7 @@ socketpair_cloexec_nonblock(int domain, int type, int protocol, int sv[2]);
#endif
#endif
#ifdef
HAV
E_LIBMPDCLIENT
#ifdef
ENABL
E_LIBMPDCLIENT
/* Avoid symbol conflict with statically linked libmpdclient */
/* Avoid symbol conflict with statically linked libmpdclient */
#define socket_cloexec_nonblock socket_cloexec_nonblock_noconflict
#define socket_cloexec_nonblock socket_cloexec_nonblock_noconflict
#endif
#endif
...
...
test/DumpDatabase.cxx
View file @
b3f5b493
...
@@ -44,7 +44,7 @@ using std::endl;
...
@@ -44,7 +44,7 @@ using std::endl;
#include <stdlib.h>
#include <stdlib.h>
#ifdef
HAVE_LIB
UPNP
#ifdef
ENABLE_
UPNP
#include "input/InputStream.hxx"
#include "input/InputStream.hxx"
size_t
size_t
InputStream
::
LockRead
(
void
*
,
size_t
,
Error
&
)
InputStream
::
LockRead
(
void
*
,
size_t
,
Error
&
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment