forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
31
Kha/Kore/Tools/platform.sh
Normal file
31
Kha/Kore/Tools/platform.sh
Normal file
@ -0,0 +1,31 @@
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
MACHINE_TYPE=`uname -m`
|
||||
if [[ "$MACHINE_TYPE" == "armv"* ]]; then
|
||||
KORE_PLATFORM=linux_arm
|
||||
elif [[ "$MACHINE_TYPE" == "aarch64"* ]]; then
|
||||
KORE_PLATFORM=linux_arm64
|
||||
elif [[ "$MACHINE_TYPE" == "x86_64"* ]]; then
|
||||
KORE_PLATFORM=linux_x64
|
||||
else
|
||||
echo "Unknown Linux machine '$MACHINE_TYPE', please edit Tools/platform.sh"
|
||||
exit 1
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
MACHINE_TYPE=`uname -m`
|
||||
if [[ "$MACHINE_TYPE" == "arm64"* ]]; then
|
||||
KORE_PLATFORM=macos_arm64
|
||||
elif [[ "$MACHINE_TYPE" == "x86_64"* ]]; then
|
||||
KORE_PLATFORM=macos_x64
|
||||
else
|
||||
echo "Unknown macOS machine '$MACHINE_TYPE', please edit Tools/platform.sh"
|
||||
exit 1
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "FreeBSD"* ]]; then
|
||||
KORE_PLATFORM=freebsd_x64
|
||||
elif [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "cygwin"* ]]; then
|
||||
KORE_PLATFORM=windows_x64
|
||||
KORE_EXE_SUFFIX=.exe
|
||||
else
|
||||
echo "Unknown platform '$OSTYPE', please edit Tools/platform.sh"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user