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.
ffmpeg-android-build/scripts/check-host-machine.sh

17 lines
444 B

#!/usr/bin/env bash
function checkVariablePresence() {
VARIABLE_NAME=$1
if [[ -z "${!VARIABLE_NAME}" ]]; then
echo "The ${VARIABLE_NAME} environment variable isn't defined"
echo $2
exit 1
fi
}
checkVariablePresence "ANDROID_SDK_HOME" \
"The variable should be set to the actual Android SDK path" || exit 1
checkVariablePresence "ANDROID_NDK_HOME" \
"The variable should be set to the actual Android NDK path" || exit 1