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-09-24 15:50:01 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-24 16:48:50 +0300
commit8f51308dba0a5dc2f70c273e2de9fb7d102ed2f9 (patch)
tree6992629261aa4b67c27310559db7e5132e5e0039 /GNUmakefile
parent920173072ea2791bf16b801bc5a9849ae6d8a4af (diff)
Build: allow overriding DEPS_BUILD_DIR and DEPS_INSTALL_DIR for make deps.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c0ed52d6035..21183220b80 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -45,12 +45,18 @@ endif
# Dependencies DIR's
DEPS_SOURCE_DIR:=$(BLENDER_DIR)/build_files/build_environment
-DEPS_BUILD_DIR:=$(BUILD_DIR)/deps
-DEPS_INSTALL_DIR:=$(shell dirname "$(BLENDER_DIR)")/lib/$(OS_NCASE)
-ifneq ($(OS_NCASE),darwin)
- # Add processor type to directory name
- DEPS_INSTALL_DIR:=$(DEPS_INSTALL_DIR)_$(shell uname -p)
+ifndef DEPS_BUILD_DIR
+ DEPS_BUILD_DIR:=$(BUILD_DIR)/deps
+endif
+
+ifndef DEPS_INSTALL_DIR
+ DEPS_INSTALL_DIR:=$(shell dirname "$(BLENDER_DIR)")/lib/$(OS_NCASE)
+
+ ifneq ($(OS_NCASE),darwin)
+ # Add processor type to directory name
+ DEPS_INSTALL_DIR:=$(DEPS_INSTALL_DIR)_$(shell uname -p)
+ endif
endif
# Allow to use alternative binary (pypy3, etc)