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,34 +2,53 @@
|
|||||||
|
|
||||||
. ./libretro-config.sh
|
. ./libretro-config.sh
|
||||||
|
|
||||||
UNAME=$(uname)
|
if [ "$platform" ]; then
|
||||||
|
if [ "$platform" = "win" ]; then
|
||||||
if [ $(echo $UNAME | grep Linux) ] || [ x"$platform" = x"unix" ]; then
|
FORMAT_EXT="dll"
|
||||||
FORMAT_EXT="so"
|
FORMAT_COMPILER_TARGET=win
|
||||||
FORMAT_COMPILER_TARGET=unix
|
FORMAT_COMPILER_TARGET_ALT=win
|
||||||
FORMAT_COMPILER_TARGET_ALT=unix
|
DIST_DIR=win
|
||||||
DIST_DIR=unix
|
elif [ "$platform" = "osx" ]; then
|
||||||
elif [ $(echo $UNAME | grep BSD) ]; then
|
FORMAT_EXT="dylib"
|
||||||
FORMAT_EXT="so"
|
FORMAT_COMPILER_TARGET=osx
|
||||||
FORMAT_COMPILER_TARGET=unix
|
FORMAT_COMPILER_TARGET_ALT=osx
|
||||||
FORMAT_COMPILER_TARGET_ALT=unix
|
DIST_DIR=osx
|
||||||
DIST_DIR=bsd
|
else
|
||||||
elif [ $(echo $UNAME | grep Darwin) ] || [ x"$platform" = x"osx" ]; then
|
FORMAT_EXT="so"
|
||||||
FORMAT_EXT="dylib"
|
FORMAT_COMPILER_TARGET=unix
|
||||||
FORMAT_COMPILER_TARGET=osx
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
FORMAT_COMPILER_TARGET_ALT=osx
|
DIST_DIR=unix
|
||||||
DIST_DIR=osx
|
fi
|
||||||
elif [ $(echo $UNAME | grep -i MINGW) ] || [ x"$platform" = x"win" ]; then
|
|
||||||
FORMAT_EXT="dll"
|
|
||||||
FORMAT_COMPILER_TARGET=win
|
|
||||||
FORMAT_COMPILER_TARGET_ALT=win
|
|
||||||
DIST_DIR=win
|
|
||||||
else
|
else
|
||||||
# assume this is UNIX-based at least
|
UNAME=$(uname)
|
||||||
FORMAT_EXT="so"
|
|
||||||
FORMAT_COMPILER_TARGET=unix
|
if [ $(echo $UNAME | grep Linux) ]; then
|
||||||
FORMAT_COMPILER_TARGET_ALT=unix
|
FORMAT_EXT="so"
|
||||||
DIST_DIR=unix
|
FORMAT_COMPILER_TARGET=unix
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
|
DIST_DIR=unix
|
||||||
|
elif [ $(echo $UNAME | grep BSD) ]; then
|
||||||
|
FORMAT_EXT="so"
|
||||||
|
FORMAT_COMPILER_TARGET=unix
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
|
DIST_DIR=bsd
|
||||||
|
elif [ $(echo $UNAME | grep Darwin) ]; then
|
||||||
|
FORMAT_EXT="dylib"
|
||||||
|
FORMAT_COMPILER_TARGET=osx
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=osx
|
||||||
|
DIST_DIR=osx
|
||||||
|
elif [ $(echo $UNAME | grep -i MINGW) ]; then
|
||||||
|
FORMAT_EXT="dll"
|
||||||
|
FORMAT_COMPILER_TARGET=win
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=win
|
||||||
|
DIST_DIR=win
|
||||||
|
else
|
||||||
|
# assume this is UNIX-based at least
|
||||||
|
FORMAT_EXT="so"
|
||||||
|
FORMAT_COMPILER_TARGET=unix
|
||||||
|
FORMAT_COMPILER_TARGET_ALT=unix
|
||||||
|
DIST_DIR=unix
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. ./libretro-build-common.sh
|
. ./libretro-build-common.sh
|
||||||
|
@ -1,17 +1,27 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
UNAME=$(uname)
|
if [ "$platform" ]; then
|
||||||
|
if [ "$platform" = "win" ]; then
|
||||||
if [ $(echo $UNAME | grep Linux) ] || [ x"$platform" = x"unix" ]; then
|
DIST_DIR=win
|
||||||
DIST_DIR=unix
|
elif [ "$platform" = "osx" ]; then
|
||||||
elif [ $(echo $UNAME | grep BSD) ]; then
|
DIST_DIR=osx
|
||||||
DIST_DIR=bsd
|
else
|
||||||
elif [ $(echo $UNAME | grep Darwin) ] || [ x"$platform" = x"osx" ]; then
|
DIST_DIR=unix
|
||||||
DIST_DIR=osx
|
fi
|
||||||
elif [ $(echo $UNAME | grep -i MINGW) ] || [ x"$platform" = x"win" ]; then
|
|
||||||
DIST_DIR=win
|
|
||||||
else
|
else
|
||||||
DIST_DIR=unix
|
UNAME=$(uname)
|
||||||
|
|
||||||
|
if [ $(echo $UNAME | grep Linux) ]; then
|
||||||
|
DIST_DIR=unix
|
||||||
|
elif [ $(echo $UNAME | grep BSD) ]; then
|
||||||
|
DIST_DIR=bsd
|
||||||
|
elif [ $(echo $UNAME | grep Darwin) ]; then
|
||||||
|
DIST_DIR=osx
|
||||||
|
elif [ $(echo $UNAME | grep -i MINGW) ]; then
|
||||||
|
DIST_DIR=win
|
||||||
|
else
|
||||||
|
DIST_DIR=unix
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# BSDs don't have readlink -f
|
# BSDs don't have readlink -f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user