mirror of
https://github.com/libretro/libretro-super
synced 2025-04-17 08:43:18 +00:00
Fixup cross compilation.
This commit is contained in:
parent
bd48e72fdd
commit
fb49cddd15
@ -2,9 +2,27 @@
|
|||||||
|
|
||||||
. ./libretro-config.sh
|
. ./libretro-config.sh
|
||||||
|
|
||||||
|
if [ "$platform" ]; then
|
||||||
|
if [ "$platform" = "win" ]; then
|
||||||
|
FORMAT_EXT="dll"
|
||||||
|
FORMAT_COMPILER_TARGET=win
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=win
|
||||||
|
DIST_DIR=win
|
||||||
|
elif [ "$platform" = "osx" ]; then
|
||||||
|
FORMAT_EXT="dylib"
|
||||||
|
FORMAT_COMPILER_TARGET=osx
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=osx
|
||||||
|
DIST_DIR=osx
|
||||||
|
else
|
||||||
|
FORMAT_EXT="so"
|
||||||
|
FORMAT_COMPILER_TARGET=unix
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
|
DIST_DIR=unix
|
||||||
|
fi
|
||||||
|
else
|
||||||
UNAME=$(uname)
|
UNAME=$(uname)
|
||||||
|
|
||||||
if [ $(echo $UNAME | grep Linux) ] || [ x"$platform" = x"unix" ]; then
|
if [ $(echo $UNAME | grep Linux) ]; then
|
||||||
FORMAT_EXT="so"
|
FORMAT_EXT="so"
|
||||||
FORMAT_COMPILER_TARGET=unix
|
FORMAT_COMPILER_TARGET=unix
|
||||||
FORMAT_COMPILER_TARGET_ALT=unix
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
@ -14,12 +32,12 @@ elif [ $(echo $UNAME | grep BSD) ]; then
|
|||||||
FORMAT_COMPILER_TARGET=unix
|
FORMAT_COMPILER_TARGET=unix
|
||||||
FORMAT_COMPILER_TARGET_ALT=unix
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
DIST_DIR=bsd
|
DIST_DIR=bsd
|
||||||
elif [ $(echo $UNAME | grep Darwin) ] || [ x"$platform" = x"osx" ]; then
|
elif [ $(echo $UNAME | grep Darwin) ]; then
|
||||||
FORMAT_EXT="dylib"
|
FORMAT_EXT="dylib"
|
||||||
FORMAT_COMPILER_TARGET=osx
|
FORMAT_COMPILER_TARGET=osx
|
||||||
FORMAT_COMPILER_TARGET_ALT=osx
|
FORMAT_COMPILER_TARGET_ALT=osx
|
||||||
DIST_DIR=osx
|
DIST_DIR=osx
|
||||||
elif [ $(echo $UNAME | grep -i MINGW) ] || [ x"$platform" = x"win" ]; then
|
elif [ $(echo $UNAME | grep -i MINGW) ]; then
|
||||||
FORMAT_EXT="dll"
|
FORMAT_EXT="dll"
|
||||||
FORMAT_COMPILER_TARGET=win
|
FORMAT_COMPILER_TARGET=win
|
||||||
FORMAT_COMPILER_TARGET_ALT=win
|
FORMAT_COMPILER_TARGET_ALT=win
|
||||||
@ -31,6 +49,7 @@ else
|
|||||||
FORMAT_COMPILER_TARGET_ALT=unix
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
DIST_DIR=unix
|
DIST_DIR=unix
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
. ./libretro-build-common.sh
|
. ./libretro-build-common.sh
|
||||||
|
|
||||||
|
@ -1,18 +1,28 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$platform" ]; then
|
||||||
|
if [ "$platform" = "win" ]; then
|
||||||
|
DIST_DIR=win
|
||||||
|
elif [ "$platform" = "osx" ]; then
|
||||||
|
DIST_DIR=osx
|
||||||
|
else
|
||||||
|
DIST_DIR=unix
|
||||||
|
fi
|
||||||
|
else
|
||||||
UNAME=$(uname)
|
UNAME=$(uname)
|
||||||
|
|
||||||
if [ $(echo $UNAME | grep Linux) ] || [ x"$platform" = x"unix" ]; then
|
if [ $(echo $UNAME | grep Linux) ]; then
|
||||||
DIST_DIR=unix
|
DIST_DIR=unix
|
||||||
elif [ $(echo $UNAME | grep BSD) ]; then
|
elif [ $(echo $UNAME | grep BSD) ]; then
|
||||||
DIST_DIR=bsd
|
DIST_DIR=bsd
|
||||||
elif [ $(echo $UNAME | grep Darwin) ] || [ x"$platform" = x"osx" ]; then
|
elif [ $(echo $UNAME | grep Darwin) ]; then
|
||||||
DIST_DIR=osx
|
DIST_DIR=osx
|
||||||
elif [ $(echo $UNAME | grep -i MINGW) ] || [ x"$platform" = x"win" ]; then
|
elif [ $(echo $UNAME | grep -i MINGW) ]; then
|
||||||
DIST_DIR=win
|
DIST_DIR=win
|
||||||
else
|
else
|
||||||
DIST_DIR=unix
|
DIST_DIR=unix
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# BSDs don't have readlink -f
|
# BSDs don't have readlink -f
|
||||||
read_link()
|
read_link()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user