Changes between Initial Version and Version 1 of dev/setup/android-cross-builder


Ignore:
Timestamp:
Jul 30, 2012, 1:49:12 AM (10 years ago)
Author:
sam
Comment:

how to set up an Android build host (only the NDK for now)

Legend:

Unmodified
Added
Removed
Modified
  • dev/setup/android-cross-builder

    v1 v1  
     1= Set up a cross-build machine for Android =
     2
     3== Downloads ==
     4
     5 * Download the Android NDK and unpack it.
     6
     7== Environment variables ==
     8
     9 * Set `ANDROID_NDK_ROOT` to the uncompressed NDK directory.
     10 * Set `ANDROID_NDK_ARM_TOOLCHAIN` to where the toolchain should reside, ''eg.'' `$HOME/android/arm-linux-androideabi`
     11 * Run the following command:
     12
     13{{{
     14#!sh
     15$ANDROID_NDK_ROOT/build/tools/make-standalone-toolchain.sh \
     16   --arch=arm --install-dir=$ANDROID_NDK_ARM_TOOLCHAIN \
     17   --ndk-dir=$ANDROID_NDK_ROOT --platform=android-14
     18}}}
     19
     20 * Add `$ANDROID_NDK_ARM_TOOLCHAIN/bin` to `PATH`.
     21
     22== Configuration ==
     23
     24Add the following section to the bitten machine file:
     25
     26{{{
     27[ndk]
     28version = 8b
     29}}}