diff options
author | Mike Pall <mike> | 2022-06-08 14:55:59 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-06-08 14:55:59 +0200 |
commit | fd86c924b9810cfb3034b03d08a2b77e243639c3 (patch) | |
tree | fb7a52aacfae7fef198d761156628ab6d35fb8af | |
parent | bb7a30727e69eed5a196c1c9112c4991c5e22ccc (diff) | |
download | luajit-fd86c924b9810cfb3034b03d08a2b77e243639c3.tar.gz luajit-fd86c924b9810cfb3034b03d08a2b77e243639c3.tar.bz2 luajit-fd86c924b9810cfb3034b03d08a2b77e243639c3.zip |
Update console build instructions.
-rw-r--r-- | doc/install.html | 64 |
1 files 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: | |||
177 | <td class="compatx">Xbox One SDK (DURANGO)</td> | 177 | <td class="compatx">Xbox One SDK (DURANGO)</td> |
178 | <td class="compatx">v2.1 –</td> | 178 | <td class="compatx">v2.1 –</td> |
179 | </tr> | 179 | </tr> |
180 | <tr class="even"> | ||
181 | <td class="compatname"><a href="#consoles">Nintendo Switch</a></td> | ||
182 | <td class="compatver"> </td> | ||
183 | <td class="compatx">NintendoSDK + NX Addon</td> | ||
184 | <td class="compatx">v2.1 –</td> | ||
185 | </tr> | ||
180 | </table> | 186 | </table> |
181 | <p> | 187 | <p> |
182 | The codebase has compatibility defines for some more systems, but | 188 | The codebase has compatibility defines for some more systems, but |
@@ -519,8 +525,7 @@ Please use the LuaJIT 2.1 branch to compile for | |||
519 | <h3 id="consoles">Cross-compiling for consoles</h3> | 525 | <h3 id="consoles">Cross-compiling for consoles</h3> |
520 | <p> | 526 | <p> |
521 | Building LuaJIT for consoles requires both a supported host compiler | 527 | Building LuaJIT for consoles requires both a supported host compiler |
522 | (x86 or x64) and a cross-compiler (to PPC or ARM) from the official | 528 | (x86 or x64) and a cross-compiler from the official console SDK. |
523 | console SDK. | ||
524 | </p> | 529 | </p> |
525 | <p> | 530 | <p> |
526 | Due to restrictions on consoles, the JIT compiler is disabled and only | 531 | Due to restrictions on consoles, the JIT compiler is disabled and only |
@@ -541,35 +546,38 @@ To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires | |||
541 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | 546 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- |
542 | </pre> | 547 | </pre> |
543 | <p> | 548 | <p> |
544 | To cross-compile for <b id="ps4">PS4</b> from a Windows host, | 549 | To cross-compile for the other consoles from a Windows host, open a |
545 | open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | 550 | "Native Tools Command Prompt for VS". You need to choose either the 32 |
546 | <tt>cd</tt> to the directory where you've unpacked the sources and | 551 | or the 64 bit version of the host compiler to match the target. |
547 | run the following commands: | 552 | Then <tt>cd</tt> to the <tt>src</tt> directory below where you've |
553 | unpacked the sources and run the build command given in the table: | ||
548 | </p> | 554 | </p> |
549 | <pre class="code"> | 555 | <table class="compat"> |
550 | cd src | 556 | <tr class="compathead"> |
551 | ps4build | 557 | <td class="compatname">Console</td> |
552 | </pre> | 558 | <td class="compatbits">Bits</td> |
553 | <p> | 559 | <td class="compatx">Build Command</td> |
554 | To cross-compile for <b id="psvita">PS Vita</b> from a Windows host, | 560 | </tr> |
555 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | 561 | <tr class="odd separate"> |
556 | <tt>cd</tt> to the directory where you've unpacked the sources and | 562 | <td class="compatname"><b id="ps4">PS4</b></td> |
557 | run the following commands: | 563 | <td class="compatbits">64</td> |
558 | </p> | 564 | <td class="compatx"><tt>ps4build</tt></td> |
559 | <pre class="code"> | 565 | </tr> |
560 | cd src | 566 | <tr class="even"> |
561 | psvitabuild | 567 | <td class="compatname"><b id="psvita">PS Vita</b></td> |
562 | </pre> | 568 | <td class="compatbits">32</td> |
569 | <td class="compatx"><tt>psvitabuild</tt></td> | ||
570 | </tr> | ||
571 | <tr class="odd"> | ||
572 | <td class="compatname"><b id="xbox360">Xbox 360</b></td> | ||
573 | <td class="compatbits">32</td> | ||
574 | <td class="compatx"><tt>xedkbuild</tt></td> | ||
575 | </tr> | ||
576 | </table> | ||
563 | <p> | 577 | <p> |
564 | To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host, | 578 | Please check out the comments in the corresponding <tt>*.bat</tt> |
565 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | 579 | file for more options. |
566 | <tt>cd</tt> to the directory where you've unpacked the sources and run | ||
567 | the following commands: | ||
568 | </p> | 580 | </p> |
569 | <pre class="code"> | ||
570 | cd src | ||
571 | xedkbuild | ||
572 | </pre> | ||
573 | 581 | ||
574 | <h2 id="embed">Embedding LuaJIT</h2> | 582 | <h2 id="embed">Embedding LuaJIT</h2> |
575 | <p> | 583 | <p> |