mirror of
https://github.com/taglib/taglib.git
synced 2025-07-23 07:24:30 -04:00
Merge branch 'master' into merge-master
Conflicts: ConfigureChecks.cmake config-taglib.h.cmake taglib/CMakeLists.txt taglib/ape/apefooter.cpp taglib/ape/apeitem.cpp taglib/ape/apeproperties.cpp taglib/asf/asfattribute.cpp taglib/asf/asffile.cpp taglib/asf/asfpicture.cpp taglib/fileref.cpp taglib/flac/flacfile.cpp taglib/flac/flacpicture.cpp taglib/flac/flacproperties.cpp taglib/mp4/mp4atom.cpp taglib/mp4/mp4coverart.cpp taglib/mp4/mp4item.cpp taglib/mp4/mp4properties.cpp taglib/mp4/mp4tag.cpp taglib/mpc/mpcproperties.cpp taglib/mpeg/id3v2/frames/popularimeterframe.cpp taglib/mpeg/id3v2/frames/relativevolumeframe.cpp taglib/mpeg/id3v2/id3v2frame.cpp taglib/mpeg/id3v2/id3v2synchdata.cpp taglib/mpeg/xingheader.cpp taglib/ogg/flac/oggflacfile.cpp taglib/ogg/oggpageheader.cpp taglib/ogg/opus/opusproperties.cpp taglib/ogg/speex/speexproperties.cpp taglib/ogg/vorbis/vorbisproperties.cpp taglib/ogg/xiphcomment.cpp taglib/riff/aiff/aiffproperties.cpp taglib/riff/wav/infotag.cpp taglib/riff/wav/wavproperties.cpp taglib/toolkit/taglib.h taglib/toolkit/tbytevector.cpp taglib/toolkit/tbytevector.h taglib/toolkit/tfilestream.cpp taglib/toolkit/tiostream.h taglib/toolkit/tstring.cpp taglib/toolkit/tstringhandler.cpp taglib/trueaudio/trueaudioproperties.cpp taglib/wavpack/wavpackproperties.cpp
This commit is contained in:
@ -8,13 +8,18 @@ include(CheckCXXSourceCompiles)
|
||||
include(TestBigEndian)
|
||||
|
||||
# Determine the CPU byte order.
|
||||
|
||||
test_big_endian(TAGLIB_BIG_ENDIAN)
|
||||
|
||||
if(NOT TAGLIB_BIG_ENDIAN)
|
||||
set(TAGLIB_LITTLE_ENDIAN 1)
|
||||
endif()
|
||||
|
||||
# Determine the size of integral types.
|
||||
check_type_size("short" SIZEOF_SHORT)
|
||||
check_type_size("int" SIZEOF_INT)
|
||||
check_type_size("long long" SIZEOF_LONGLONG)
|
||||
check_type_size("wchar_t" SIZEOF_WCHAR_T)
|
||||
|
||||
# Determine whether or not your compiler supports move semantics.
|
||||
check_cxx_source_compiles("
|
||||
#ifdef __clang__
|
||||
@ -25,6 +30,15 @@ check_cxx_source_compiles("
|
||||
int main() { return func(std::move(1)); }
|
||||
" SUPPORT_MOVE_SEMANTICS)
|
||||
|
||||
# Determine if your compiler supports std::wstring.
|
||||
check_cxx_source_compiles("
|
||||
#include <string>
|
||||
int main() {
|
||||
std::wstring x(L\"ABC\");
|
||||
return 0;
|
||||
}
|
||||
" HAVE_STD_WSTRING)
|
||||
|
||||
# Determine which kind of byte swap functions your compiler supports.
|
||||
|
||||
# GCC's __builtin_bswap* should be checked individually
|
||||
@ -179,13 +193,16 @@ if(NOT HAVE_SNPRINTF)
|
||||
" HAVE_SPRINTF_S)
|
||||
endif()
|
||||
|
||||
# Determine whether your compiler supports codecvt header.
|
||||
# Determine whether your compiler supports codecvt.
|
||||
check_cxx_source_compiles("
|
||||
#include <codecvt>
|
||||
int main() { std::codecvt_utf8_utf16<wchar_t> x; return 0; }
|
||||
" HAVE_CODECVT)
|
||||
#include <codecvt>
|
||||
int main() {
|
||||
std::codecvt_utf8_utf16<wchar_t> x;
|
||||
return 0;
|
||||
}
|
||||
" HAVE_STD_CODECVT)
|
||||
|
||||
# check for libz using the cmake supplied FindZLIB.cmake
|
||||
# Check for libz using the cmake supplied FindZLIB.cmake
|
||||
find_package(ZLIB)
|
||||
if(ZLIB_FOUND)
|
||||
set(HAVE_ZLIB 1)
|
||||
@ -193,10 +210,10 @@ else()
|
||||
set(HAVE_ZLIB 0)
|
||||
endif()
|
||||
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
||||
find_package(CppUnit)
|
||||
if(NOT CppUnit_FOUND AND BUILD_TESTS)
|
||||
message(STATUS "CppUnit not found, disabling tests.")
|
||||
set(BUILD_TESTS OFF)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user