mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Compile time configuration of supported formats (#1262)
CMake options WITH_APE, WITH_ASF, WITH_DSF, WITH_MOD, WITH_MP4, WITH_RIFF, WITH_SHORTEN, WITH_TRUEAUDIO, WITH_VORBIS, by default, they are all ON.
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
#include "taglib_config.h"
|
||||
#include "tbytevector.h"
|
||||
#include "mpegfile.h"
|
||||
#include "id3v2tag.h"
|
||||
@ -32,7 +33,9 @@
|
||||
#include "id3v2header.h"
|
||||
#include "commentsframe.h"
|
||||
#include "id3v1tag.h"
|
||||
#ifdef TAGLIB_WITH_APE
|
||||
#include "apetag.h"
|
||||
#endif
|
||||
|
||||
using namespace TagLib;
|
||||
|
||||
@ -90,6 +93,7 @@ int main(int argc, char *argv[])
|
||||
else
|
||||
std::cout << "file does not have a valid id3v1 tag" << std::endl;
|
||||
|
||||
#ifdef TAGLIB_WITH_APE
|
||||
APE::Tag *ape = f.APETag();
|
||||
|
||||
std::cout << std::endl << "APE" << std::endl;
|
||||
@ -106,6 +110,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else
|
||||
std::cout << "file does not have a valid APE tag" << std::endl;
|
||||
#endif
|
||||
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user