You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
368 B

#!/bin/bash
set -e
if [ -z "${ANDROID_NDK_ROOT}" ] ; then
echo "ANDROID_NDK_ROOT is not set."
exit 1
elif [ ! -d "${ANDROID_NDK_ROOT}" ] ; then
echo "ANDROID_NDK_ROOT=${ANDROID_NDK_ROOT} is not a directory."
exit 1
fi
docker build -t ndkports .
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd):/src -v "${ANDROID_NDK_ROOT}":/ndk ndkports