mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-18 21:51:37 +00:00
Have make-macosx.sh require the user to specify which architecture she/he wants to build for and suggest building UB's if the user is unaware of what architectures are
This commit is contained in:
parent
543812ae84
commit
b54c331d7d
1 changed files with 22 additions and 2 deletions
|
@ -1,7 +1,5 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# BUILDARCH can be set to either i386, x86_64 or ppc
|
||||
BUILDARCH=x86_64
|
||||
|
||||
CC=gcc-4.0
|
||||
APPBUNDLE=ioquake3.app
|
||||
|
@ -13,6 +11,28 @@ DESTDIR=build/release-darwin-${BUILDARCH}
|
|||
BASEDIR=baseq3
|
||||
MPACKDIR=missionpack
|
||||
|
||||
# Lets make the user give us a target build system
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 target_architecture"
|
||||
echo "Example: $0 i386"
|
||||
echo
|
||||
echo "If you don't know or care about architectures please consider using make-macosx-ub.sh instead of this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" == "i386" ]; then
|
||||
BUILDARCH=i386
|
||||
elif [ "$1" == "x86_64" ]; then
|
||||
BUILDARCH=x86_64
|
||||
elif [ "$1" == "ppc" ]; then
|
||||
BUILDARCH=ppc
|
||||
else
|
||||
echo "Invalid architecture: $1"
|
||||
echo "Valid architectures are i386, x86_64 or ppc"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BIN_OBJ="
|
||||
build/release-darwin-${BUILDARCH}/ioquake3.${BUILDARCH}
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue