For use with Installing_on_Android.

This script simply sets up a good environment for building with Android.

paths="
$HOME/software/android/scripts
$HOME/software/android/other/apk
$HOME/software/android/sdk/platform-tools
$HOME/software/android/sdk/platforms/android-8/tools
$HOME/software/android/sdk/sources/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
$HOME/software/android/sdk/tools
"

for i in $paths
do
    if [[ -d $i ]]; then
        PATH=$PATH:$i
    fi
done

export PATH

# Java stuff for building Android from sources
echo "For building Android from sources:"
echo "$ export JAVA_HOME=$HOME/software/jdk1.5.0_22"
echo "$ export ANDROID_JAVA_HOME=\$JAVA_HOME"
echo "$ export PATH=\$JAVA_HOME/bin:$PATH"
echo "$ cd $HOME/software/android/sdk/sources"
echo "$ source build/envsetup.sh"
echo "$ lunch"
echo "$ make"

AndroidEnv (last edited 2011-01-30 04:22:46 by MattAdams)