mirror of
https://github.com/taglib/taglib.git
synced 2026-03-27 09:09:49 -04:00
Merge branch 'master' of https://github.com/taglib/taglib
Conflicts: taglib/CMakeLists.txt tests/CMakeLists.txt
This commit is contained in:
@ -101,6 +101,17 @@ set(tag_HDRS
|
||||
riff/aiff/aiffproperties.h
|
||||
riff/wav/wavfile.h
|
||||
riff/wav/wavproperties.h
|
||||
asf/asffile.h
|
||||
asf/asfproperties.h
|
||||
asf/asftag.h
|
||||
asf/asfattribute.h
|
||||
asf/asfpicture.h
|
||||
mp4/mp4file.h
|
||||
mp4/mp4atom.h
|
||||
mp4/mp4tag.h
|
||||
mp4/mp4item.h
|
||||
mp4/mp4properties.h
|
||||
mp4/mp4coverart.h
|
||||
mod/modfilebase.h
|
||||
mod/modfile.h
|
||||
mod/modtag.h
|
||||
@ -112,25 +123,6 @@ set(tag_HDRS
|
||||
xm/xmfile.h
|
||||
xm/xmproperties.h
|
||||
)
|
||||
if(WITH_ASF)
|
||||
set(tag_HDRS ${tag_HDRS}
|
||||
asf/asffile.h
|
||||
asf/asfproperties.h
|
||||
asf/asftag.h
|
||||
asf/asfattribute.h
|
||||
asf/asfpicture.h
|
||||
)
|
||||
endif()
|
||||
if(WITH_MP4)
|
||||
set(tag_HDRS ${tag_HDRS}
|
||||
mp4/mp4file.h
|
||||
mp4/mp4atom.h
|
||||
mp4/mp4tag.h
|
||||
mp4/mp4item.h
|
||||
mp4/mp4properties.h
|
||||
mp4/mp4coverart.h
|
||||
)
|
||||
endif()
|
||||
|
||||
set(mpeg_SRCS
|
||||
mpeg/mpegfile.cpp
|
||||
@ -290,18 +282,12 @@ set(tag_LIB_SRCS
|
||||
${mpeg_SRCS} ${id3v1_SRCS} ${id3v2_SRCS} ${frames_SRCS} ${ogg_SRCS}
|
||||
${vorbis_SRCS} ${oggflacs_SRCS} ${mpc_SRCS} ${ape_SRCS} ${toolkit_SRCS} ${flacs_SRCS}
|
||||
${wavpack_SRCS} ${speex_SRCS} ${trueaudio_SRCS} ${riff_SRCS} ${aiff_SRCS} ${wav_SRCS}
|
||||
${mod_SRCS} ${s3m_SRCS} ${it_SRCS} ${xm_SRCS}
|
||||
${asf_SRCS} ${mp4_SRCS} ${mod_SRCS} ${s3m_SRCS} ${it_SRCS} ${xm_SRCS}
|
||||
tag.cpp
|
||||
tagunion.cpp
|
||||
fileref.cpp
|
||||
audioproperties.cpp
|
||||
)
|
||||
if(WITH_ASF)
|
||||
set(tag_LIB_SRCS ${tag_LIB_SRCS} ${asf_SRCS})
|
||||
endif()
|
||||
if(WITH_MP4)
|
||||
set(tag_LIB_SRCS ${tag_LIB_SRCS} ${mp4_SRCS})
|
||||
endif()
|
||||
|
||||
add_library(tag ${tag_LIB_SRCS} ${tag_HDRS})
|
||||
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ASF
|
||||
|
||||
#include <taglib.h>
|
||||
#include <tdebug.h>
|
||||
#include "asfattribute.h"
|
||||
@ -353,4 +351,3 @@ void ASF::Attribute::setStream(int value)
|
||||
d->stream = value;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ASF
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tbytevectorlist.h>
|
||||
#include <tstring.h>
|
||||
@ -607,4 +605,3 @@ ByteVector ASF::File::renderString(const String &str, bool includeLength)
|
||||
return data;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ASF
|
||||
|
||||
#include <taglib.h>
|
||||
#include <tdebug.h>
|
||||
#include "asfattribute.h"
|
||||
@ -182,4 +180,3 @@ ASF::Picture ASF::Picture::fromInvalid()
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ASF
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tstring.h>
|
||||
#include "asfproperties.h"
|
||||
@ -115,4 +113,3 @@ void ASF::Properties::setEncrypted(bool encrypted)
|
||||
d->encrypted = encrypted;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_ASF
|
||||
|
||||
#include "asftag.h"
|
||||
|
||||
using namespace TagLib;
|
||||
@ -198,4 +196,3 @@ bool ASF::Tag::isEmpty() const
|
||||
d->attributeListMap.isEmpty();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -151,17 +151,13 @@ StringList FileRef::defaultFileExtensions()
|
||||
l.append("wv");
|
||||
l.append("spx");
|
||||
l.append("tta");
|
||||
#ifdef TAGLIB_WITH_MP4
|
||||
l.append("m4a");
|
||||
l.append("m4b");
|
||||
l.append("m4p");
|
||||
l.append("3g2");
|
||||
l.append("mp4");
|
||||
#endif
|
||||
#ifdef TAGLIB_WITH_ASF
|
||||
l.append("wma");
|
||||
l.append("asf");
|
||||
#endif
|
||||
l.append("aif");
|
||||
l.append("aiff");
|
||||
l.append("wav");
|
||||
@ -257,14 +253,10 @@ File *FileRef::create(FileName fileName, bool readAudioProperties,
|
||||
return new Ogg::Speex::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
if(ext == "TTA")
|
||||
return new TrueAudio::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
#ifdef TAGLIB_WITH_MP4
|
||||
if(ext == "M4A" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2")
|
||||
return new MP4::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
#endif
|
||||
#ifdef TAGLIB_WITH_ASF
|
||||
if(ext == "WMA" || ext == "ASF")
|
||||
return new ASF::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
#endif
|
||||
if(ext == "AIF" || ext == "AIFF")
|
||||
return new RIFF::AIFF::File(fileName, readAudioProperties, audioPropertiesStyle);
|
||||
if(ext == "WAV")
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_MP4
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tstring.h>
|
||||
#include "mp4atom.h"
|
||||
@ -198,4 +196,3 @@ MP4::Atoms::path(const char *name1, const char *name2, const char *name3, const
|
||||
return path;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_MP4
|
||||
|
||||
#include <taglib.h>
|
||||
#include <tdebug.h>
|
||||
#include "mp4coverart.h"
|
||||
@ -86,4 +84,3 @@ MP4::CoverArt::data() const
|
||||
return d->data;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_MP4
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tstring.h>
|
||||
#include "mp4atom.h"
|
||||
@ -149,4 +147,3 @@ MP4::File::save()
|
||||
return d->tag->save();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_MP4
|
||||
|
||||
#include <taglib.h>
|
||||
#include <tdebug.h>
|
||||
#include "mp4item.h"
|
||||
@ -146,4 +144,3 @@ MP4::Item::isValid() const
|
||||
return d->valid;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_MP4
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tstring.h>
|
||||
#include "mp4file.h"
|
||||
@ -186,4 +184,3 @@ MP4::Properties::isEncrypted() const
|
||||
return d->encrypted;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,8 +27,6 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef WITH_MP4
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tstring.h>
|
||||
#include "mp4atom.h"
|
||||
@ -638,4 +636,3 @@ MP4::Tag::itemListMap()
|
||||
return d->items;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,275 +0,0 @@
|
||||
######################################################################
|
||||
# Automatically generated by qmake (2.01a) Fri Feb 1 15:35:13 2008
|
||||
######################################################################
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += lib_bundle staticlib
|
||||
CONFIG += x86 x86_64 ppc
|
||||
CONFIG -= qt
|
||||
DEFINES += HAVE_ZLIB=1 NDEBUG WITH_ASF WITH_MP4 TAGLIB_NO_CONFIG
|
||||
LIBS += -lz
|
||||
TARGET = TagLib
|
||||
VERSION = 1.6.3
|
||||
DEPENDPATH += . \
|
||||
ape \
|
||||
asf \
|
||||
flac \
|
||||
mp4 \
|
||||
mpc \
|
||||
mpeg \
|
||||
mpeg/id3v1 \
|
||||
mpeg/id3v2 \
|
||||
mpeg/id3v2/frames \
|
||||
ogg \
|
||||
ogg/flac \
|
||||
ogg/speex \
|
||||
ogg/vorbis \
|
||||
riff \
|
||||
riff/aiff \
|
||||
riff/wav \
|
||||
toolkit \
|
||||
trueaudio \
|
||||
wavpack
|
||||
|
||||
INCLUDEPATH += . \
|
||||
ape \
|
||||
asf \
|
||||
flac \
|
||||
mp4 \
|
||||
mpc \
|
||||
mpeg \
|
||||
mpeg/id3v1 \
|
||||
mpeg/id3v2 \
|
||||
mpeg/id3v2/frames \
|
||||
ogg \
|
||||
ogg/flac \
|
||||
ogg/speex \
|
||||
ogg/vorbis \
|
||||
riff \
|
||||
riff/aiff \
|
||||
riff/wav \
|
||||
toolkit \
|
||||
trueaudio \
|
||||
wavpack
|
||||
|
||||
# Input
|
||||
HEADERS += audioproperties.h \
|
||||
fileref.h \
|
||||
tag.h \
|
||||
taglib_export.h \
|
||||
tagunion.h \
|
||||
ape/apefooter.h \
|
||||
ape/apeitem.h \
|
||||
ape/apetag.h \
|
||||
flac/flacfile.h \
|
||||
flac/flacproperties.h \
|
||||
flac/flacpicture.h \
|
||||
mpc/mpcfile.h \
|
||||
mpc/mpcproperties.h \
|
||||
mp4/mp4atom.h \
|
||||
mp4/mp4item.h \
|
||||
mp4/mp4file.h \
|
||||
mp4/mp4properties.h \
|
||||
mpeg/mpegfile.h \
|
||||
mpeg/mpegheader.h \
|
||||
mpeg/mpegproperties.h \
|
||||
mpeg/xingheader.h \
|
||||
ogg/oggfile.h \
|
||||
ogg/oggpage.h \
|
||||
ogg/oggpageheader.h \
|
||||
ogg/xiphcomment.h \
|
||||
ogg/speex/speexfile.h \
|
||||
ogg/speex/speexproperties.h \
|
||||
toolkit/taglib.h \
|
||||
toolkit/tbytevector.h \
|
||||
toolkit/tbytevectorlist.h \
|
||||
toolkit/tdebug.h \
|
||||
toolkit/tfile.h \
|
||||
toolkit/tlist.h \
|
||||
toolkit/tmap.h \
|
||||
toolkit/tstring.h \
|
||||
toolkit/tstringlist.h \
|
||||
toolkit/unicode.h \
|
||||
trueaudio/trueaudiofile.h \
|
||||
trueaudio/trueaudioproperties.h \
|
||||
wavpack/wavpackfile.h \
|
||||
wavpack/wavpackproperties.h \
|
||||
mpeg/id3v1/id3v1genres.h \
|
||||
mpeg/id3v1/id3v1tag.h \
|
||||
mpeg/id3v2/id3v2extendedheader.h \
|
||||
mpeg/id3v2/id3v2footer.h \
|
||||
mpeg/id3v2/id3v2frame.h \
|
||||
mpeg/id3v2/id3v2framefactory.h \
|
||||
mpeg/id3v2/id3v2header.h \
|
||||
mpeg/id3v2/id3v2synchdata.h \
|
||||
mpeg/id3v2/id3v2tag.h \
|
||||
ogg/flac/oggflacfile.h \
|
||||
ogg/vorbis/vorbisfile.h \
|
||||
ogg/vorbis/vorbisproperties.h \
|
||||
mpeg/id3v2/frames/attachedpictureframe.h \
|
||||
mpeg/id3v2/frames/commentsframe.h \
|
||||
mpeg/id3v2/frames/generalencapsulatedobjectframe.h \
|
||||
mpeg/id3v2/frames/popularimeterframe.h \
|
||||
mpeg/id3v2/frames/relativevolumeframe.h \
|
||||
mpeg/id3v2/frames/textidentificationframe.h \
|
||||
mpeg/id3v2/frames/uniquefileidentifierframe.h \
|
||||
mpeg/id3v2/frames/unknownframe.h \
|
||||
mpeg/id3v2/frames/unsynchronizedlyricsframe.h \
|
||||
mpeg/id3v2/frames/urllinkframe.h \
|
||||
toolkit/tlist.tcc \
|
||||
toolkit/tmap.tcc
|
||||
SOURCES += ape/apefooter.cpp \
|
||||
ape/apeitem.cpp \
|
||||
ape/apetag.cpp \
|
||||
asf/asfattribute.cpp \
|
||||
asf/asffile.cpp \
|
||||
asf/asfproperties.cpp \
|
||||
asf/asftag.cpp \
|
||||
asf/asfpicture.cpp \
|
||||
audioproperties.cpp \
|
||||
fileref.cpp \
|
||||
flac/flacfile.cpp \
|
||||
flac/flacproperties.cpp \
|
||||
flac/flacpicture.cpp \
|
||||
mp4/mp4atom.cpp \
|
||||
mp4/mp4coverart.cpp \
|
||||
mp4/mp4file.cpp \
|
||||
mp4/mp4item.cpp \
|
||||
mp4/mp4properties.cpp \
|
||||
mp4/mp4tag.cpp \
|
||||
mpc/mpcfile.cpp \
|
||||
mpc/mpcproperties.cpp \
|
||||
mpeg/id3v1/id3v1genres.cpp \
|
||||
mpeg/id3v1/id3v1tag.cpp \
|
||||
mpeg/id3v2/frames/attachedpictureframe.cpp \
|
||||
mpeg/id3v2/frames/commentsframe.cpp \
|
||||
mpeg/id3v2/frames/generalencapsulatedobjectframe.cpp \
|
||||
mpeg/id3v2/frames/popularimeterframe.cpp \
|
||||
mpeg/id3v2/frames/privateframe.cpp \
|
||||
mpeg/id3v2/frames/relativevolumeframe.cpp \
|
||||
mpeg/id3v2/frames/textidentificationframe.cpp \
|
||||
mpeg/id3v2/frames/uniquefileidentifierframe.cpp \
|
||||
mpeg/id3v2/frames/unknownframe.cpp \
|
||||
mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp \
|
||||
mpeg/id3v2/frames/urllinkframe.cpp \
|
||||
mpeg/id3v2/id3v2extendedheader.cpp \
|
||||
mpeg/id3v2/id3v2footer.cpp \
|
||||
mpeg/id3v2/id3v2frame.cpp \
|
||||
mpeg/id3v2/id3v2framefactory.cpp \
|
||||
mpeg/id3v2/id3v2header.cpp \
|
||||
mpeg/id3v2/id3v2synchdata.cpp \
|
||||
mpeg/id3v2/id3v2tag.cpp \
|
||||
mpeg/mpegfile.cpp \
|
||||
mpeg/mpegheader.cpp \
|
||||
mpeg/mpegproperties.cpp \
|
||||
mpeg/xingheader.cpp \
|
||||
ogg/flac/oggflacfile.cpp \
|
||||
ogg/oggfile.cpp \
|
||||
ogg/oggpage.cpp \
|
||||
ogg/oggpageheader.cpp \
|
||||
ogg/speex/speexfile.cpp \
|
||||
ogg/speex/speexproperties.cpp \
|
||||
ogg/vorbis/vorbisfile.cpp \
|
||||
ogg/vorbis/vorbisproperties.cpp \
|
||||
ogg/xiphcomment.cpp \
|
||||
riff/aiff/aifffile.cpp \
|
||||
riff/aiff/aiffproperties.cpp \
|
||||
riff/rifffile.cpp \
|
||||
riff/wav/wavfile.cpp \
|
||||
riff/wav/wavproperties.cpp \
|
||||
tag.cpp \
|
||||
tagunion.cpp \
|
||||
toolkit/tbytevector.cpp \
|
||||
toolkit/tbytevectorlist.cpp \
|
||||
toolkit/tdebug.cpp \
|
||||
toolkit/tfile.cpp \
|
||||
toolkit/tstring.cpp \
|
||||
toolkit/tstringlist.cpp \
|
||||
toolkit/unicode.cpp \
|
||||
trueaudio/trueaudiofile.cpp \
|
||||
trueaudio/trueaudioproperties.cpp \
|
||||
wavpack/wavpackfile.cpp \
|
||||
wavpack/wavpackproperties.cpp
|
||||
|
||||
FRAMEWORK_HEADERS.version = Versions
|
||||
FRAMEWORK_HEADERS.files = \
|
||||
ape/apefooter.h \
|
||||
ape/apeitem.h \
|
||||
ape/apetag.h \
|
||||
asf/asfattribute.h \
|
||||
asf/asffile.h \
|
||||
asf/asfproperties.h \
|
||||
asf/asftag.h \
|
||||
asf/asfpicture.h \
|
||||
audioproperties.h \
|
||||
fileref.h \
|
||||
flac/flacfile.h \
|
||||
flac/flacproperties.h \
|
||||
mp4/mp4atom.h \
|
||||
mp4/mp4coverart.h \
|
||||
mp4/mp4file.h \
|
||||
mp4/mp4item.h \
|
||||
mp4/mp4properties.h \
|
||||
mp4/mp4tag.h \
|
||||
mpc/mpcfile.h \
|
||||
mpc/mpcproperties.h \
|
||||
mpeg/id3v1/id3v1genres.h \
|
||||
mpeg/id3v1/id3v1tag.h \
|
||||
mpeg/id3v2/frames/attachedpictureframe.h \
|
||||
mpeg/id3v2/frames/commentsframe.h \
|
||||
mpeg/id3v2/frames/generalencapsulatedobjectframe.h \
|
||||
mpeg/id3v2/frames/popularimeterframe.h \
|
||||
mpeg/id3v2/frames/privateframe.h \
|
||||
mpeg/id3v2/frames/relativevolumeframe.h \
|
||||
mpeg/id3v2/frames/textidentificationframe.h \
|
||||
mpeg/id3v2/frames/uniquefileidentifierframe.h \
|
||||
mpeg/id3v2/frames/unknownframe.h \
|
||||
mpeg/id3v2/frames/unsynchronizedlyricsframe.h \
|
||||
mpeg/id3v2/frames/urllinkframe.h \
|
||||
mpeg/id3v2/id3v2extendedheader.h \
|
||||
mpeg/id3v2/id3v2footer.h \
|
||||
mpeg/id3v2/id3v2frame.h \
|
||||
mpeg/id3v2/id3v2framefactory.h \
|
||||
mpeg/id3v2/id3v2header.h \
|
||||
mpeg/id3v2/id3v2synchdata.h \
|
||||
mpeg/id3v2/id3v2tag.h \
|
||||
mpeg/mpegfile.h \
|
||||
mpeg/mpegheader.h \
|
||||
mpeg/mpegproperties.h \
|
||||
mpeg/xingheader.h \
|
||||
ogg/flac/oggflacfile.h \
|
||||
ogg/oggfile.h \
|
||||
ogg/oggpage.h \
|
||||
ogg/oggpageheader.h \
|
||||
ogg/speex/speexfile.h \
|
||||
ogg/speex/speexproperties.h \
|
||||
ogg/vorbis/vorbisfile.h \
|
||||
ogg/vorbis/vorbisproperties.h \
|
||||
ogg/xiphcomment.h \
|
||||
riff/aiff/aifffile.h \
|
||||
riff/aiff/aiffproperties.h \
|
||||
riff/rifffile.h \
|
||||
riff/wav/wavfile.h \
|
||||
riff/wav/wavproperties.h \
|
||||
tag.h \
|
||||
taglib_export.h \
|
||||
tagunion.h \
|
||||
toolkit/taglib.h \
|
||||
toolkit/tbytevector.h \
|
||||
toolkit/tbytevectorlist.h \
|
||||
toolkit/tdebug.h \
|
||||
toolkit/tfile.h \
|
||||
toolkit/tlist.h \
|
||||
toolkit/tlist.tcc \
|
||||
toolkit/tmap.h \
|
||||
toolkit/tmap.tcc \
|
||||
toolkit/tstring.h \
|
||||
toolkit/tstringlist.h \
|
||||
toolkit/unicode.h \
|
||||
trueaudio/trueaudiofile.h \
|
||||
trueaudio/trueaudioproperties.h \
|
||||
wavpack/wavpackfile.h \
|
||||
wavpack/wavpackproperties.h
|
||||
|
||||
FRAMEWORK_HEADERS.path = Headers
|
||||
QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
|
||||
@ -1,4 +1,4 @@
|
||||
/* taglib_config.h. Generated by cmake from taglib_config.h.cmake */
|
||||
|
||||
#cmakedefine TAGLIB_WITH_ASF 1
|
||||
#cmakedefine TAGLIB_WITH_MP4 1
|
||||
#define TAGLIB_WITH_ASF 1
|
||||
#define TAGLIB_WITH_MP4 1
|
||||
|
||||
Reference in New Issue
Block a user