Skip to content

Instantly share code, notes, and snippets.

@shuxin
shuxin / android_configure.sh
Created August 19, 2016 10:48 — forked from z3ntu/android_configure.sh
Use this for cross-compiling native Applications for Android! Place this script preferably in ~/bin and add this folder to your path variable. Instead of using ./configure just call this script.
#!/bin/sh
# THIS SCRIPT IS FOR A STANDALONE TOOLCHAIN!!
# For more information please consult https://z3ntu.github.io/2015/12/12/Cross-compiling-native-linux-applications-for-android.html
# Don't forget to adjust this to your standalone toolchain path
export TOOLCHAIN_PATH=$HOME/Android/standalone-toolchain/
# This is just an empty directory where I want the built objects to be installed
export PREFIX=$HOME/Android/out/prefix