From b02b099cd105ca7dd06f205531b6c3b811e88362 Mon Sep 17 00:00:00 2001 From: radius Date: Thu, 25 Dec 2014 19:49:47 -0500 Subject: [PATCH] add bsnes performance and mercury performance --- libretro-buildbot-recipe.sh | 53 ++++++++++++++++++++++++++++++++++++- recipes/recipes-android | 2 ++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index f355cd28..faa38d3b 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -319,6 +319,7 @@ build_libretro_generic_theos() { build_libretro_generic_jni() { + echo PARAMETERS: DIR $2, SUBDIR: $3 NAME=$1 DIR=$2 @@ -362,6 +363,54 @@ build_libretro_generic_jni() { done } +build_libretro_bsnes_jni() { + + echo PARAMETERS: DIR $2, SUBDIR: $3 + + NAME=$1 + DIR=$2 + SUBDIR=$3 + MAKEFILE=$4 + PLATFORM=$5 + PROFILE=$6 + + CORENAME=bsnes + + cd ${DIR}/${SUBDIR} + + for a in "${ABIS[@]}"; do + if [ -z "${NOCLEAN}" ]; + then + echo "cleaning up..." + echo "cleanup command: ${NDK} -j${JOBS} APP_ABI=${a} clean" + ${NDK} -j${JOBS} APP_ABI=${a} clean + if [ $? -eq 0 ]; + then + echo success! + else + echo error while cleaning up + fi + fi + + echo "compiling for ${a}..." + if [ -z "${ARGS}" ] + then + echo "buid command: ${NDK} -j${JOBS} APP_ABI=${a}" + ${NDK} -j${JOBS} APP_ABI=${a} + else + echo "buid command: ${NDK} -j${JOBS} APP_ABI=${a}" + ${NDK} -j${JOBS} APP_ABI=${a} + fi + if [ $? -eq 0 ]; + then + echo success! + cp -v ../libs/${a}/libretro_${CORENAME}_${PROFILE}.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${NAME}_libretro_${PROFILE}${FORMAT}.${FORMAT_EXT} + else + echo error while compiling $1 + fi + done +} + build_libretro_generic_gl_makefile() { @@ -512,7 +561,7 @@ while read line; do echo COMMAND: $COMMAND echo MAKEFILE: $MAKEFILE echo DIR: $DIR - echo SUBDIR: $DIR + echo SUBDIR: $SUBDIR ARGS="" @@ -658,6 +707,8 @@ while read line; do build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}" elif [ "${COMMAND}" == "GENERIC_JNI" ]; then build_libretro_generic_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}" + elif [ "${COMMAND}" == "BSNES_JNI" ]; then + build_libretro_bsnes_jni $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}" elif [ "${COMMAND}" == "GENERIC_THEOS" ]; then build_libretro_generic_theos $NAME $DIR $SUBDIR $MAKEFILE ${FORMAT_COMPILER_TARGET_ALT} "${ARGS}" elif [ "${COMMAND}" == "BSNES" ]; then diff --git a/recipes/recipes-android b/recipes/recipes-android index fdd0f720..24323c55 100644 --- a/recipes/recipes-android +++ b/recipes/recipes-android @@ -40,3 +40,5 @@ vbam libretro-vbam https://github.com/libretro/vbam-libretro.git PROJECT YES GEN vecx libretro-vecx https://github.com/libretro/libretro-vecx.git PROJECT YES GENERIC_JNI Makefile.libretro libretro/jni virtualjaguar libretro-virtualjaguar https://github.com/libretro/virtualjaguar-libretro.git PROJECT YES GENERIC_JNI Makefile jni yabause libretro-yabause https://github.com/libretro/yabause.git PROJECT YES GENERIC_JNI Makefile libretro/jni +bsnes libretro-bsnes https://github.com/libretro/bsnes-libretro.git PROJECT YES BSNES_JNI Makefile target-libretro/jni performance +bsnes_mercury libretro-bsnes_mercury https://github.com/libretro/bsnes-mercury.git PROJECT YES BSNES_JNI Makefile target-libretro/jni performance