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:
Urs Fleisch
2024-12-28 10:20:20 +01:00
parent 648f5e5882
commit 9940cba549
20 changed files with 1090 additions and 269 deletions

View File

@ -22,6 +22,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iostream>
#include <cstdlib>
@ -32,7 +36,9 @@
#include "id3v2header.h"
#include "commentsframe.h"
#include "id3v1tag.h"
#ifdef WITH_APE
#include "apetag.h"
#endif
using namespace TagLib;
@ -90,6 +96,7 @@ int main(int argc, char *argv[])
else
std::cout << "file does not have a valid id3v1 tag" << std::endl;
#ifdef WITH_APE
APE::Tag *ape = f.APETag();
std::cout << std::endl << "APE" << std::endl;
@ -106,6 +113,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;
}