From c3c118b18c37b98e03638d76c98c18fd6c1d0f43 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 2 Mar 2013 09:36:28 +0100 Subject: [PATCH] Update Mednafen build for 0928 PSX. --- libretro-build-win32.sh | 15 ++++++++++++++- libretro-install-win32.sh | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/libretro-build-win32.sh b/libretro-build-win32.sh index cb27d5f6..e9d286d4 100755 --- a/libretro-build-win32.sh +++ b/libretro-build-win32.sh @@ -6,10 +6,20 @@ die() #exit 1 } +if [ "$HOST_CC" ]; then + CC="${HOST_CC}-gcc" + CXX="${HOST_CC}-g++" + STRIP="${HOST_CC}-strip" +fi + if [ -z "$CC" ]; then CC=gcc fi +if [ -z "$CXX" ]; then + CC=g++ +fi + build_libretro_bsnes() { if [ -d "libretro-bsnes/perf" ]; then @@ -49,17 +59,20 @@ build_libretro_mednafen() cd psx make core=psx platform=win CC=$CC CXX=$CXX -j4 || die "Failed to build mednafen/psx" - cp retro.dll ../libretro-0926-mednafen-psx.dll + cp retro.dll ../libretro-0928-mednafen-psx.dll + "$STRIP" ../libretro-0928-mednafen-psx.dll cd .. cd pce-fast make core=pce-fast platform=win CC=$CC CXX=$CXX -j4 || die "Failed to build mednafen/pce-fast" cp retro.dll ../libretro-0924-mednafen-pce-fast.dll + "$STRIP" ../libretro-0924-mednafen-pce-fast.dll cd .. cd wswan make core=wswan platform=win CC=$CC CXX=$CXX -j4 || die "Failed to build mednafen/wswan" cp retro.dll ../libretro-0922-mednafen-wswan.dll + "$STRIP" ../libretro-0922-mednafen-wswan.dll cd .. cd .. diff --git a/libretro-install-win32.sh b/libretro-install-win32.sh index 081d2dfa..1d4935fe 100755 --- a/libretro-install-win32.sh +++ b/libretro-install-win32.sh @@ -27,7 +27,7 @@ LIBS="$LIBS libretro-gambatte/libretro-git-gambatte.dll" LIBS="$LIBS libretro-meteor/libretro-git-meteor.dll" LIBS="$LIBS libretro-stella/libretro-git-stella.dll" LIBS="$LIBS libretro-desmume/libretro-git-desmume.dll" -LIBS="$LIBS libretro-mednafen/libretro-0926-mednafen-psx.dll" +LIBS="$LIBS libretro-mednafen/libretro-0928-mednafen-psx.dll" LIBS="$LIBS libretro-mednafen/libretro-0924-mednafen-pce-fast.dll" LIBS="$LIBS libretro-mednafen/libretro-0922-mednafen-wswan.dll" LIBS="$LIBS libretro-quicknes/libretro-git-quicknes.dll"