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
8bf46a66
Commit
8bf46a66
authored
Sep 26, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: add option to disable the DSD decoders
Allow building a smaller MPD binary for people who don't need DSD.
parent
c4fca2aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
Makefile.am
Makefile.am
+14
-6
configure.ac
configure.ac
+13
-0
DecoderList.cxx
src/DecoderList.cxx
+2
-0
No files found.
Makefile.am
View file @
8bf46a66
...
@@ -476,12 +476,6 @@ endif
...
@@ -476,12 +476,6 @@ endif
libdecoder_plugins_a_SOURCES
=
\
libdecoder_plugins_a_SOURCES
=
\
src/decoder/PcmDecoderPlugin.cxx
\
src/decoder/PcmDecoderPlugin.cxx
\
src/decoder/PcmDecoderPlugin.hxx
\
src/decoder/PcmDecoderPlugin.hxx
\
src/decoder/DsdiffDecoderPlugin.cxx
\
src/decoder/DsdiffDecoderPlugin.hxx
\
src/decoder/DsfDecoderPlugin.cxx
\
src/decoder/DsfDecoderPlugin.hxx
\
src/decoder/DsdLib.cxx
\
src/decoder/DsdLib.hxx
\
src/DecoderBuffer.cxx src/DecoderBuffer.hxx
\
src/DecoderBuffer.cxx src/DecoderBuffer.hxx
\
src/DecoderPlugin.cxx
\
src/DecoderPlugin.cxx
\
src/DecoderList.cxx src/DecoderList.hxx
src/DecoderList.cxx src/DecoderList.hxx
...
@@ -525,6 +519,16 @@ DECODER_LIBS = \
...
@@ -525,6 +519,16 @@ DECODER_LIBS = \
DECODER_SRC
=
DECODER_SRC
=
if
ENABLE_DSD
libdecoder_plugins_a_SOURCES
+=
\
src/decoder/DsdiffDecoderPlugin.cxx
\
src/decoder/DsdiffDecoderPlugin.hxx
\
src/decoder/DsfDecoderPlugin.cxx
\
src/decoder/DsfDecoderPlugin.hxx
\
src/decoder/DsdLib.cxx
\
src/decoder/DsdLib.hxx
endif
if
HAVE_MAD
if
HAVE_MAD
libdecoder_plugins_a_SOURCES
+=
\
libdecoder_plugins_a_SOURCES
+=
\
src/decoder/MadDecoderPlugin.cxx
\
src/decoder/MadDecoderPlugin.cxx
\
...
@@ -1559,6 +1563,8 @@ test_test_queue_priority_LDADD = \
...
@@ -1559,6 +1563,8 @@ test_test_queue_priority_LDADD = \
libutil.a
\
libutil.a
\
$(CPPUNIT_LIBS)
$(CPPUNIT_LIBS)
if
ENABLE_DSD
noinst_PROGRAMS
+=
src/pcm/dsd2pcm/dsd2pcm
noinst_PROGRAMS
+=
src/pcm/dsd2pcm/dsd2pcm
src_pcm_dsd2pcm_dsd2pcm_SOURCES
=
\
src_pcm_dsd2pcm_dsd2pcm_SOURCES
=
\
...
@@ -1571,6 +1577,8 @@ src_pcm_dsd2pcm_dsd2pcm_LDADD = libutil.a
...
@@ -1571,6 +1577,8 @@ src_pcm_dsd2pcm_dsd2pcm_LDADD = libutil.a
endif
endif
endif
#
#
# Documentation
# Documentation
...
...
configure.ac
View file @
8bf46a66
...
@@ -214,6 +214,11 @@ AC_ARG_ENABLE(documentation,
...
@@ -214,6 +214,11 @@ AC_ARG_ENABLE(documentation,
[build documentation (default: disable)]),,
[build documentation (default: disable)]),,
[enable_documentation=no])
[enable_documentation=no])
AC_ARG_ENABLE(dsd,
AS_HELP_STRING([--enable-dsd],
[enable DSD decoder (default: enable)]),,
[enable_dsd=yes])
AC_ARG_ENABLE(ffmpeg,
AC_ARG_ENABLE(ffmpeg,
AS_HELP_STRING([--enable-ffmpeg],
AS_HELP_STRING([--enable-ffmpeg],
[enable FFMPEG support]),,
[enable FFMPEG support]),,
...
@@ -846,6 +851,14 @@ if test x$enable_audiofile = xyes; then
...
@@ -846,6 +851,14 @@ if test x$enable_audiofile = xyes; then
AC_DEFINE(HAVE_AUDIOFILE, 1, [Define for audiofile support])
AC_DEFINE(HAVE_AUDIOFILE, 1, [Define for audiofile support])
fi
fi
dnl ----------------------------------- DSD -----------------------------------
if test x$enable_dsd = xyes; then
AC_DEFINE(HAVE_DSD, 1, [Define for the DSD decoder])
fi
AM_CONDITIONAL(ENABLE_DSD, test x$enable_dsd = xyes)
dnl ----------------------------------- FAAD ----------------------------------
dnl ----------------------------------- FAAD ----------------------------------
AM_PATH_FAAD()
AM_PATH_FAAD()
...
...
src/DecoderList.cxx
View file @
8bf46a66
...
@@ -73,8 +73,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
...
@@ -73,8 +73,10 @@ const struct DecoderPlugin *const decoder_plugins[] = {
#ifdef HAVE_AUDIOFILE
#ifdef HAVE_AUDIOFILE
&
audiofile_decoder_plugin
,
&
audiofile_decoder_plugin
,
#endif
#endif
#ifdef ENABLE_DSD
&
dsdiff_decoder_plugin
,
&
dsdiff_decoder_plugin
,
&
dsf_decoder_plugin
,
&
dsf_decoder_plugin
,
#endif
#ifdef HAVE_FAAD
#ifdef HAVE_FAAD
&
faad_decoder_plugin
,
&
faad_decoder_plugin
,
#endif
#endif
...
...
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