mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Update console build instructions.
This commit is contained in:
parent
bb7a30727e
commit
fd86c924b9
@ -177,6 +177,12 @@ LuaJIT currently builds out-of-the box on most systems:
|
|||||||
<td class="compatx">Xbox One SDK (DURANGO)</td>
|
<td class="compatx">Xbox One SDK (DURANGO)</td>
|
||||||
<td class="compatx">v2.1 –</td>
|
<td class="compatx">v2.1 –</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="even">
|
||||||
|
<td class="compatname"><a href="#consoles">Nintendo Switch</a></td>
|
||||||
|
<td class="compatver"> </td>
|
||||||
|
<td class="compatx">NintendoSDK + NX Addon</td>
|
||||||
|
<td class="compatx">v2.1 –</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p>
|
<p>
|
||||||
The codebase has compatibility defines for some more systems, but
|
The codebase has compatibility defines for some more systems, but
|
||||||
@ -519,8 +525,7 @@ Please use the LuaJIT 2.1 branch to compile for
|
|||||||
<h3 id="consoles">Cross-compiling for consoles</h3>
|
<h3 id="consoles">Cross-compiling for consoles</h3>
|
||||||
<p>
|
<p>
|
||||||
Building LuaJIT for consoles requires both a supported host compiler
|
Building LuaJIT for consoles requires both a supported host compiler
|
||||||
(x86 or x64) and a cross-compiler (to PPC or ARM) from the official
|
(x86 or x64) and a cross-compiler from the official console SDK.
|
||||||
console SDK.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Due to restrictions on consoles, the JIT compiler is disabled and only
|
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
|
|||||||
make HOST_CC="gcc -m32" CROSS=ppu-lv2-
|
make HOST_CC="gcc -m32" CROSS=ppu-lv2-
|
||||||
</pre>
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
To cross-compile for <b id="ps4">PS4</b> from a Windows host,
|
To cross-compile for the other consoles from a Windows host, open a
|
||||||
open a "Visual Studio .NET Command Prompt" (64 bit host compiler),
|
"Native Tools Command Prompt for VS". You need to choose either the 32
|
||||||
<tt>cd</tt> to the directory where you've unpacked the sources and
|
or the 64 bit version of the host compiler to match the target.
|
||||||
run the following commands:
|
Then <tt>cd</tt> to the <tt>src</tt> directory below where you've
|
||||||
|
unpacked the sources and run the build command given in the table:
|
||||||
</p>
|
</p>
|
||||||
<pre class="code">
|
<table class="compat">
|
||||||
cd src
|
<tr class="compathead">
|
||||||
ps4build
|
<td class="compatname">Console</td>
|
||||||
</pre>
|
<td class="compatbits">Bits</td>
|
||||||
|
<td class="compatx">Build Command</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="odd separate">
|
||||||
|
<td class="compatname"><b id="ps4">PS4</b></td>
|
||||||
|
<td class="compatbits">64</td>
|
||||||
|
<td class="compatx"><tt>ps4build</tt></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="even">
|
||||||
|
<td class="compatname"><b id="psvita">PS Vita</b></td>
|
||||||
|
<td class="compatbits">32</td>
|
||||||
|
<td class="compatx"><tt>psvitabuild</tt></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="odd">
|
||||||
|
<td class="compatname"><b id="xbox360">Xbox 360</b></td>
|
||||||
|
<td class="compatbits">32</td>
|
||||||
|
<td class="compatx"><tt>xedkbuild</tt></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<p>
|
<p>
|
||||||
To cross-compile for <b id="psvita">PS Vita</b> from a Windows host,
|
Please check out the comments in the corresponding <tt>*.bat</tt>
|
||||||
open a "Visual Studio .NET Command Prompt" (32 bit host compiler),
|
file for more options.
|
||||||
<tt>cd</tt> to the directory where you've unpacked the sources and
|
|
||||||
run the following commands:
|
|
||||||
</p>
|
</p>
|
||||||
<pre class="code">
|
|
||||||
cd src
|
|
||||||
psvitabuild
|
|
||||||
</pre>
|
|
||||||
<p>
|
|
||||||
To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host,
|
|
||||||
open a "Visual Studio .NET Command Prompt" (32 bit host compiler),
|
|
||||||
<tt>cd</tt> to the directory where you've unpacked the sources and run
|
|
||||||
the following commands:
|
|
||||||
</p>
|
|
||||||
<pre class="code">
|
|
||||||
cd src
|
|
||||||
xedkbuild
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h2 id="embed">Embedding LuaJIT</h2>
|
<h2 id="embed">Embedding LuaJIT</h2>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user