This commit is contained in:
Mario Zechner 2022-07-01 10:34:38 +02:00
commit 2d48d986b5
5 changed files with 19 additions and 27 deletions

View File

@ -26,7 +26,15 @@ fi
platform=${1%/} platform=${1%/}
pushd ../godot pushd ../godot
if [ "$platform" = "macos" ]; then if [ "$platform" = "windows" ]; then
# --- Windows ---
#generates windows_64_debug.exe and windows_64_release.exe
scons platform=windows tools=no target=release custom_modules="../spine_godot" -j8
scons platform=windows tools=no target=release_debug custom_modules="../spine_godot" -j8
cp bin/godot.windows.opt.64.exe bin/windows_64_release.exe
cp bin/godot.windows.opt.debug.64.exe bin/windows_64_debug.exe
elif [ "$platform" = "macos" ]; then
# --- macOS --- # --- macOS ---
# generates osx.zip # generates osx.zip

View File

@ -1 +0,0 @@
cd godot & scons target=debug custom_modules=..\spine_godot vsproj=yes livepp=%LIVEPP% --jobs=16 & cd ..

View File

@ -46,6 +46,9 @@ if [ `uname` == 'Darwin' ] && [ $dev = "false" ]; then
chmod +x Godot.app/Contents/MacOS/Godot chmod +x Godot.app/Contents/MacOS/Godot
popd popd
else else
if [ "$OSTYPE" = "msys" ]; then
target="$target vsproj=yes livepp=$LIVEPP"
fi
scons $target compiledb=yes custom_modules="../spine_godot" -j16 scons $target compiledb=yes custom_modules="../spine_godot" -j16
fi fi
popd popd

View File

@ -1,25 +0,0 @@
@echo off
if [%1]==[] goto usage
set branch=%1
rmdir godot /s /q
git clone --depth 1 https://github.com/godotengine/godot.git -b %branch% || goto error
xcopy /E /I .idea godot\.idea || goto error
copy custom.py godot || goto error
rmdir spine_godot\spine-cpp /s /q
xcopy /E /I ..\spine-cpp\spine-cpp spine_godot\spine-cpp || goto error
cd godot & git apply ../livepp.patch & git apply ../livepp-v4.patch & cd ..
build.bat || goto error
exit 0
:usage
@echo.
@echo Usage^: setup.bat ^<godot_branch_or_tag^>
@echo.
@echo e.g.:
@echo setup.bat 3.4.4-stable
@echo setup.bat master
exit 1
:error
@echo Couldn^'t setup Godot

View File

@ -25,6 +25,13 @@ if [ $dev = "true" ]; then
cp build/custom.py godot cp build/custom.py godot
rm -rf example/.import rm -rf example/.import
rm -rf example/.godot rm -rf example/.godot
if [ "$OSTYPE" = "msys" ]; then
pushd godot
git apply ../build/livepp.patch
git apply ../build/livepp-v4.patch
popd
fi
fi fi
cp -r ../spine-cpp/spine-cpp spine_godot cp -r ../spine-cpp/spine-cpp spine_godot
popd popd