diff options
| author | Mike Pall <mike> | 2013-01-21 16:43:49 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2013-01-21 16:43:49 +0100 |
| commit | 89e4650baef2f67b12b2a7d9c91a8809f552568a (patch) | |
| tree | 103638bdfba80ad8defaca562765efdf98a99ee0 /doc/install.html | |
| parent | 2c293a96deb33a9a24f7b9dacd301ab70edbd559 (diff) | |
| download | luajit-89e4650baef2f67b12b2a7d9c91a8809f552568a.tar.gz luajit-89e4650baef2f67b12b2a7d9c91a8809f552568a.tar.bz2 luajit-89e4650baef2f67b12b2a7d9c91a8809f552568a.zip | |
Add XBox 360 port.
Thanks to Eddie Edwards.
Diffstat (limited to 'doc/install.html')
| -rw-r--r-- | doc/install.html | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/doc/install.html b/doc/install.html index 967f25fd..bb625ec8 100644 --- a/doc/install.html +++ b/doc/install.html | |||
| @@ -134,9 +134,9 @@ operating systems, CPUs and compilers: | |||
| 134 | <tr class="even"> | 134 | <tr class="even"> |
| 135 | <td class="compatcpu"><a href="#cross2">PPC</a></td> | 135 | <td class="compatcpu"><a href="#cross2">PPC</a></td> |
| 136 | <td class="compatos">GCC 4.3+</td> | 136 | <td class="compatos">GCC 4.3+</td> |
| 137 | <td class="compatos">GCC 4.3+<br>GCC 4.1 (<a href="#cross2">PS3</a>)</td> | 137 | <td class="compatos">GCC 4.3+<br>GCC 4.1 (<a href="#ps3">PS3</a>)</td> |
| 138 | <td class="compatos compatno"> </td> | ||
| 139 | <td class="compatos compatno"> </td> | 138 | <td class="compatos compatno"> </td> |
| 139 | <td class="compatos">XEDK (<a href="#xbox360">XBox 360</a>)</td> | ||
| 140 | </tr> | 140 | </tr> |
| 141 | <tr class="odd"> | 141 | <tr class="odd"> |
| 142 | <td class="compatcpu"><a href="#cross2">PPC/e500v2</a></td> | 142 | <td class="compatcpu"><a href="#cross2">PPC/e500v2</a></td> |
| @@ -376,7 +376,7 @@ CPU. | |||
| 376 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \ | 376 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \ |
| 377 | TARGET_CFLAGS="-mfloat-abi=soft" | 377 | TARGET_CFLAGS="-mfloat-abi=soft" |
| 378 | 378 | ||
| 379 | # ARM soft-float ABI with VFP (example for Cortex-a8) | 379 | # ARM soft-float ABI with VFP (example for Cortex-A8) |
| 380 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \ | 380 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \ |
| 381 | TARGET_CFLAGS="-mcpu=cortex-a8 -mfloat-abi=softfp" | 381 | TARGET_CFLAGS="-mcpu=cortex-a8 -mfloat-abi=softfp" |
| 382 | 382 | ||
| @@ -387,8 +387,6 @@ make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabihf- | |||
| 387 | make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- | 387 | make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- |
| 388 | # PPC/e500v2 (fast interpreter only) | 388 | # PPC/e500v2 (fast interpreter only) |
| 389 | make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- | 389 | make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- |
| 390 | # PS3 (fast interpreter only) | ||
| 391 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | ||
| 392 | 390 | ||
| 393 | # MIPS big-endian | 391 | # MIPS big-endian |
| 394 | make HOST_CC="gcc -m32" CROSS=mips-linux- | 392 | make HOST_CC="gcc -m32" CROSS=mips-linux- |
| @@ -460,6 +458,30 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER" | |||
| 460 | make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ | 458 | make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ |
| 461 | TARGET_SYS=iOS | 459 | TARGET_SYS=iOS |
| 462 | </pre> | 460 | </pre> |
| 461 | <p> | ||
| 462 | You can cross-compile for <b id="ps3">PS3</b> using the PS3 SDK from | ||
| 463 | a Linux host or a Windows host (requires 32 bit MinGW (GCC) on the host, | ||
| 464 | too). Due to restrictions on consoles, the JIT compiler is disabled and | ||
| 465 | only the fast interpreter is built: | ||
| 466 | </p> | ||
| 467 | <pre class="code"> | ||
| 468 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | ||
| 469 | </pre> | ||
| 470 | <p> | ||
| 471 | You can cross-compile for <b id="xbox360">XBox 360</b> using the | ||
| 472 | XBox 360 SDK (MSVC + XEDK). Due to restrictions on consoles, the | ||
| 473 | JIT compiler is disabled and only the fast interpreter is built. | ||
| 474 | </p> | ||
| 475 | <p> | ||
| 476 | Open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | ||
| 477 | <tt>cd</tt> to the directory where you've unpacked the sources and run | ||
| 478 | the following commands. This builds a static library <tt>luajit20.lib</tt>, | ||
| 479 | which can be linked against your game, just like the Lua library. | ||
| 480 | </p> | ||
| 481 | <pre class="code"> | ||
| 482 | cd src | ||
| 483 | xedkbuild | ||
| 484 | </pre> | ||
| 463 | 485 | ||
| 464 | <h2 id="embed">Embedding LuaJIT</h2> | 486 | <h2 id="embed">Embedding LuaJIT</h2> |
| 465 | <p> | 487 | <p> |
