From b351c7ac5dd7e7fec441c056592ac09191dd2a7f Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 10 Mar 2023 23:11:25 +0100 Subject: [PATCH] docs: add psvita instructions to README --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 8797f054..e1fbcccf 100644 --- a/README.md +++ b/README.md @@ -270,6 +270,32 @@ make -j ./waf build ``` +## PlayStation Vita + +### Prerequisites + +1. Set up [VitaSDK](https://vitasdk.org/). +2. Install [vita-rtld](https://github.com/fgsfdsfgs/vita-rtld): + ``` + git clone https://github.com/fgsfdsfgs/vita-rtld.git && cd vita-rtld + mkdir build && cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + make -j2 install + ``` + +### Building with waf: +``` +./waf configure -T release --psvita +./waf build +``` + +### Building with CMake: +``` +mkdir build && cd build +cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="$VITASDK/share/vita.toolchain.cmake" -DCMAKE_PROJECT_HLSDK-PORTABLE_INCLUDE="$VITASDK/share/vrtld_shim.cmake" .. +make -j +``` + ## Other platforms Building on other architectures (e.g x86_64 or arm) and POSIX-compliant OSes (e.g. FreeBSD) is supported.