This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Heith Seewald 2012 | |
# Garoe Dorta 2015 | |
# Luca Weiss 2015 | |
# Also based on https://gist.github.com/MichaelLawton/ee27bf4a0f591bed19ac | |
# Feel free to extend/modify to meet your needs. | |
#### Lets run a few checks to make sure things work as expected. | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then |