forked from bartvdbraak/blender
GNUmakefile: change message to reference "bpy" when building as a module
This commit is contained in:
parent
3a01c23a84
commit
ce5ad66330
12
GNUmakefile
12
GNUmakefile
@ -162,6 +162,7 @@ CPU:=$(shell uname -m)
|
|||||||
# Source and Build DIR's
|
# Source and Build DIR's
|
||||||
BLENDER_DIR:=$(shell pwd -P)
|
BLENDER_DIR:=$(shell pwd -P)
|
||||||
BUILD_TYPE:=Release
|
BUILD_TYPE:=Release
|
||||||
|
BLENDER_IS_PYTHON_MODULE:=
|
||||||
|
|
||||||
# CMake arguments, assigned to local variable to make it mutable.
|
# CMake arguments, assigned to local variable to make it mutable.
|
||||||
CMAKE_CONFIG_ARGS := $(BUILD_CMAKE_ARGS)
|
CMAKE_CONFIG_ARGS := $(BUILD_CMAKE_ARGS)
|
||||||
@ -259,6 +260,7 @@ endif
|
|||||||
ifneq "$(findstring bpy, $(MAKECMDGOALS))" ""
|
ifneq "$(findstring bpy, $(MAKECMDGOALS))" ""
|
||||||
BUILD_DIR:=$(BUILD_DIR)_bpy
|
BUILD_DIR:=$(BUILD_DIR)_bpy
|
||||||
CMAKE_CONFIG_ARGS:=-C"$(BLENDER_DIR)/build_files/cmake/config/bpy_module.cmake" $(CMAKE_CONFIG_ARGS)
|
CMAKE_CONFIG_ARGS:=-C"$(BLENDER_DIR)/build_files/cmake/config/bpy_module.cmake" $(CMAKE_CONFIG_ARGS)
|
||||||
|
BLENDER_IS_PYTHON_MODULE:=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring developer, $(MAKECMDGOALS))" ""
|
ifneq "$(findstring developer, $(MAKECMDGOALS))" ""
|
||||||
@ -297,8 +299,10 @@ endif
|
|||||||
# use the default build path can still use utility helpers.
|
# use the default build path can still use utility helpers.
|
||||||
ifeq ($(OS), Darwin)
|
ifeq ($(OS), Darwin)
|
||||||
BLENDER_BIN?="$(BUILD_DIR)/bin/Blender.app/Contents/MacOS/Blender"
|
BLENDER_BIN?="$(BUILD_DIR)/bin/Blender.app/Contents/MacOS/Blender"
|
||||||
|
BLENDER_BIN_DIR?="$(BUILD_DIR)/bin/Blender.app/Contents/MacOS/Blender"
|
||||||
else
|
else
|
||||||
BLENDER_BIN?="$(BUILD_DIR)/bin/blender"
|
BLENDER_BIN?="$(BUILD_DIR)/bin/blender"
|
||||||
|
BLENDER_BIN_DIR?="$(BUILD_DIR)/bin"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -355,8 +359,12 @@ all: .FORCE
|
|||||||
@echo Building Blender ...
|
@echo Building Blender ...
|
||||||
$(BUILD_COMMAND) -C "$(BUILD_DIR)" -j $(NPROCS) install
|
$(BUILD_COMMAND) -C "$(BUILD_DIR)" -j $(NPROCS) install
|
||||||
@echo
|
@echo
|
||||||
@echo edit build configuration with: "$(BUILD_DIR)/CMakeCache.txt" run make again to rebuild.
|
@echo Edit build configuration with: \"$(BUILD_DIR)/CMakeCache.txt\" run make again to rebuild.
|
||||||
@echo Blender successfully built, run from: $(BLENDER_BIN)
|
@if test "$(BLENDER_IS_PYTHON_MODULE)" == ""; then \
|
||||||
|
echo Blender successfully built, run from: $(BLENDER_BIN); \
|
||||||
|
else \
|
||||||
|
echo Blender successfully built as a Python module, \"bpy\" can be imported from: $(BLENDER_BIN_DIR); \
|
||||||
|
fi
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
debug: all
|
debug: all
|
||||||
|
Loading…
Reference in New Issue
Block a user