Updates to mingw build.
This commit is contained in:
parent
58bf26caad
commit
7bcb82a25e
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
###############
|
###############
|
||||||
# Build script which builds and packages SSNES for MinGW 32/64-bit.
|
# Build script which builds and packages RetroArch for MinGW 32/64-bit.
|
||||||
# Preferably build on Linux with a cross chain ... :D
|
# Preferably build on Linux with a cross chain ... :D
|
||||||
##########
|
##########
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ do_phoenix_build()
|
||||||
message "Build Phoenix GUI"
|
message "Build Phoenix GUI"
|
||||||
### Build Phoenix GUI
|
### Build Phoenix GUI
|
||||||
if [ ! -d "Phoenix" ]; then
|
if [ ! -d "Phoenix" ]; then
|
||||||
git clone git://github.com/Themaister/SSNES-Phoenix.git Phoenix
|
git clone git://github.com/Themaister/RetroArch-Phoenix.git Phoenix
|
||||||
cd Phoenix
|
cd Phoenix
|
||||||
else
|
else
|
||||||
cd Phoenix
|
cd Phoenix
|
||||||
|
@ -70,24 +70,24 @@ do_phoenix_build()
|
||||||
|
|
||||||
make -f Makefile.win clean || die "Failed to clean ..."
|
make -f Makefile.win clean || die "Failed to clean ..."
|
||||||
make -f Makefile.win CC="$C_COMPILER" CXX="$CXX_COMPILER" WINDRES="$WINDRES" -j4 all || die "Failed to build ..."
|
make -f Makefile.win CC="$C_COMPILER" CXX="$CXX_COMPILER" WINDRES="$WINDRES" -j4 all || die "Failed to build ..."
|
||||||
touch ssnes-phoenix.cfg
|
touch retroarch-phoenix.cfg
|
||||||
cp ssnes-phoenix.cfg ssnes-phoenix.exe ../ || die "Failed to copy ..."
|
cp retroarch-phoenix.cfg retroarch-phoenix.exe ../ || die "Failed to copy ..."
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build()
|
do_build()
|
||||||
{
|
{
|
||||||
SSNES_DIR="$1"
|
RetroArch_DIR="$1"
|
||||||
LIBZIPNAME="$2"
|
LIBZIPNAME="$2"
|
||||||
BUILDTYPE="$3"
|
BUILDTYPE="$3"
|
||||||
MAKEARGS="$4"
|
MAKEARGS="$4"
|
||||||
|
|
||||||
if [ ! -d "$SSNES_DIR" ]; then
|
if [ ! -d "$RetroArch_DIR" ]; then
|
||||||
git clone git://github.com/Themaister/SSNES.git "$SSNES_DIR"
|
git clone git://github.com/Themaister/RetroArch.git "$RetroArch_DIR"
|
||||||
cd "$SSNES_DIR"
|
cd "$RetroArch_DIR"
|
||||||
else
|
else
|
||||||
cd "$SSNES_DIR"
|
cd "$RetroArch_DIR"
|
||||||
git pull origin master
|
git pull origin master
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ do_build()
|
||||||
make -f Makefile.win clean || die "Failed to clean ..."
|
make -f Makefile.win clean || die "Failed to clean ..."
|
||||||
make -f Makefile.win $MAKEARGS CC="$C_COMPILER" CXX="$CXX_COMPILER" -j4 all SLIM=1 || die "Failed to build ..."
|
make -f Makefile.win $MAKEARGS CC="$C_COMPILER" CXX="$CXX_COMPILER" -j4 all SLIM=1 || die "Failed to build ..."
|
||||||
make -f Makefile.win $MAKEARGS CC="$C_COMPILER" CXX="$CXX_COMPILER" dist_${BUILDTYPE} SLIM=1 || die "Failed to dist ..."
|
make -f Makefile.win $MAKEARGS CC="$C_COMPILER" CXX="$CXX_COMPILER" dist_${BUILDTYPE} SLIM=1 || die "Failed to dist ..."
|
||||||
if [ -z "`find . | grep "ssnes-win"`" ]; then
|
if [ -z "`find . | grep "retroarch-win"`" ]; then
|
||||||
die "Did not find build ..."
|
die "Did not find build ..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -106,12 +106,12 @@ do_build()
|
||||||
do_phoenix_build
|
do_phoenix_build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ZIP_BASE="`find . | grep "ssnes-win" | head -n1`"
|
ZIP_BASE="`find . | grep "retroarch-win" | head -n1`"
|
||||||
ZIP_SLIM="`echo $ZIP_BASE | sed -e 's|\.zip|-slim.zip|'`"
|
ZIP_SLIM="`echo $ZIP_BASE | sed -e 's|\.zip|-slim.zip|'`"
|
||||||
ZIP_FULL="`echo $ZIP_BASE | sed -e 's|\.zip|-full.zip|'`"
|
ZIP_FULL="`echo $ZIP_BASE | sed -e 's|\.zip|-full.zip|'`"
|
||||||
|
|
||||||
if [ "$BUILD_PHOENIX_GUI" = "yes" ]; then
|
if [ "$BUILD_PHOENIX_GUI" = "yes" ]; then
|
||||||
zip "$ZIP_BASE" ssnes-phoenix.exe ssnes-phoenix.cfg
|
zip "$ZIP_BASE" retroarch-phoenix.exe retroarch-phoenix.cfg
|
||||||
fi
|
fi
|
||||||
mv -v "$ZIP_BASE" "../$ZIP_SLIM" || die "Failed to move final build ..."
|
mv -v "$ZIP_BASE" "../$ZIP_SLIM" || die "Failed to move final build ..."
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ do_build()
|
||||||
make -f Makefile.win $MAKEARGS CC="$C_COMPILER" CXX="$CXX_COMPILER" dist_${BUILDTYPE} || die "Failed to dist ..."
|
make -f Makefile.win $MAKEARGS CC="$C_COMPILER" CXX="$CXX_COMPILER" dist_${BUILDTYPE} || die "Failed to dist ..."
|
||||||
|
|
||||||
if [ "$BUILD_PHOENIX_GUI" = "yes" ]; then
|
if [ "$BUILD_PHOENIX_GUI" = "yes" ]; then
|
||||||
zip "$ZIP_BASE" ssnes-phoenix.exe ssnes-phoenix.cfg
|
zip "$ZIP_BASE" retroarch-phoenix.exe retroarch-phoenix.cfg
|
||||||
fi
|
fi
|
||||||
mv -v "$ZIP_BASE" "../$ZIP_FULL" || die "Failed to move final build ..."
|
mv -v "$ZIP_BASE" "../$ZIP_FULL" || die "Failed to move final build ..."
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ if [ "$BUILD_32BIT" = yes ]; then
|
||||||
C_COMPILER=${MINGW32_BASE}-gcc
|
C_COMPILER=${MINGW32_BASE}-gcc
|
||||||
CXX_COMPILER=${MINGW32_BASE}-g++
|
CXX_COMPILER=${MINGW32_BASE}-g++
|
||||||
WINDRES=${MINGW32_BASE}-windres
|
WINDRES=${MINGW32_BASE}-windres
|
||||||
do_build "SSNES-w32" "SSNES-win32-libs.zip" "x86" ""
|
do_build "RetroArch-w32" "RetroArch-win32-libs.zip" "x86" ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$BUILD_64BIT" = yes ]; then
|
if [ "$BUILD_64BIT" = yes ]; then
|
||||||
|
@ -140,7 +140,7 @@ if [ "$BUILD_64BIT" = yes ]; then
|
||||||
C_COMPILER=${MINGW64_BASE}-gcc
|
C_COMPILER=${MINGW64_BASE}-gcc
|
||||||
CXX_COMPILER=${MINGW64_BASE}-g++
|
CXX_COMPILER=${MINGW64_BASE}-g++
|
||||||
WINDRES=${MINGW64_BASE}-windres
|
WINDRES=${MINGW64_BASE}-windres
|
||||||
do_build "SSNES-w64" "SSNES-win64-libs.zip" "x86_64" "HAVE_SINC=1"
|
do_build "RetroArch-w64" "RetroArch-win64-libs.zip" "x86_64" "HAVE_SINC=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
message "Built successfully! :)"
|
message "Built successfully! :)"
|
Loading…
Reference in New Issue