#!/bin/bash # Run this script ONLY inside an Android build system # and after you ran lunch command! if [ -z "$ANDROID_BUILD_TOP" ]; then echo "Run lunch before running this script!" exit 1 fi if [ -z "$1" ]; then ARCH="arm" else ARCH="$1" fi if [ $ARCH = "x86" ]; then TARGET_ARCH="ia32" else TARGET_ARCH="$ARCH" fi cd $(dirname $0)/.. ./configure \ --without-snapshot \ --openssl-no-asm \ --dest-cpu=$TARGET_ARCH \ --dest-os=android export GYP_GENERATORS="android" export GYP_GENERATOR_FLAG