2021-04-05 15:23:46 +00:00
|
|
|
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/build_files/cmake/platform/platform_apple.cmake
|
|
|
|
+++ b/build_files/cmake/platform/platform_apple.cmake
|
2021-04-05 15:23:46 +00:00
|
|
|
@@ -77,7 +77,6 @@ else()
|
2020-04-24 23:36:52 +00:00
|
|
|
message(STATUS "Using pre-compiled LIBDIR: ${LIBDIR}")
|
|
|
|
endif()
|
|
|
|
if(NOT EXISTS "${LIBDIR}/")
|
|
|
|
- message(FATAL_ERROR "Mac OSX requires pre-compiled libs at: '${LIBDIR}'")
|
|
|
|
endif()
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
# Prefer lib directory paths
|
2021-06-04 09:07:49 +00:00
|
|
|
@@ -114,10 +113,6 @@ if(WITH_CODEC_SNDFILE)
|
2020-11-30 08:33:03 +00:00
|
|
|
find_library(_sndfile_VORBIS_LIBRARY NAMES vorbis HINTS ${LIBDIR}/ffmpeg/lib)
|
|
|
|
find_library(_sndfile_VORBISENC_LIBRARY NAMES vorbisenc HINTS ${LIBDIR}/ffmpeg/lib)
|
|
|
|
list(APPEND LIBSNDFILE_LIBRARIES
|
|
|
|
- ${_sndfile_FLAC_LIBRARY}
|
|
|
|
- ${_sndfile_OGG_LIBRARY}
|
|
|
|
- ${_sndfile_VORBIS_LIBRARY}
|
|
|
|
- ${_sndfile_VORBISENC_LIBRARY}
|
|
|
|
)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
print_found_status("SndFile libraries" "${LIBSNDFILE_LIBRARIES}")
|
2021-06-04 09:07:49 +00:00
|
|
|
@@ -134,7 +129,7 @@ if(WITH_PYTHON)
|
2020-04-24 23:36:52 +00:00
|
|
|
# normally cached but not since we include them with blender
|
2021-06-04 09:07:49 +00:00
|
|
|
set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}")
|
|
|
|
set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}")
|
|
|
|
- set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.a)
|
|
|
|
+ set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.dylib)
|
2020-04-24 23:36:52 +00:00
|
|
|
set(PYTHON_LIBPATH "${LIBDIR}/python/lib/python${PYTHON_VERSION}")
|
|
|
|
# set(PYTHON_LINKFLAGS "-u _PyMac_Error") # won't build with this enabled
|
|
|
|
else()
|
2021-06-04 09:07:49 +00:00
|
|
|
@@ -175,9 +170,7 @@ endif()
|
2020-11-30 08:33:03 +00:00
|
|
|
if(WITH_CODEC_FFMPEG)
|
|
|
|
set(FFMPEG_FIND_COMPONENTS
|
2020-04-24 23:36:52 +00:00
|
|
|
avcodec avdevice avformat avutil
|
2020-11-30 08:33:03 +00:00
|
|
|
- mp3lame ogg opus swresample swscale
|
|
|
|
- theora theoradec theoraenc vorbis vorbisenc
|
|
|
|
- vorbisfile vpx x264 xvidcore)
|
|
|
|
+ swresample swscale)
|
|
|
|
find_package(FFmpeg)
|
2020-04-24 23:36:52 +00:00
|
|
|
endif()
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
@@ -275,7 +268,6 @@ if(WITH_BOOST)
|
2020-04-24 23:36:52 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_INTERNATIONAL OR WITH_CODEC_FFMPEG)
|
2021-04-05 15:23:46 +00:00
|
|
|
- string(APPEND PLATFORM_LINKFLAGS " -liconv") # boost_locale and ffmpeg needs it !
|
2020-04-24 23:36:52 +00:00
|
|
|
endif()
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
if(WITH_PUGIXML)
|
2021-06-04 09:07:49 +00:00
|
|
|
@@ -476,7 +468,7 @@ else()
|
2020-11-30 08:33:03 +00:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mdynamic-no-pic")
|
2020-04-24 23:36:52 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
-if(${XCODE_VERSION} VERSION_EQUAL 5 OR ${XCODE_VERSION} VERSION_GREATER 5)
|
|
|
|
+if(FALSE)
|
|
|
|
# Xcode 5 is always using CLANG, which has too low template depth of 128 for libmv
|
2021-04-05 15:23:46 +00:00
|
|
|
string(APPEND CMAKE_CXX_FLAGS " -ftemplate-depth=1024")
|
2020-04-24 23:36:52 +00:00
|
|
|
endif()
|