mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
2844ad7239
commit
e9581b87ba
|
@ -7,7 +7,7 @@ if [ -z ${1+x} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z ${2+x} ]; then
|
if [ -z ${2+x} ]; then
|
||||||
echo "Specify the target system"
|
echo "Specify the target system: android, linux, window, webasm"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -38,6 +38,9 @@ elif [[ "${OS_NAME}" == "windows" ]]; then
|
||||||
COMP_HAS_x64=1
|
COMP_HAS_x64=1
|
||||||
elif [[ "${OS_NAME}" == "webasm" ]]; then
|
elif [[ "${OS_NAME}" == "webasm" ]]; then
|
||||||
COMP_HAS_WEBASM=1
|
COMP_HAS_WEBASM=1
|
||||||
|
else
|
||||||
|
echo "Specify the target system: android, linux, window, webasm"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$1"
|
mkdir -p "$1"
|
||||||
|
|
Loading…
Reference in a new issue