first commit

This commit is contained in:
2026-04-20 20:25:10 +04:00
commit 1fe2a72ef1
1926 changed files with 156731 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Build script for mpq_extractor GDExtension on Linux/macOS
set -e
BUILD_TYPE="${1:-Release}"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
BUILD_DIR="$SCRIPT_DIR/build"
echo "[mpq_extractor] BUILD_TYPE=$BUILD_TYPE"
# Init submodules if needed
if [ ! -f "$SCRIPT_DIR/../thirdparty/godot-cpp/CMakeLists.txt" ]; then
echo "[mpq_extractor] Initializing submodules..."
cd "$SCRIPT_DIR/.."
git submodule update --init --recursive
fi
# Configure
cmake -S "$SCRIPT_DIR" -B "$BUILD_DIR" \
-DCMAKE_BUILD_TYPE="$BUILD_TYPE"
# Build
cmake --build "$BUILD_DIR" --config "$BUILD_TYPE" --parallel "$(nproc 2>/dev/null || sysctl -n hw.logicalcpu)"
echo ""
echo "[mpq_extractor] Done. Library is in:"
echo " $SCRIPT_DIR/../addons/mpq_extractor/bin/"