mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 20:14:22 +00:00
Merge pull request #16 from HalosGhost/master
Reduce redundant code in platform assignment
This commit is contained in:
commit
84ee23bb0f
@ -19,42 +19,25 @@ esac
|
||||
echo "$ARCH CPU detected"
|
||||
|
||||
# Platform Assignment
|
||||
if [ "$platform" ]; then
|
||||
case "$platform" in
|
||||
win)
|
||||
FORMAT_EXT='dll'
|
||||
FORMAT_COMPILER_TARGET=win
|
||||
DIST_DIR=win;;
|
||||
osx)
|
||||
FORMAT_EXT='dylib'
|
||||
FORMAT_COMPILER_TARGET=osx
|
||||
DIST_DIR=osx;;
|
||||
*)
|
||||
FORMAT_EXT='so'
|
||||
FORMAT_COMPILER_TARGET=unix
|
||||
DIST_DIR=unix;;
|
||||
esac
|
||||
else
|
||||
UNAME="$(uname)"
|
||||
case "$UNAME" in
|
||||
[ -z "$platform" ] && platform="$(uname)"
|
||||
case "$platform" in
|
||||
*BSD*)
|
||||
FORMAT_EXT='so'
|
||||
FORMAT_COMPILER_TARGET=unix
|
||||
DIST_DIR=bsd;;
|
||||
*Darwin*)
|
||||
osx|*Darwin*)
|
||||
FORMAT_EXT='dylib'
|
||||
FORMAT_COMPILER_TARGET=osx
|
||||
DIST_DIR=osx;;
|
||||
*mingw*|*MINGW*)
|
||||
win|*mingw*|*MINGW*)
|
||||
FORMAT_EXT='dll'
|
||||
FORMAT_COMPILER_TARGET=win
|
||||
DIST_DIR=win;;
|
||||
*)
|
||||
FORMAT_EXT='so'
|
||||
FORMAT_COMPILER_TARGET=unix
|
||||
DISTT_DIR=unix;;
|
||||
esac
|
||||
fi
|
||||
DIST_DIR=unix;;
|
||||
esac
|
||||
|
||||
export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user