diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/install.html | 104 | ||||
-rw-r--r-- | doc/luajit.html | 2 |
2 files changed, 57 insertions, 49 deletions
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: | |||
181 | <td class="compatx">Xbox One SDK (DURANGO)</td> | 181 | <td class="compatx">Xbox One SDK (DURANGO)</td> |
182 | <td class="compatx">v2.1 –</td> | 182 | <td class="compatx">v2.1 –</td> |
183 | </tr> | 183 | </tr> |
184 | <tr class="even"> | ||
185 | <td class="compatname"><a href="#consoles">Nintendo Switch</a></td> | ||
186 | <td class="compatver"> </td> | ||
187 | <td class="compatx">NintendoSDK + NX Addon</td> | ||
188 | <td class="compatx">v2.1 –</td> | ||
189 | </tr> | ||
184 | </table> | 190 | </table> |
185 | <p> | 191 | <p> |
186 | The codebase has compatibility defines for some more systems, but | 192 | The codebase has compatibility defines for some more systems, but |
@@ -577,8 +583,7 @@ make DEFAULT_CC=clang CROSS="$(dirname $ICC)/" \ | |||
577 | <h3 id="consoles">Cross-compiling for consoles</h3> | 583 | <h3 id="consoles">Cross-compiling for consoles</h3> |
578 | <p> | 584 | <p> |
579 | Building LuaJIT for consoles requires both a supported host compiler | 585 | Building LuaJIT for consoles requires both a supported host compiler |
580 | (x86 or x64) and a cross-compiler (to PPC or ARM) from the official | 586 | (x86 or x64) and a cross-compiler from the official console SDK. |
581 | console SDK. | ||
582 | </p> | 587 | </p> |
583 | <p> | 588 | <p> |
584 | Due to restrictions on consoles, the JIT compiler is disabled and only | 589 | Due to restrictions on consoles, the JIT compiler is disabled and only |
@@ -599,55 +604,58 @@ To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires | |||
599 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | 604 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- |
600 | </pre> | 605 | </pre> |
601 | <p> | 606 | <p> |
602 | To cross-compile for <b id="ps4">PS4</b> from a Windows host, | 607 | To cross-compile for the other consoles from a Windows host, open a |
603 | open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | 608 | "Native Tools Command Prompt for VS". You need to choose either the 32 |
604 | <tt>cd</tt> to the directory where you've unpacked the sources and | 609 | or the 64 bit version of the host compiler to match the target. |
605 | run the following commands: | 610 | Then <tt>cd</tt> to the <tt>src</tt> directory below where you've |
606 | </p> | 611 | unpacked the sources and run the build command given in the table: |
607 | <pre class="code"> | ||
608 | cd src | ||
609 | ps4build | ||
610 | </pre> | ||
611 | <p> | ||
612 | To cross-compile for <b id="ps5">PS5</b> from a Windows host, | ||
613 | open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | ||
614 | <tt>cd</tt> to the directory where you've unpacked the sources and | ||
615 | run the following commands: | ||
616 | </p> | ||
617 | <pre class="code"> | ||
618 | cd src | ||
619 | ps5build | ||
620 | </pre> | ||
621 | <p> | ||
622 | To cross-compile for <b id="psvita">PS Vita</b> from a Windows host, | ||
623 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | ||
624 | <tt>cd</tt> to the directory where you've unpacked the sources and | ||
625 | run the following commands: | ||
626 | </p> | 612 | </p> |
627 | <pre class="code"> | 613 | <table class="compat"> |
628 | cd src | 614 | <tr class="compathead"> |
629 | psvitabuild | 615 | <td class="compatname">Console</td> |
630 | </pre> | 616 | <td class="compatbits">Bits</td> |
631 | <p> | 617 | <td class="compatx">Build Command</td> |
632 | To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host, | 618 | </tr> |
633 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | 619 | <tr class="odd separate"> |
634 | <tt>cd</tt> to the directory where you've unpacked the sources and run | 620 | <td class="compatname"><b id="ps4">PS4</b></td> |
635 | the following commands: | 621 | <td class="compatbits">64</td> |
636 | </p> | 622 | <td class="compatx"><tt>ps4build</tt></td> |
637 | <pre class="code"> | 623 | </tr> |
638 | cd src | 624 | <tr class="even"> |
639 | xedkbuild | 625 | <td class="compatname"><b id="ps5">PS5</b></td> |
640 | </pre> | 626 | <td class="compatbits">64</td> |
627 | <td class="compatx"><tt>ps5build</tt></td> | ||
628 | </tr> | ||
629 | <tr class="odd"> | ||
630 | <td class="compatname"><b id="psvita">PS Vita</b></td> | ||
631 | <td class="compatbits">32</td> | ||
632 | <td class="compatx"><tt>psvitabuild</tt></td> | ||
633 | </tr> | ||
634 | <tr class="even"> | ||
635 | <td class="compatname"><b id="xbox360">Xbox 360</b></td> | ||
636 | <td class="compatbits">32</td> | ||
637 | <td class="compatx"><tt>xedkbuild</tt></td> | ||
638 | </tr> | ||
639 | <tr class="odd"> | ||
640 | <td class="compatname"><b id="xboxone">Xbox One</b></td> | ||
641 | <td class="compatbits">64</td> | ||
642 | <td class="compatx"><tt>xb1build</tt></td> | ||
643 | </tr> | ||
644 | <tr class="even"> | ||
645 | <td class="compatname"><b id="nx32">Nintendo Switch NX32</b></td> | ||
646 | <td class="compatbits">32</td> | ||
647 | <td class="compatx"><tt>nxbuild</tt></td> | ||
648 | </tr> | ||
649 | <tr class="odd"> | ||
650 | <td class="compatname"><b id="nx64">Nintendo Switch NX64</b></td> | ||
651 | <td class="compatbits">64</td> | ||
652 | <td class="compatx"><tt>nxbuild</tt></td> | ||
653 | </tr> | ||
654 | </table> | ||
641 | <p> | 655 | <p> |
642 | To cross-compile for <b id="xboxone">Xbox One</b> from a Windows host, | 656 | Please check out the comments in the corresponding <tt>*.bat</tt> |
643 | open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | 657 | file for more options. |
644 | <tt>cd</tt> to the directory where you've unpacked the sources and run | ||
645 | the following commands: | ||
646 | </p> | 658 | </p> |
647 | <pre class="code"> | ||
648 | cd src | ||
649 | xb1build | ||
650 | </pre> | ||
651 | 659 | ||
652 | <h2 id="embed">Embedding LuaJIT</h2> | 660 | <h2 id="embed">Embedding LuaJIT</h2> |
653 | <p> | 661 | <p> |
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 | |||
162 | <tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td></tr> | 162 | <tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td></tr> |
163 | </table> | 163 | </table> |
164 | <table class="feature os os3"> | 164 | <table class="feature os os3"> |
165 | <tr><td>PS3</td><td>PS4</td><td>PS5</td><td>PS Vita</td><td>Xbox 360</td><td>Xbox One</td></tr> | 165 | <tr><td>PS3</td><td>PS4<br>PS5</td><td>PS Vita</td><td>Xbox 360</td><td>Xbox One</td><td>Nintendo<br>Switch</td></tr> |
166 | </table> | 166 | </table> |
167 | <table class="feature compiler"> | 167 | <table class="feature compiler"> |
168 | <tr><td>GCC</td><td>Clang<br>LLVM</td><td>MSVC</td></tr> | 168 | <tr><td>GCC</td><td>Clang<br>LLVM</td><td>MSVC</td></tr> |