diff --git a/doc/install.html b/doc/install.html index 8210f476..c3b951e4 100644 --- a/doc/install.html +++ b/doc/install.html @@ -181,6 +181,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 @@ -577,8 +583,7 @@ make DEFAULT_CC=clang CROSS="$(dirname $ICC)/" \

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 @@ -599,55 +604,58 @@ 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
PS564ps5build
PS Vita32psvitabuild
Xbox 36032xedkbuild
Xbox One64xb1build
Nintendo Switch NX3232nxbuild
Nintendo Switch NX6464nxbuild

-To cross-compile for PS5 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: +Please check out the comments in the corresponding *.bat +file for more options.

-
-cd src
-ps5build
-
-

-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: -

-
-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
-
-

-To cross-compile for Xbox One 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: -

-
-cd src
-xb1build
-

Embedding LuaJIT

diff --git a/doc/luajit.html b/doc/luajit.html index 06774ddf..03a29528 100644 --- a/doc/luajit.html +++ b/doc/luajit.html @@ -162,7 +162,7 @@ LuaJIT is Copyright © 2005-2022 Mike Pall, released under the EmbeddedAndroidiOS - +
PS3PS4PS5PS VitaXbox 360Xbox One
PS3PS4
PS5
PS VitaXbox 360Xbox OneNintendo
Switch
GCCClang
LLVM
MSVC