Add more parameters, can now build MAME/MESS and MUPEN64

This commit is contained in:
AndresSM 2014-11-05 21:34:54 -08:00
parent ea0ddaa702
commit 67b1aaea61
3 changed files with 68 additions and 7 deletions

View File

@ -11,6 +11,18 @@
echo configuring build environment
. ./libretro-config.sh
echo
[[ "${ARM_NEON}" ]] && echo 'ARM NEON opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-neon"
[[ "${CORTEX_A8}" ]] && echo 'Cortex A8 opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-cortexa8"
[[ "${CORTEX_A9}" ]] && echo 'Cortex A9 opts enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-cortexa9"
[[ "${ARM_HARDFLOAT}" ]] && echo 'ARM hardfloat ABI enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-hardfloat"
[[ "${ARM_SOFTFLOAT}" ]] && echo 'ARM softfloat ABI enabled...' && export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-softfloat"
[[ "${IOS}" ]] && echo 'iOS detected...'
echo "${FORMAT_COMPILER_TARGET}"
echo "${FORMAT_COMPILER_TARGET_ALT}"
# BSDs don't have readlink -f
read_link()
{
@ -88,6 +100,32 @@ echo "CXX = $CXX"
echo "STRIP = $STRIP"
echo
RESET_FORMAT_COMPILER_TARGET=$FORMAT_COMPILER_TARGET
RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT
check_opengl() {
if [ "${BUILD_LIBRETRO_GL}" ]; then
if [ "${ENABLE_GLES}" ]; then
echo '=== OpenGL ES enabled ==='
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-gles"
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
else
echo '=== OpenGL enabled ==='
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-opengl"
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
fi
else
echo '=== OpenGL disabled in build ==='
fi
}
reset_compiler_targets() {
export FORMAT_COMPILER_TARGET=$RESET_FORMAT_COMPILER_TARGET
export FORMAT_COMPILER_TARGET_ALT=$RESET_FORMAT_COMPILER_TARGET_ALT
}
cd "${BASE_DIR}"
####build commands
@ -99,7 +137,7 @@ build_libretro_generic_makefile() {
SUBDIR=$3
MAKEFILE=$4
PLATFORM=$5
SILENT=$5
ARGS=$6
cd $DIR
cd $SUBDIR
@ -118,8 +156,15 @@ build_libretro_generic_makefile() {
fi
echo "compiling..."
echo "buid command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS}"
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS}
if [ -z ${ARGS} ];
then
echo "buid command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS}"
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS}
else
echo "buid command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS}"
${MAKE} -f ${MAKEFILE} platform=${PLATFORM} ${COMPILER} -j${JOBS} ${ARGS}
fi
if [ $? -eq 0 ];
then
echo success!
@ -130,9 +175,12 @@ build_libretro_generic_makefile() {
}
#fetch a project and mark it for building if there have been any changes
#sleep 10
echo
echo
while read line; do
NAME=`echo $line | cut --fields=1 --delimiter=" "`
@ -153,8 +201,6 @@ while read line; do
echo ENABLED: $ENABLED
echo COMMAND: $COMMAND
echo MAKEFILE: $MAKEFILE
echo
echo
ARGS=""
@ -177,6 +223,8 @@ while read line; do
fi
echo ARGS: $ARGS
echo
echo
if [ -d "${DIR}/.git" ];
then
@ -202,15 +250,17 @@ while read line; do
then
echo building core...
if [ "${COMMAND}" == "GENERIC" ]; then
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET}
build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET} "${ARGS}"
fi
else
echo core already up-to-date...
fi
echo
fi
cd "${BASE_DIR}"
done < $1

8
recipes.win-mingw64-seh Normal file
View File

@ -0,0 +1,8 @@
fb_alpha libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk
fba_cores_cps1 libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps1
fba_cores_cps2 libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk/fbacores/cps2
fba_cores_neo libretro-fba https://github.com/libretro/fba-libretro.git project NO GENERIC makefile.libretro svn-current/trunk/fbacores/neogeo
mupen64plus libretro-mupen64plus https://github.com/libretro/mupen64plus-libretro.git project NO GENERIC Makefile . WITH_DYNAREC='x86_64'
nestopia libretro-nestopia https://github.com/libretro/nestopia.git project NO GENERIC Makefile libretro
pcsx_rearmed libretro-pcsx_rearmed https://github.com/libretro/pcsx_rearmed.git project NO GENERIC Makefile.libretro . USE_DYNAREC=0 TEST=1
tgbdual libretro-tgbdual https://github.com/libretro/tgbdual-libretro.git project NO GENERIC Makefile .

3
recipes.win-mingw64-sjlj Normal file
View File

@ -0,0 +1,3 @@
mame libretro-mame https://github.com/libretro/mame.git project YES GENERIC Makefile.libretro . TARGET=mame PTR64=1
mame libretro-mame https://github.com/libretro/mame.git project YES GENERIC Makefile.libretro . TARGET=mess PTR64=1
mame libretro-mame https://github.com/libretro/mame.git project YES GENERIC Makefile.libretro . TARGET=ume PTR64=1