mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
This doesn't change the behavior when `--jobs`/`-j` is specified as a command-line argument or in `SCONSFLAGS`. The SCons hack used to know if `num_jobs` was set by the user is derived from the MongoDB setup. We use `os.cpu_count()` for portability (available since Python 3.4). With 4 CPUs or less, we use the max. With more than 4 we use max - 1 to preserve some bandwidth for the user's other programs. Makefile: Dehardcode -j4, SCons defaults to max - 1 (cherry picked from commitscdcd473371andc2b35fb226)
48 lines
659 B
Makefile
48 lines
659 B
Makefile
GENERATE_BINDINGS = no
|
|
HEADERS = godot-headers
|
|
TARGET = debug
|
|
USE_CLANG = no
|
|
|
|
BASE = scons use_llvm=$(USE_CLANG) generate_bindings=$(GENERATE_BINDINGS) target=$(TARGET) headers=$(HEADERS)
|
|
LINUX = $(BASE) platform=linux
|
|
WINDOWS = $(BASE) platform=windows
|
|
OSX = $(BASE) platform=osx
|
|
|
|
|
|
all:
|
|
make linux
|
|
make windows
|
|
|
|
|
|
linux:
|
|
make linux32
|
|
make linux64
|
|
|
|
linux32: SConstruct
|
|
$(LINUX) bits=32
|
|
|
|
linux64: SConstruct
|
|
$(LINUX) bits=64
|
|
|
|
|
|
windows:
|
|
make windows32
|
|
make windows64
|
|
|
|
windows32: SConstruct
|
|
$(WINDOWS) bits=32
|
|
|
|
windows64: SConstruct
|
|
$(WINDOWS) bits=64
|
|
|
|
|
|
osx:
|
|
make osx32
|
|
make osx64
|
|
|
|
osx32: SConstruct
|
|
$(OSX) bits=32
|
|
|
|
osx64: SConstruct
|
|
$(OSX) bits=64
|