From fd86c924b9810cfb3034b03d08a2b77e243639c3 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 8 Jun 2022 14:55:59 +0200 Subject: [PATCH] Update console build instructions. --- doc/install.html | 64 +++++++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/doc/install.html b/doc/install.html index bf40bb2d..19fab1b8 100644 --- a/doc/install.html +++ b/doc/install.html @@ -177,6 +177,12 @@ LuaJIT currently builds out-of-the box on most systems: Xbox One SDK (DURANGO) v2.1 – + +Nintendo Switch +  +NintendoSDK + NX Addon +v2.1 – +

The codebase has compatibility defines for some more systems, but @@ -519,8 +525,7 @@ Please use the LuaJIT 2.1 branch to compile for

Cross-compiling for consoles

Building LuaJIT for consoles requires both a supported host compiler -(x86 or x64) and a cross-compiler (to PPC or ARM) from the official -console SDK. +(x86 or x64) and a cross-compiler from the official console SDK.

Due to restrictions on consoles, the JIT compiler is disabled and only @@ -541,35 +546,38 @@ To cross-compile for PS3 from a Linux host (requires make HOST_CC="gcc -m32" CROSS=ppu-lv2-

-To cross-compile for PS4 from a Windows host, -open a "Visual Studio .NET Command Prompt" (64 bit host compiler), -cd to the directory where you've unpacked the sources and -run the following commands: +To cross-compile for the other consoles from a Windows host, open a +"Native Tools Command Prompt for VS". You need to choose either the 32 +or the 64 bit version of the host compiler to match the target. +Then cd to the src directory below where you've +unpacked the sources and run the build command given in the table:

-
-cd src
-ps4build
-
+ + + + + + + + + + + + + + + + + + + + + +
ConsoleBitsBuild Command
PS464ps4build
PS Vita32psvitabuild
Xbox 36032xedkbuild

-To cross-compile for PS Vita from a Windows host, -open a "Visual Studio .NET Command Prompt" (32 bit host compiler), -cd to the directory where you've unpacked the sources and -run the following commands: +Please check out the comments in the corresponding *.bat +file for more options.

-
-cd src
-psvitabuild
-
-

-To cross-compile for Xbox 360 from a Windows host, -open a "Visual Studio .NET Command Prompt" (32 bit host compiler), -cd to the directory where you've unpacked the sources and run -the following commands: -

-
-cd src
-xedkbuild
-

Embedding LuaJIT