完善客户端功能并同步差距文档
This commit is contained in:
@@ -5,6 +5,7 @@ cd "$(dirname "$0")"
|
||||
|
||||
CONFIG="${1:-Debug}" # Debug | Release
|
||||
JOBS="${JOBS:-$(sysctl -n hw.ncpu)}"
|
||||
MAC_ARCHES="${MT_MAC_ARCHES:-$(uname -m)}" # arm64, x86_64, or universal
|
||||
|
||||
# godot-cpp + the vendored deps (zstd, libsodium-cmake and its nested libsodium)
|
||||
# are submodules — recurse. miniLZO is vendored in-tree, nothing to fetch.
|
||||
@@ -15,7 +16,10 @@ if [ ! -f extension/godot-cpp/CMakeLists.txt ] \
|
||||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
cmake -S . -B build -DCMAKE_BUILD_TYPE="$CONFIG"
|
||||
if [ "$MAC_ARCHES" = universal ]; then
|
||||
MAC_ARCHES="arm64;x86_64"
|
||||
fi
|
||||
cmake -S . -B build -DCMAKE_BUILD_TYPE="$CONFIG" -DCMAKE_OSX_ARCHITECTURES="$MAC_ARCHES"
|
||||
cmake --build build --config "$CONFIG" -j "$JOBS"
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user