[godot] Strip Linux binaries

This commit is contained in:
Mario Zechner 2022-07-13 14:46:31 +02:00
parent 60674dc6cb
commit d7fa4121f6
2 changed files with 6 additions and 1 deletions

View File

@ -111,9 +111,11 @@ elif [ "$platform" = "android" ]; then
popd
elif [ "$platform" = "linux" ]; then
# --- Linix ---
# generates godot.x11.opt.64, godot.x11.opt.debug.64
# generates linux_x11_64_release, linux_x11_64_debug
scons platform=x11 tools=no target=release bits=64 custom_modules="../spine_godot" --jobs=$cpus
scons platform=x11 tools=no target=release_debug bits=64 custom_modules="../spine_godot" --jobs=$cpus
strip bin/godot.x11.opt.64
strip bin/godot.x11.opt.debug.64
cp bin/godot.x11.opt.64 bin/linux_x11_64_release
cp bin/godot.x11.opt.debug.64 bin/linux_x11_64_debug
else

View File

@ -61,6 +61,9 @@ else
target="$target vsproj=yes livepp=$LIVEPP"
fi
scons $target compiledb=yes custom_modules="../spine_godot" --jobs=$cpus
if [[ "$OSTYPE" == "linux-gnu"* ] && [ "$target" = "release_debug" ]]; then
strip godot.x11.opt.tools.64
fi
fi
popd