#!/usr/bin/env bash set -e CUR_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$CUR_DIR" curl -s https://android.googlesource.com/platform/libnativehelper/+/refs/heads/master/include_jni/jni.h?format=TEXT | base64 -d >headers/jni.h curl -s https://android.googlesource.com/platform/frameworks/wilhelm/+/master/include/SLES/OpenSLES.h?format=TEXT | base64 -d >headers/SLES/OpenSLES.h curl -s https://android.googlesource.com/platform/frameworks/wilhelm/+/master/include/SLES/OpenSLES_Android.h?format=TEXT | base64 -d >headers/SLES/OpenSLES_Android.h curl -s https://android.googlesource.com/platform/frameworks/wilhelm/+/master/include/SLES/OpenSLES_AndroidConfiguration.h?format=TEXT | base64 -d >headers/SLES/OpenSLES_AndroidConfiguration.h curl -s https://android.googlesource.com/platform/frameworks/wilhelm/+/master/include/SLES/OpenSLES_AndroidMetadata.h?format=TEXT | base64 -d >headers/SLES/OpenSLES_AndroidMetadata.h curl -s https://android.googlesource.com/platform/frameworks/wilhelm/+/master/include/SLES/OpenSLES_Platform.h?format=TEXT | base64 -d >headers/SLES/OpenSLES_Platform.h git add headers GENERATE_BINDINGS=1 cargo build --target armv7-linux-androideabi git add src