{de,en}coder/{vorbis,flac,opus}: move several libraries to lib/xiph/

This commit is contained in:
Max Kellermann 2016-05-02 23:11:07 +02:00
parent b27a41812f
commit ed6c6296eb
15 changed files with 20 additions and 22 deletions

View File

@ -20,6 +20,7 @@ noinst_LIBRARIES = \
libevent.a \ libevent.a \
libicu.a \ libicu.a \
libpcm.a \ libpcm.a \
libxiph.a \
libconf.a \ libconf.a \
libtag.a \ libtag.a \
libinput.a \ libinput.a \
@ -585,10 +586,19 @@ if HAVE_XIPH
noinst_LIBRARIES += libxiph.a noinst_LIBRARIES += libxiph.a
libxiph_a_SOURCES = \ libxiph_a_SOURCES = \
src/lib/xiph/VorbisComments.cxx src/lib/xiph/VorbisComments.hxx \
src/lib/xiph/XiphTags.cxx src/lib/xiph/XiphTags.hxx src/lib/xiph/XiphTags.cxx src/lib/xiph/XiphTags.hxx
libxiph_a_CPPFLAGS = $(AM_CPPFLAGS) \ libxiph_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(OGG_CFLAGS) $(OGG_CFLAGS)
if HAVE_OGG
libxiph_a_SOURCES += \
src/lib/xiph/OggSerial.cxx src/lib/xiph/OggSerial.hxx \
src/lib/xiph/OggUtil.cxx src/lib/xiph/OggUtil.hxx \
src/lib/xiph/OggSyncState.hxx \
src/lib/xiph/OggStream.hxx
endif
XIPH_LIBS = libxiph.a XIPH_LIBS = libxiph.a
endif endif
@ -988,9 +998,6 @@ endif
if ENABLE_OPUS if ENABLE_OPUS
libdecoder_a_SOURCES += \ libdecoder_a_SOURCES += \
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/OggFind.cxx src/decoder/plugins/OggFind.hxx \
src/decoder/plugins/OpusDomain.cxx src/decoder/plugins/OpusDomain.hxx \ src/decoder/plugins/OpusDomain.cxx src/decoder/plugins/OpusDomain.hxx \
src/decoder/plugins/OpusReader.hxx \ src/decoder/plugins/OpusReader.hxx \
@ -1027,7 +1034,6 @@ endif
if ENABLE_VORBIS_DECODER if ENABLE_VORBIS_DECODER
libdecoder_a_SOURCES += \ libdecoder_a_SOURCES += \
src/decoder/plugins/VorbisDomain.cxx src/decoder/plugins/VorbisDomain.hxx \ 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 src/decoder/plugins/VorbisDecoderPlugin.cxx src/decoder/plugins/VorbisDecoderPlugin.h
endif endif
@ -1120,6 +1126,7 @@ libencoder_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
ENCODER_LIBS = \ ENCODER_LIBS = \
libencoder_plugins.a \ libencoder_plugins.a \
$(XIPH_LIBS) \
$(LAME_LIBS) \ $(LAME_LIBS) \
$(TWOLAME_LIBS) \ $(TWOLAME_LIBS) \
$(FLAC_LIBS) \ $(FLAC_LIBS) \
@ -1132,18 +1139,10 @@ libencoder_plugins_a_SOURCES = \
src/encoder/EncoderInterface.hxx \ src/encoder/EncoderInterface.hxx \
src/encoder/EncoderPlugin.hxx \ src/encoder/EncoderPlugin.hxx \
src/encoder/ToOutputStream.cxx src/encoder/ToOutputStream.hxx \ src/encoder/ToOutputStream.cxx src/encoder/ToOutputStream.hxx \
src/encoder/plugins/OggStream.hxx \
src/encoder/plugins/NullEncoderPlugin.cxx \ src/encoder/plugins/NullEncoderPlugin.cxx \
src/encoder/plugins/NullEncoderPlugin.hxx \ src/encoder/plugins/NullEncoderPlugin.hxx \
src/encoder/EncoderList.cxx src/encoder/EncoderList.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 if ENABLE_WAVE_ENCODER
libencoder_plugins_a_SOURCES += \ libencoder_plugins_a_SOURCES += \
src/encoder/plugins/WaveEncoderPlugin.cxx \ src/encoder/plugins/WaveEncoderPlugin.cxx \
@ -1825,6 +1824,7 @@ test_dump_playlist_LDADD = \
$(FLAC_LIBS) \ $(FLAC_LIBS) \
$(DECODER_LIBS) \ $(DECODER_LIBS) \
$(TAG_LIBS) \ $(TAG_LIBS) \
libxiph.a \
$(INPUT_LIBS) \ $(INPUT_LIBS) \
$(ARCHIVE_LIBS) \ $(ARCHIVE_LIBS) \
libconf.a \ libconf.a \

View File

@ -1086,8 +1086,6 @@ fi
MPD_DEFINE_CONDITIONAL(enable_encoder, ENABLE_ENCODER, MPD_DEFINE_CONDITIONAL(enable_encoder, ENABLE_ENCODER,
[the encoder plugins]) [the encoder plugins])
AM_CONDITIONAL(HAVE_OGG_ENCODER, test x$enable_vorbis_encoder = xyes || test x$enable_opus = xyes)
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl Audio Output Plugins dnl Audio Output Plugins
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------

View File

@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "OggFind.hxx" #include "OggFind.hxx"
#include "OggSyncState.hxx" #include "lib/xiph/OggSyncState.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"

View File

@ -23,7 +23,7 @@
#include "OpusHead.hxx" #include "OpusHead.hxx"
#include "OpusTags.hxx" #include "OpusTags.hxx"
#include "OggFind.hxx" #include "OggFind.hxx"
#include "OggSyncState.hxx" #include "lib/xiph/OggSyncState.hxx"
#include "../DecoderAPI.hxx" #include "../DecoderAPI.hxx"
#include "decoder/Reader.hxx" #include "decoder/Reader.hxx"
#include "input/Reader.hxx" #include "input/Reader.hxx"

View File

@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "VorbisDecoderPlugin.h" #include "VorbisDecoderPlugin.h"
#include "VorbisComments.hxx" #include "lib/xiph/VorbisComments.hxx"
#include "VorbisDomain.hxx" #include "VorbisDomain.hxx"
#include "../DecoderAPI.hxx" #include "../DecoderAPI.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"

View File

@ -19,8 +19,8 @@
#include "config.h" #include "config.h"
#include "OpusEncoderPlugin.hxx" #include "OpusEncoderPlugin.hxx"
#include "OggStream.hxx" #include "lib/xiph/OggStream.hxx"
#include "OggSerial.hxx" #include "lib/xiph/OggSerial.hxx"
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/ConfigError.hxx" #include "config/ConfigError.hxx"

View File

@ -19,8 +19,8 @@
#include "config.h" #include "config.h"
#include "VorbisEncoderPlugin.hxx" #include "VorbisEncoderPlugin.hxx"
#include "OggStream.hxx" #include "lib/xiph/OggStream.hxx"
#include "OggSerial.hxx" #include "lib/xiph/OggSerial.hxx"
#include "../EncoderAPI.hxx" #include "../EncoderAPI.hxx"
#include "AudioFormat.hxx" #include "AudioFormat.hxx"
#include "config/ConfigError.hxx" #include "config/ConfigError.hxx"

View File

@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "VorbisComments.hxx" #include "VorbisComments.hxx"
#include "lib/xiph/XiphTags.hxx" #include "XiphTags.hxx"
#include "tag/TagTable.hxx" #include "tag/TagTable.hxx"
#include "tag/TagHandler.hxx" #include "tag/TagHandler.hxx"
#include "tag/TagBuilder.hxx" #include "tag/TagBuilder.hxx"