Ensure specified target system for buiding libraries is valid

Abort building libraries if the specified target system is not one of the supported values.
This commit is contained in:
Robert Müller 2024-05-11 18:05:54 +02:00
parent 2844ad7239
commit e9581b87ba

View file

@ -7,7 +7,7 @@ if [ -z ${1+x} ]; then
fi
if [ -z ${2+x} ]; then
echo "Specify the target system"
echo "Specify the target system: android, linux, window, webasm"
exit 1
fi
@ -38,6 +38,9 @@ elif [[ "${OS_NAME}" == "windows" ]]; then
COMP_HAS_x64=1
elif [[ "${OS_NAME}" == "webasm" ]]; then
COMP_HAS_WEBASM=1
else
echo "Specify the target system: android, linux, window, webasm"
exit 1
fi
mkdir -p "$1"