From 076eb3d1a99ef108c4e8f34b9a19a81a6d246e7b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 3 Oct 2012 23:35:38 +0000 Subject: [PATCH] build: add Android, NaCl and Raspberry Pi to the list of targets autodetected by run-bitten.sh. --- build/run-bitten.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/build/run-bitten.sh b/build/run-bitten.sh index a49c8204..62205522 100755 --- a/build/run-bitten.sh +++ b/build/run-bitten.sh @@ -127,6 +127,45 @@ if i686-w64-mingw32-g++ --version >/dev/null 2>&1; then fi append "" +# +# Android NDK +# + +append "[ndk]" +if [ -f "$ANDROID_NDK_ROOT/RELEASE.TXT" ]; then + append "version = $(cat "$ANDROID_NDK_ROOT/RELEASE.TXT")" +fi +append "" + +# +# Google NaCl SDK +# + +append "[pepper]" +if [ -d "$NACL_SDK_ROOT" ]; then + pepper_version=0 + for dir in "$NACL_SDK_ROOT/pepper_"*; do + new_version="$(echo "$dir" | sed 's/.*_//')" + if [ "$new_version" -gt "$pepper_version" ]; then + pepper_version="$new_version" + fi + done + if [ "$pepper_version" != 0 ]; then + append "version = $pepper_version" + fi +fi +append "" + +# +# Raspberry Pi cross-compiler +# + +append "[raspi]" +if [ -d "$RASPI_SDK_ROOT/tools" ]; then + append "version = 0" +fi +append "" + # # Show what we just did here #