Build: update for new macOS libraries.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 10 Sep 2018 20:24:37 +0000 (22:24 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 11 Sep 2018 06:02:41 +0000 (08:02 +0200)
Run "make update", or "svn update" in lib/darwin to get the matching
precompiled libraries.

build_files/cmake/platform/platform_apple.cmake

index b9c898e60d8ffbb491165127a3c15fcc7459d55a..2fc7c2cdd9d389d2b40f1ad928853ea30639d68c 100644 (file)
@@ -85,8 +85,8 @@ if(WITH_CODEC_SNDFILE)
 endif()
 
 if(WITH_PYTHON)
-       # we use precompiled libraries for py 3.5 and up by default
-       set(PYTHON_VERSION 3.6)
+       # we use precompiled libraries for py 3.7 and up by default
+       set(PYTHON_VERSION 3.7)
        if(NOT WITH_PYTHON_MODULE AND NOT WITH_PYTHON_FRAMEWORK)
                # normally cached but not since we include them with blender
                set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}m")
@@ -142,13 +142,12 @@ if(WITH_IMAGE_OPENEXR)
        set(OPENEXR ${LIBDIR}/openexr)
        set(OPENEXR_INCLUDE_DIR ${OPENEXR}/include)
        set(OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR} ${OPENEXR}/include/OpenEXR)
-       set(OPENEXR_POSTFIX -2_2)
        set(OPENEXR_LIBRARIES
-               Iex${OPENEXR_POSTFIX}
+               Iex
                Half
-               IlmImf${OPENEXR_POSTFIX}
-               Imath${OPENEXR_POSTFIX}
-               IlmThread${OPENEXR_POSTFIX})
+               IlmImf
+               Imath
+               IlmThread)
        set(OPENEXR_LIBPATH ${OPENEXR}/lib)
 endif()
 
@@ -157,12 +156,10 @@ if(WITH_CODEC_FFMPEG)
        set(FFMPEG_INCLUDE_DIRS ${FFMPEG}/include)
        set(FFMPEG_LIBRARIES
                avcodec avdevice avformat avutil
-               mp3lame swscale x264 xvidcore theora theoradec theoraenc vorbis vorbisenc vorbisfile ogg
-               )
-             # commenting out until libs are updated on svn. schroedinger and orc
-             # will be removed then
-             # set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} vpx webp swresample)
-       set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} schroedinger orc vpx webp swresample)
+               mp3lame swscale x264 xvidcore
+               theora theoradec theoraenc
+               vorbis vorbisenc vorbisfile ogg
+               vpx swresample)
        set(FFMPEG_LIBPATH ${FFMPEG}/lib)
 endif()
 
@@ -171,9 +168,7 @@ if(WITH_IMAGE_OPENJPEG OR WITH_CODEC_FFMPEG)
        set(OPENJPEG ${LIBDIR}/openjpeg)
        set(WITH_SYSTEM_OPENJPEG ON)
        set(OPENJPEG_INCLUDE_DIRS ${OPENJPEG}/include)
-       # same as with ffmpeg libs, update when svn are updated
-       #set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjp2.a)
-       set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjpeg.a)
+       set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjp2.a)
 endif()
 
 find_library(SYSTEMSTUBS_LIBRARY
@@ -221,17 +216,14 @@ if(WITH_OPENCOLLADA)
                -lOpenCOLLADAStreamWriter
                -lMathMLSolver
                -lGeneratedSaxParser
-               -lxml2 -lbuffer -lftoa
+               -lbuffer -lftoa -lUTF
+               ${OPENCOLLADA_LIBPATH}/libxml2.a
        )
-       # Use UTF functions from collada if LLVM is not enabled
-       if(NOT WITH_LLVM)
-               list(APPEND OPENCOLLADA_LIBRARIES -lUTF)
-       endif()
-       # pcre is bundled with openCollada
+       # PCRE is bundled with openCollada
        #set(PCRE ${LIBDIR}/pcre)
        #set(PCRE_LIBPATH ${PCRE}/lib)
        set(PCRE_LIBRARIES pcre)
-       #libxml2 is used
+       # libxml2 is used
        #set(EXPAT ${LIBDIR}/expat)
        #set(EXPAT_LIBPATH ${EXPAT}/lib)
        set(EXPAT_LIB)
@@ -301,7 +293,6 @@ if(WITH_OPENIMAGEIO)
                ${OPENJPEG_LIBRARIES}
                ${ZLIB_LIBRARIES}
        )
-       set(OPENIMAGEIO_LIBRARIES ${OPENIMAGEIO_LIBRARIES} ${LIBDIR}/ffmpeg/lib/libwebp.a)
        set(OPENIMAGEIO_LIBPATH
                ${OPENIMAGEIO}/lib
                ${JPEG_LIBPATH}