mirror of
https://github.com/ps4-switch-emu/ps4-switch-emu.git
synced 2026-10-17 16:02:12 +02:00
Builds the emulator core (submodule eden/) for jailbroken PS4 consoles and packages it as a .pkg. DolphinPS4 (vendor/DolphinPS4) provides the PS4 runtime and the Vulkan driver patch.
17 lines
690 B
Bash
Executable File
17 lines
690 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Builds the PS4 sysroot into /build/sysroot (run inside the container: docker/run.sh scripts/setup-toolchain.sh):
|
|
# - libc-overlay headers + libc++/libc++abi 21 for the PS4 target
|
|
# - DolphinPS4's runtime archive (malloc replacement)
|
|
# Reuses DolphinPS4's toolchain scripts unchanged; they read PSB/PS4_SYSROOT/OPENORBIS from the
|
|
# environment set by the Dockerfile.
|
|
set -euo pipefail
|
|
DPS4=/work/vendor/DolphinPS4
|
|
|
|
if [ -f "$PS4_SYSROOT/lib/libc++.a" ] && [ "${1:-}" != force ]; then
|
|
echo "libc++ already built in $PS4_SYSROOT (pass 'force' to rebuild)"
|
|
else
|
|
"$DPS4/toolchain/build-libcxx.sh"
|
|
fi
|
|
"$DPS4/toolchain/build-runtime.sh"
|
|
ls -la "$PS4_SYSROOT/lib"
|