summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2012-10-17 14:23:29 +0200
committerMike Pall <mike>2012-10-17 14:23:29 +0200
commitf1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f (patch)
tree1508fa663ff0823fbbbf4c1fcde81333c055fe97 /doc
parente32cc2a0dcaa9ae080dfa2e687f2146606a5c9ba (diff)
downloadluajit-f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f.tar.gz
luajit-f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f.tar.bz2
luajit-f1fe96e7efa8d0e84a297c5ea9d58fe06f7a260f.zip
Extended Android build instructions.
Diffstat (limited to 'doc')
-rw-r--r--doc/install.html37
1 files changed, 33 insertions, 4 deletions
diff --git a/doc/install.html b/doc/install.html
index c74a57c7..7d8636d2 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -405,20 +405,49 @@ make HOST_CC="gcc -m32" CROSS=mips-linux-
405make HOST_CC="gcc -m32" CROSS=mipsel-linux- 405make HOST_CC="gcc -m32" CROSS=mipsel-linux-
406</pre> 406</pre>
407<p> 407<p>
408You can cross-compile for <b id="android">Android (ARM)</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">&raquo;</span>&nbsp;Android NDK</a>. 408You can cross-compile for <b id="android">Android</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">&raquo;</span>&nbsp;Android NDK</a>.
409The environment variables need to match the install locations and the 409The environment variables need to match the install locations and the
410desired target platform. E.g. Android&nbsp;4.0 corresponds to ABI level&nbsp;14. 410desired target platform. E.g. Android&nbsp;4.0 corresponds to ABI level&nbsp;14.
411For details check the files <tt>docs/STANDALONE-TOOLCHAIN.html</tt> and 411For details check the folder <tt>docs</tt> in the NDK directory.
412<tt>docs/STABLE-APIS.html</tt> in the NDK directory. 412</p>
413<p>
414Only a few common variations for the different CPUs, ABIs and platforms
415are listed. Please use your own judgement for which combination you want
416to build/deploy or which lowest common denominator you want to pick:
413</p> 417</p>
414<pre class="code"> 418<pre class="code">
419# Android/ARM, armeabi (ARMv5TE soft-float), Android 2.2+ (Froyo)
420NDK=/opt/android/ndk
421NDKABI=8
422NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
423NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
424NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
425make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
426
427# Android/ARM, armeabi-v7a (ARMv7 VFP), Android 4.0+ (ICS)
415NDK=/opt/android/ndk 428NDK=/opt/android/ndk
416NDKABI=14 429NDKABI=14
417NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6 430NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
418NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- 431NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
419NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
420NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" 432NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
433NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
421make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH" 434make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH"
435
436# Android/MIPS, mips (MIPS32R1 hard-float), Android 4.0+ (ICS)
437NDK=/opt/android/ndk
438NDKABI=14
439NDKVER=$NDK/toolchains/mipsel-linux-android-4.6
440NDKP=$NDKVER/prebuilt/linux-x86/bin/mipsel-linux-android-
441NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-mips"
442make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
443
444# Android/x86, x86 (i686 SSE3), Android 4.0+ (ICS)
445NDK=/opt/android/ndk
446NDKABI=14
447NDKVER=$NDK/toolchains/x86-4.6
448NDKP=$NDKVER/prebuilt/linux-x86/bin/i686-linux-android-
449NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-x86"
450make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
422</pre> 451</pre>
423<p> 452<p>
424You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">&raquo;</span>&nbsp;iOS SDK</a>. 453You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">&raquo;</span>&nbsp;iOS SDK</a>.