Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-29 17:42:32 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-29 17:42:32 +0300
commitfd2615fd9b5ac17a006cb3836ebd58e538517507 (patch)
treea12938bf7f09ef36998b199a09efac3a344115c0 /build_files/buildbot/config
parent0d085790d13b2c261210addb12fabc1fea82bdef (diff)
parentddf8c49736864fe89348c002fecaacdcb1c28c8e (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'build_files/buildbot/config')
-rw-r--r--build_files/buildbot/config/blender_linux.cmake30
1 files changed, 28 insertions, 2 deletions
diff --git a/build_files/buildbot/config/blender_linux.cmake b/build_files/buildbot/config/blender_linux.cmake
index 9625fabec30..0500bfa7f99 100644
--- a/build_files/buildbot/config/blender_linux.cmake
+++ b/build_files/buildbot/config/blender_linux.cmake
@@ -5,7 +5,15 @@ include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_full.cmake")
# Detect which libc we'll be linking against.
# Some of the paths will depend on this
-if(EXISTS "/lib/x86_64-linux-gnu/libc-2.19.so")
+if(EXISTS "/lib/x86_64-linux-gnu/libc-2.24.so")
+ message(STATUS "Building in GLibc-2.24 environment")
+ set(GLIBC "2.24")
+ set(MULTILIB "/x86_64-linux-gnu")
+elseif(EXISTS "/lib/i386-linux-gnu//libc-2.24.so")
+ message(STATUS "Building in GLibc-2.24 environment")
+ set(GLIBC "2.24")
+ set(MULTILIB "/i386-linux-gnu")
+elseif(EXISTS "/lib/x86_64-linux-gnu/libc-2.19.so")
message(STATUS "Building in GLibc-2.19 environment")
set(GLIBC "2.19")
set(MULTILIB "/x86_64-linux-gnu")
@@ -40,7 +48,10 @@ set(WITH_PYTHON_INSTALL_NUMPY ON CACHE BOOL "" FORCE)
set(WITH_PYTHON_INSTALL_REQUESTS ON CACHE BOOL "" FORCE)
# ######## Release environment specific settings ########
-# All the hardcoded libraru paths and such
+
+if (NOT ${GLIBC} STREQUAL "2.24")
+
+# All the hardcoded library paths and such
# LLVM libraries
set(LLVM_VERSION "3.4" CACHE STRING "" FORCE)
@@ -147,5 +158,20 @@ set(BLOSC_LIBRARY
CACHE BOOL "" FORCE
)
+else()
+
+# Set path to precompiled libraries.
+set(LIBDIR_NAME ${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_PROCESSOR})
+string(TOLOWER ${LIBDIR_NAME} LIBDIR_NAME)
+set(LIBDIR "/opt/blender-deps/${LIBDIR_NAME}")
+
+# TODO(sergey): Remove once Python is oficially bumped to 3.7.
+set(PYTHON_VERSION 3.7)
+
+# Ensure specific configuration of various libraries.
+set(Boost_USE_STATIC_LIBS ON CACHE BOOL "" FORCE)
+
+endif()
+
# Additional linking libraries
set(CMAKE_EXE_LINKER_FLAGS "-lrt -static-libstdc++" CACHE STRING "" FORCE)