1 --- a/CMakeLists.txt 2024-03-01 08:08:05
2 +++ b/CMakeLists.txt 2024-04-24 15:45:30
5 if(C_MACRO_PREFIX_MAP AND CXX_MACRO_PREFIX_MAP)
7 - if(XCODE AND ${XCODE_VERSION} VERSION_LESS 12.0)
9 # Developers may have say LLVM Clang-10.0.1 toolchain (which supports the flag)
10 # with Xcode-11 (the Clang of which doesn't support the flag).
12 --- a/build_files/cmake/platform/platform_apple.cmake 2024-02-22 15:31:36
13 +++ b/build_files/cmake/platform/platform_apple.cmake 2024-04-24 16:06:13
17 if(NOT EXISTS "${LIBDIR}/.git")
18 - message(FATAL_ERROR "Mac OSX requires pre-compiled libs at: '${LIBDIR}'")
21 message(STATUS "Using pre-compiled LIBDIR: ${LIBDIR}")
23 find_library(_sndfile_VORBIS_LIBRARY NAMES vorbis HINTS ${LIBDIR}/ffmpeg/lib)
24 find_library(_sndfile_VORBISENC_LIBRARY NAMES vorbisenc HINTS ${LIBDIR}/ffmpeg/lib)
25 list(APPEND LIBSNDFILE_LIBRARIES
26 - ${_sndfile_FLAC_LIBRARY}
27 - ${_sndfile_OGG_LIBRARY}
28 - ${_sndfile_VORBIS_LIBRARY}
29 - ${_sndfile_VORBISENC_LIBRARY}
32 print_found_status("SndFile libraries" "${LIBSNDFILE_LIBRARIES}")
34 set(FFMPEG_ROOT_DIR ${LIBDIR}/ffmpeg)
35 set(FFMPEG_FIND_COMPONENTS
36 avcodec avdevice avformat avutil
37 - mp3lame ogg opus swresample swscale
38 - theora theoradec theoraenc vorbis vorbisenc
39 - vorbisfile vpx x264)
41 if(EXISTS ${LIBDIR}/ffmpeg/lib/libaom.a)
42 list(APPEND FFMPEG_FIND_COMPONENTS aom)
45 add_bundled_libraries(boost/lib)
47 if(WITH_INTERNATIONAL OR WITH_CODEC_FFMPEG)
48 - string(APPEND PLATFORM_LINKFLAGS " -liconv") # boost_locale and ffmpeg needs it !
54 # CMake FindOpenMP doesn't know about AppleClang before 3.12, so provide custom flags.
56 - if(CMAKE_C_COMPILER_ID MATCHES "Clang")
58 # Use OpenMP from our precompiled libraries.
59 message(STATUS "Using ${LIBDIR}/openmp for OpenMP")
62 " -Wl,-unexported_symbols_list,'${PLATFORM_SYMBOLS_MAP}'"
65 -if(${XCODE_VERSION} VERSION_GREATER_EQUAL 15.0)
67 if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "x86_64")
68 # Silence "no platform load command found in <static library>, assuming: macOS".
69 string(APPEND PLATFORM_LINKFLAGS " -Wl,-ld_classic")