Try to make whitespace consistently 3 space tabs in shell scripts, also use env for bash

This commit is contained in:
T. Joseph Carter 2015-02-16 19:19:30 -08:00
parent 3ee02549dd
commit 498bc87f9a
27 changed files with 3640 additions and 3625 deletions

1
.gitignore vendored
View File

@ -62,6 +62,7 @@
/libretro-virtualjaguar/ /libretro-virtualjaguar/
/libretro-yabause/ /libretro-yabause/
/libretro-dat-pull/ /libretro-dat-pull/
/libretro-sdk/
/libretrodb/ /libretrodb/
/retroarch/ /retroarch/
/build-summary.log /build-summary.log

View File

@ -38,27 +38,27 @@ RESET_FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET_ALT
build_summary_log() { build_summary_log() {
if [ -n "${BUILD_SUMMARY}" ]; then if [ -n "${BUILD_SUMMARY}" ]; then
if [ "${1}" -eq "0" ]; then if [ "${1}" -eq "0" ]; then
echo ${2} >> ${BUILD_SUCCESS} echo ${2} >> ${BUILD_SUCCESS}
else else
echo ${2} >> ${BUILD_FAIL} echo ${2} >> ${BUILD_FAIL}
fi fi
fi fi
} }
check_opengl() { check_opengl() {
if [ "${BUILD_LIBRETRO_GL}" ]; then if [ "${BUILD_LIBRETRO_GL}" ]; then
if [ "${ENABLE_GLES}" ]; then if [ "${ENABLE_GLES}" ]; then
echo '=== OpenGL ES enabled ===' echo '=== OpenGL ES enabled ==='
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-gles" export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-gles"
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}" export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
else else
echo '=== OpenGL enabled ===' echo '=== OpenGL enabled ==='
export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-opengl" export FORMAT_COMPILER_TARGET="${FORMAT_COMPILER_TARGET}-opengl"
export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}" export FORMAT_COMPILER_TARGET_ALT="${FORMAT_COMPILER_TARGET}"
fi fi
else else
echo '=== OpenGL disabled in build ===' echo '=== OpenGL disabled in build ==='
fi fi
} }
@ -70,17 +70,17 @@ reset_compiler_targets() {
build_libretro_pcsx_rearmed_interpreter() { build_libretro_pcsx_rearmed_interpreter() {
build_dir="${WORKDIR}/libretro-pcsx_rearmed" build_dir="${WORKDIR}/libretro-pcsx_rearmed"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '=== Building PCSX ReARMed Interpreter ===' echo '=== Building PCSX ReARMed Interpreter ==='
cd "${build_dir}" cd "${build_dir}"
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean PCSX ReARMed' "${MAKE}" -f Makefile.libretro platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean PCSX ReARMed'
fi fi
"${MAKE}" -f Makefile.libretro USE_DYNAREC=0 platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build PCSX ReARMed' "${MAKE}" -f Makefile.libretro USE_DYNAREC=0 platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build PCSX ReARMed'
cp "pcsx_rearmed_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/pcsx_rearmed_interpreter${FORMAT}.${FORMAT_EXT}" cp "pcsx_rearmed_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/pcsx_rearmed_interpreter${FORMAT}.${FORMAT_EXT}"
build_summary_log ${?} "pcsx_rearmed_interpreter" build_summary_log ${?} "pcsx_rearmed_interpreter"
else else
echo 'PCSX ReARMed not fetched, skipping ...' echo 'PCSX ReARMed not fetched, skipping ...'
fi fi
} }
@ -92,15 +92,15 @@ build_libretro_pcsx_rearmed_interpreter() {
build_libretro_generic_makefile_subcore() { build_libretro_generic_makefile_subcore() {
build_dir="${WORKDIR}/libretro-${1}" build_dir="${WORKDIR}/libretro-${1}"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo "=== Building ${2} ===" echo "=== Building ${2} ==="
cd "${build_dir}/${3}" cd "${build_dir}/${3}"
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
make -f ${4} platform=${5} -j$JOBS clean || die "Failed to clean ${2}" make -f ${4} platform=${5} -j$JOBS clean || die "Failed to clean ${2}"
fi fi
make -f ${4} platform=${5} -j$JOBS || die "Failed to build ${2}" make -f ${4} platform=${5} -j$JOBS || die "Failed to build ${2}"
cp ${2}_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/${2}_libretro$FORMAT.${FORMAT_EXT} cp ${2}_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/${2}_libretro$FORMAT.${FORMAT_EXT}
build_summary_log ${?} ${2} build_summary_log ${?} ${2}
fi fi
} }
@ -119,11 +119,11 @@ build_libretro_fba_cps1() {
copy_core_to_dist() { copy_core_to_dist() {
if [ "$FORMAT_COMPILER_TARGET" = "theos_ios" ]; then if [ "$FORMAT_COMPILER_TARGET" = "theos_ios" ]; then
cp "objs/obj/${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "objs/obj/${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} ${1} build_summary_log ${?} ${1}
else else
cp "${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} ${1} build_summary_log ${?} ${1}
fi fi
} }
@ -134,19 +134,19 @@ copy_core_to_dist() {
build_libretro_generic_makefile() { build_libretro_generic_makefile() {
build_dir="${WORKDIR}/libretro-${1}" build_dir="${WORKDIR}/libretro-${1}"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo "=== Building ${1} ===" echo "=== Building ${1} ==="
cd "${build_dir}/${2}" cd "${build_dir}/${2}"
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f ${3} platform="${4}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die "Failed to build ${1}" "${MAKE}" -f ${3} platform="${4}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die "Failed to build ${1}"
fi fi
echo "${MAKE}" -f ${3} platform="${4}" CC="$CC" CXX="$CXX" "-j${JOBS}" echo "${MAKE}" -f ${3} platform="${4}" CC="$CC" CXX="$CXX" "-j${JOBS}"
"${MAKE}" -f ${3} platform="${4}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die "Failed to build ${1}" "${MAKE}" -f ${3} platform="${4}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die "Failed to build ${1}"
if [ -z "${5}" ]; then if [ -z "${5}" ]; then
copy_core_to_dist $1 copy_core_to_dist $1
fi fi
else else
echo "${1} not fetched, skipping ..." echo "${1} not fetched, skipping ..."
fi fi
} }
@ -372,141 +372,141 @@ build_libretro_ppsspp() {
build_libretro_mame() { build_libretro_mame() {
build_dir="${WORKDIR}/libretro-mame" build_dir="${WORKDIR}/libretro-mame"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '' echo ''
echo '=== Building MAME ===' echo '=== Building MAME ==='
cd "${build_dir}" cd "${build_dir}"
if [ "$IOS" ]; then if [ "$IOS" ]; then
echo '=== Building MAME (iOS) ===' echo '=== Building MAME (iOS) ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "NATIVE=1" buildtools "-j${JOBS}" || die 'Failed to build MAME buildtools' "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "NATIVE=1" buildtools "-j${JOBS}" || die 'Failed to build MAME buildtools'
"${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" emulator "-j${JOBS}" || die 'Failed to build MAME (iOS)' "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" emulator "-j${JOBS}" || die 'Failed to build MAME (iOS)'
elif [ "$X86_64" = "true" ]; then elif [ "$X86_64" = "true" ]; then
echo '=== Building MAME64 ===' echo '=== Building MAME64 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
else else
echo '=== Building MAME32 ===' echo '=== Building MAME32 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" -f Makefile.libretro "TARGET=mame" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
fi fi
cp "mame_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "mame_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
else else
echo 'MAME not fetched, skipping ...' echo 'MAME not fetched, skipping ...'
fi fi
} }
build_libretro_mess() { build_libretro_mess() {
build_dir="${WORKDIR}/libretro-mame" build_dir="${WORKDIR}/libretro-mame"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '' echo ''
echo '=== Building MESS ===' echo '=== Building MESS ==='
cd "${build_dir}" cd "${build_dir}"
if [ "$X86_64" = "true" ]; then if [ "$X86_64" = "true" ]; then
echo '=== Building MESS64 ===' echo '=== Building MESS64 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
else else
echo '=== Building MESS32 ===' echo '=== Building MESS32 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
fi fi
cp "mess_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "mess_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} "mess" build_summary_log ${?} "mess"
else else
echo 'MAME not fetched, skipping ...' echo 'MAME not fetched, skipping ...'
fi fi
} }
rebuild_libretro_mess() { rebuild_libretro_mess() {
build_dir="${WORKDIR}/libretro-mame" build_dir="${WORKDIR}/libretro-mame"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '' echo ''
echo '=== Building MESS ===' echo '=== Building MESS ==='
cd "${build_dir}" cd "${build_dir}"
if [ "$X86_64" = "true" ]; then if [ "$X86_64" = "true" ]; then
echo '=== Building MESS64 ===' echo '=== Building MESS64 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
else else
echo '=== Building MESS32 ===' echo '=== Building MESS32 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro "TARGET=mess" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" -f Makefile.libretro "TARGET=mess" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" -f Makefile.libretro "TARGET=mess" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
fi fi
cp "mess_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "mess_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} "mess" build_summary_log ${?} "mess"
else else
echo 'MAME not fetched, skipping ...' echo 'MAME not fetched, skipping ...'
fi fi
} }
build_libretro_ume() { build_libretro_ume() {
build_dir="${WORKDIR}/libretro-mame" build_dir="${WORKDIR}/libretro-mame"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '' echo ''
echo '=== Building UME ===' echo '=== Building UME ==='
cd "${build_dir}" cd "${build_dir}"
if [ "$X86_64" = "true" ]; then if [ "$X86_64" = "true" ]; then
echo '=== Building UME64 ===' echo '=== Building UME64 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
else else
echo '=== Building UME32 ===' echo '=== Building UME32 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi
"${MAKE}" -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
fi
cp "ume_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} "ume"
else
echo 'MAME not fetched, skipping ...'
fi fi
"${MAKE}" -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
fi
cp "ume_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} "ume"
else
echo 'MAME not fetched, skipping ...'
fi
} }
rebuild_libretro_ume() { rebuild_libretro_ume() {
build_dir="${WORKDIR}/libretro-mame" build_dir="${WORKDIR}/libretro-mame"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '' echo ''
echo '=== Building UME ===' echo '=== Building UME ==='
cd "${build_dir}" cd "${build_dir}"
if [ "$X86_64" = "true" ]; then if [ "$X86_64" = "true" ]; then
echo '=== Building UME64 ===' echo '=== Building UME64 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" PTR64=1 -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
else else
echo '=== Building UME32 ===' echo '=== Building UME32 ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile.libretro "TARGET=ume" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME' "${MAKE}" -f Makefile.libretro "TARGET=ume" "PARTIAL=1" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" clean || die 'Failed to clean MAME'
fi fi
"${MAKE}" -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME' "${MAKE}" -f Makefile.libretro "TARGET=ume" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build MAME'
fi fi
cp "ume_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "ume_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} "ume" build_summary_log ${?} "ume"
else else
echo 'MAME not fetched, skipping ...' echo 'MAME not fetched, skipping ...'
fi fi
} }
@ -517,18 +517,18 @@ rebuild_libretro_ume() {
build_libretro_bsnes_modern() { build_libretro_bsnes_modern() {
build_dir="${WORKDIR}/libretro-${1}" build_dir="${WORKDIR}/libretro-${1}"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo "=== Building ${1} ${3} ===" echo "=== Building ${1} ${3} ==="
cd ${build_dir} cd ${build_dir}
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"} rm -f obj/*.{o,"${FORMAT_EXT}"}
rm -f out/*.{o,"${FORMAT_EXT}"} rm -f out/*.{o,"${FORMAT_EXT}"}
fi fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="$CXX11" ui='target-libretro' profile="${3}" "-j${JOBS}" || die "Failed to build ${1} ${3} core" "${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="$CXX11" ui='target-libretro' profile="${3}" "-j${JOBS}" || die "Failed to build ${1} ${3} core"
cp -f "out/${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${1}_${3}_libretro${FORMAT}.${FORMAT_EXT}" cp -f "out/${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${1}_${3}_libretro${FORMAT}.${FORMAT_EXT}"
build_summary_log ${?} "${1}_${3}" build_summary_log ${?} "${1}_${3}"
else else
echo "${1} ${3} not fetched, skipping ..." echo "${1} ${3} not fetched, skipping ..."
fi fi
} }
@ -548,35 +548,35 @@ build_libretro_bsnes_cplusplus98() {
CORENAME="bsnes_cplusplus98" CORENAME="bsnes_cplusplus98"
build_dir="${WORKDIR}/libretro-${CORENAME}" build_dir="${WORKDIR}/libretro-${CORENAME}"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo "=== Building ${CORENAME} ===" echo "=== Building ${CORENAME} ==="
cd ${build_dir} cd ${build_dir}
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" clean || die "Failed to clean ${CORENAME}" "${MAKE}" clean || die "Failed to clean ${CORENAME}"
fi fi
"${MAKE}" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}" "${MAKE}" platform="${FORMAT_COMPILER_TARGET}" CC="$CC" CXX="$CXX" "-j${JOBS}"
cp "out/libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${CORENAME}_libretro${FORMAT}.${FORMAT_EXT}" cp "out/libretro.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${CORENAME}_libretro${FORMAT}.${FORMAT_EXT}"
build_summary_log ${?} ${CORENAME} build_summary_log ${?} ${CORENAME}
else else
echo "${CORENAME} not fetched, skipping ..." echo "${CORENAME} not fetched, skipping ..."
fi fi
} }
build_libretro_bnes() { build_libretro_bnes() {
build_dir="${WORKDIR}/libretro-bnes" build_dir="${WORKDIR}/libretro-bnes"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
echo '=== Building bNES ===' echo '=== Building bNES ==='
cd ${build_dir} cd ${build_dir}
mkdir -p obj mkdir -p obj
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" -f Makefile "-j${JOBS}" clean || die 'Failed to clean bNES' "${MAKE}" -f Makefile "-j${JOBS}" clean || die 'Failed to clean bNES'
fi fi
"${MAKE}" -f Makefile CC="$CC" CXX="$CXX" "-j${JOBS}" compiler="${CXX11}" || die 'Failed to build bNES' "${MAKE}" -f Makefile CC="$CC" CXX="$CXX" "-j${JOBS}" compiler="${CXX11}" || die 'Failed to build bNES'
cp "libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bnes_libretro${FORMAT}.${FORMAT_EXT}" cp "libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bnes_libretro${FORMAT}.${FORMAT_EXT}"
build_summary_log ${?} "bnes" build_summary_log ${?} "bnes"
else else
echo 'bNES not fetched, skipping ...' echo 'bNES not fetched, skipping ...'
fi fi
} }
@ -584,68 +584,68 @@ build_libretro_mupen64() {
check_opengl check_opengl
build_dir="${WORKDIR}/libretro-mupen64plus" build_dir="${WORKDIR}/libretro-mupen64plus"
if [ -d "${build_dir}" ]; then if [ -d "${build_dir}" ]; then
cd "${build_dir}" cd "${build_dir}"
mkdir -p obj mkdir -p obj
if [ "${X86}" ] && [ "${X86_64}" ]; then if [ "${X86}" ] && [ "${X86_64}" ]; then
echo '=== Building Mupen 64 Plus (x86_64 dynarec) ===' echo '=== Building Mupen 64 Plus (x86_64 dynarec) ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" WITH_DYNAREC='x86_64' platform="${FORMAT_COMPILER_TARGET_ALT}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64 (x86_64 dynarec)' "${MAKE}" WITH_DYNAREC='x86_64' platform="${FORMAT_COMPILER_TARGET_ALT}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64 (x86_64 dynarec)'
fi fi
"${MAKE}" WITH_DYNAREC='x86_64' platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64 (x86_64 dynarec)' "${MAKE}" WITH_DYNAREC='x86_64' platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64 (x86_64 dynarec)'
elif [ "${X86}" ]; then elif [ "${X86}" ]; then
echo '=== Building Mupen 64 Plus (x86 32bit dynarec) ===' echo '=== Building Mupen 64 Plus (x86 32bit dynarec) ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" WITH_DYNAREC='x86' platform="${FORMAT_COMPILER_TARGET_ALT}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64 (x86 dynarec)' "${MAKE}" WITH_DYNAREC='x86' platform="${FORMAT_COMPILER_TARGET_ALT}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64 (x86 dynarec)'
fi fi
"${MAKE}" WITH_DYNAREC='x86' platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64 (x86 dynarec)' "${MAKE}" WITH_DYNAREC='x86' platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64 (x86 dynarec)'
elif [ "${CORTEX_A8}" ] || [ "${CORTEX_A9}" ] || [ "${IOS}" ]; then elif [ "${CORTEX_A8}" ] || [ "${CORTEX_A9}" ] || [ "${IOS}" ]; then
echo '=== Building Mupen 64 Plus (ARM dynarec) ===' echo '=== Building Mupen 64 Plus (ARM dynarec) ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" WITH_DYNAREC='arm' platform="${FORMAT_COMPILER_TARGET_ALT}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64 (ARM dynarec)' "${MAKE}" WITH_DYNAREC='arm' platform="${FORMAT_COMPILER_TARGET_ALT}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64 (ARM dynarec)'
fi fi
"${MAKE}" WITH_DYNAREC='arm' platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64 (ARM dynarec)' "${MAKE}" WITH_DYNAREC='arm' platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64 (ARM dynarec)'
else else
echo '=== Building Mupen 64 Plus ===' echo '=== Building Mupen 64 Plus ==='
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
"${MAKE}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64' "${MAKE}" "-j${JOBS}" clean || die 'Failed to clean Mupen 64'
fi fi
"${MAKE}" platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64' "${MAKE}" platform="${FORMAT_COMPILER_TARGET_ALT}" CC="$CC" CXX="$CXX" "-j${JOBS}" || die 'Failed to build Mupen 64'
fi fi
cp "mupen64plus_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" cp "mupen64plus_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}"
build_summary_log ${?} "mupen64plus" build_summary_log ${?} "mupen64plus"
else else
echo 'Mupen64 Plus not fetched, skipping ...' echo 'Mupen64 Plus not fetched, skipping ...'
fi fi
reset_compiler_targets reset_compiler_targets
} }
build_summary() { build_summary() {
if [ -z "${NOBUILD_SUMMARY}" ]; then if [ -z "${NOBUILD_SUMMARY}" ]; then
echo "=== Core Build Summary ===" > ${BUILD_SUMMARY} echo "=== Core Build Summary ===" > ${BUILD_SUMMARY}
if [ -r "${BUILD_SUCCESS}" ]; then if [ -r "${BUILD_SUCCESS}" ]; then
echo "`wc -l < ${BUILD_SUCCESS}` core(s) successfully built:" >> ${BUILD_SUMMARY} echo "`wc -l < ${BUILD_SUCCESS}` core(s) successfully built:" >> ${BUILD_SUMMARY}
${BUILD_SUMMARY_FMT} ${BUILD_SUCCESS} >> ${BUILD_SUMMARY} ${BUILD_SUMMARY_FMT} ${BUILD_SUCCESS} >> ${BUILD_SUMMARY}
else else
echo " 0 cores successfully built. :(" >> ${BUILD_SUMMARY} echo " 0 cores successfully built. :(" >> ${BUILD_SUMMARY}
echo "`wc -l < ${BUILD_FAIL}` core(s) failed to build:" echo "`wc -l < ${BUILD_FAIL}` core(s) failed to build:"
fi fi
if [ -r "${BUILD_FAIL}" ]; then if [ -r "${BUILD_FAIL}" ]; then
echo "`wc -l < ${BUILD_FAIL}` core(s) failed to build:" >> ${BUILD_SUMMARY} echo "`wc -l < ${BUILD_FAIL}` core(s) failed to build:" >> ${BUILD_SUMMARY}
${BUILD_SUMMARY_FMT} ${BUILD_FAIL} >> ${BUILD_SUMMARY} ${BUILD_SUMMARY_FMT} ${BUILD_FAIL} >> ${BUILD_SUMMARY}
else else
echo " 0 cores failed to build! :D" >> ${BUILD_SUMMARY} echo " 0 cores failed to build! :D" >> ${BUILD_SUMMARY}
fi fi
rm -f $BUILD_SUCCESS $BUILD_FAIL rm -f $BUILD_SUCCESS $BUILD_FAIL
cat ${BUILD_SUMMARY} cat ${BUILD_SUMMARY}
fi fi
} }
create_dist_dir() { create_dist_dir() {
if [ -d "${RARCH_DIST_DIR}" ]; then if [ -d "${RARCH_DIST_DIR}" ]; then
echo "Directory ${RARCH_DIST_DIR} already exists, skipping creation..." echo "Directory ${RARCH_DIST_DIR} already exists, skipping creation..."
else else
mkdir -p "${RARCH_DIST_DIR}" mkdir -p "${RARCH_DIST_DIR}"
fi fi
} }

View File

@ -17,61 +17,61 @@ fi
. ${BASE_DIR}/iKarith-libretro-config.sh . ${BASE_DIR}/iKarith-libretro-config.sh
if [ -z "$RARCH_DIST_DIR" ]; then if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="${WORKDIR}/dist" RARCH_DIR="${WORKDIR}/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR" RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
fi fi
if [ -z "$JOBS" ]; then if [ -z "$JOBS" ]; then
JOBS=7 JOBS=7
fi fi
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
if [ "$HOST_CC" ]; then if [ "$HOST_CC" ]; then
CC="${HOST_CC}-gcc" CC="${HOST_CC}-gcc"
CXX="${HOST_CC}-g++" CXX="${HOST_CC}-g++"
CXX11="${HOST_CC}-g++" CXX11="${HOST_CC}-g++"
STRIP="${HOST_CC}-strip" STRIP="${HOST_CC}-strip"
fi fi
if [ -z "$MAKE" ]; then if [ -z "$MAKE" ]; then
if uname -s | grep -i MINGW32 > /dev/null 2>&1; then if uname -s | grep -i MINGW32 > /dev/null 2>&1; then
MAKE=mingw32-make MAKE=mingw32-make
else else
if type gmake > /dev/null 2>&1; then if type gmake > /dev/null 2>&1; then
MAKE=gmake MAKE=gmake
else else
MAKE=make MAKE=make
fi fi
fi fi
fi fi
if [ -z "$CC" ]; then if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=cc CC=cc
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CC=mingw32-gcc CC=mingw32-gcc
else else
CC=gcc CC=gcc
fi fi
fi fi
if [ -z "$CXX" ]; then if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=c++ CXX=c++
CXX11="clang++ -std=c++11 -stdlib=libc++" CXX11="clang++ -std=c++11 -stdlib=libc++"
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CXX=mingw32-g++ CXX=mingw32-g++
CXX11=mingw32-g++ CXX11=mingw32-g++
else else
CXX=g++ CXX=g++
CXX11=g++ CXX11=g++
fi fi
fi fi
FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET
@ -84,70 +84,70 @@ echo "STRIP = $STRIP"
mkdir -p "$RARCH_DIST_DIR" mkdir -p "$RARCH_DIST_DIR"
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
NOBUILD_SUMMARY=1 NOBUILD_SUMMARY=1
while [ -n "${1}" ]; do while [ -n "${1}" ]; do
"${1}" "${1}"
shift shift
done done
else else
build_libretro_2048 build_libretro_2048
build_libretro_4do build_libretro_4do
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_bsnes_cplusplus98 build_libretro_bsnes_cplusplus98
build_libretro_bsnes build_libretro_bsnes
build_libretro_bsnes_mercury build_libretro_bsnes_mercury
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_snes build_libretro_beetle_snes
build_libretro_catsfc build_libretro_catsfc
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vbam build_libretro_vbam
build_libretro_vba_next build_libretro_vba_next
build_libretro_bnes build_libretro_bnes
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_meteor build_libretro_meteor
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
build_libretro_mame build_libretro_mame
build_libretro_dosbox build_libretro_dosbox
build_libretro_scummvm build_libretro_scummvm
build_libretro_picodrive build_libretro_picodrive
build_libretro_handy build_libretro_handy
build_libretro_desmume build_libretro_desmume
if [ $FORMAT_COMPILER_TARGET != "win" ]; then if [ $FORMAT_COMPILER_TARGET != "win" ]; then
build_libretro_pcsx_rearmed build_libretro_pcsx_rearmed
fi fi
build_libretro_yabause build_libretro_yabause
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
build_libretro_dinothawr build_libretro_dinothawr
build_libretro_virtualjaguar build_libretro_virtualjaguar
build_libretro_mupen64 build_libretro_mupen64
build_libretro_ffmpeg build_libretro_ffmpeg
build_libretro_3dengine build_libretro_3dengine
build_libretro_ppsspp build_libretro_ppsspp
build_libretro_o2em build_libretro_o2em
build_libretro_hatari build_libretro_hatari
build_libretro_gpsp build_libretro_gpsp
build_libretro_emux build_libretro_emux
build_summary build_summary
fi fi

View File

@ -2,91 +2,91 @@
# Architecture Assignment # Architecture Assignment
config_cpu() { config_cpu() {
[ -n "${2}" ] && ARCH=${1} [ -n "${2}" ] && ARCH=${1}
[ -z "${ARCH}" ] && ARCH="`uname -m`" [ -z "${ARCH}" ] && ARCH="`uname -m`"
case "${ARCH}" in case "${ARCH}" in
x86_64) x86_64)
X86=true X86=true
X86_64=true X86_64=true
;; ;;
i386|i686) i386|i686)
X86=true X86=true
;; ;;
armv*) armv*)
ARM=true ARM=true
export FORMAT_COMPILER_TARGET=armv export FORMAT_COMPILER_TARGET=armv
export RARCHCFLAGS="${RARCHCFLAGS} -marm" export RARCHCFLAGS="${RARCHCFLAGS} -marm"
case "${ARCH}" in case "${ARCH}" in
armv5tel) ARMV5=true ;; armv5tel) ARMV5=true ;;
armv6l) ARMV6=true ;; armv6l) ARMV6=true ;;
armv7l) ARMV7=true ;; armv7l) ARMV7=true ;;
esac esac
;; ;;
esac esac
if [ -n "${PROCESSOR_ARCHITEW6432}" -a "${PROCESSOR_ARCHITEW6432}" = "AMD64" ]; then if [ -n "${PROCESSOR_ARCHITEW6432}" -a "${PROCESSOR_ARCHITEW6432}" = "AMD64" ]; then
ARCH=x86_64 ARCH=x86_64
X86=true && X86_64=true X86=true && X86_64=true
fi fi
} }
# Platform Assignment # Platform Assignment
config_platform() { config_platform() {
[ -n "${1}" ] && platform="${1}" [ -n "${1}" ] && platform="${1}"
[ -z "${platform}" ] && platform="`uname`" [ -z "${platform}" ] && platform="`uname`"
case "${platform}" in case "${platform}" in
*BSD*) *BSD*)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="unix" FORMAT_COMPILER_TARGET="unix"
DIST_DIR="bsd" DIST_DIR="bsd"
;; ;;
osx|*Darwin*) osx|*Darwin*)
FORMAT_EXT="dylib" FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET="osx" FORMAT_COMPILER_TARGET="osx"
DIST_DIR="osx" DIST_DIR="osx"
;; ;;
win|*mingw32*|*MINGW32*|*MSYS_NT*) win|*mingw32*|*MINGW32*|*MSYS_NT*)
FORMAT_EXT="dll" FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET="win" FORMAT_COMPILER_TARGET="win"
DIST_DIR="win_x86" DIST_DIR="win_x86"
;; ;;
win64|*mingw64*|*MINGW64*) win64|*mingw64*|*MINGW64*)
FORMAT_EXT="dll" FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET="win" FORMAT_COMPILER_TARGET="win"
DIST_DIR="win_x64" DIST_DIR="win_x64"
;; ;;
*psp1*) *psp1*)
FORMAT_EXT="a" FORMAT_EXT="a"
FORMAT_COMPILER_TARGET="psp1" FORMAT_COMPILER_TARGET="psp1"
DIST_DIR="psp1" DIST_DIR="psp1"
;; ;;
*ios|theos_ios*) *ios|theos_ios*)
FORMAT_EXT="dylib" FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET="theos_ios" FORMAT_COMPILER_TARGET="theos_ios"
DIST_DIR="theos" DIST_DIR="theos"
;; ;;
android) android)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="android" FORMAT_COMPILER_TARGET="android"
DIST_DIR="android" DIST_DIR="android"
;; ;;
*android-armv7*) *android-armv7*)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="android-armv7" FORMAT_COMPILER_TARGET="android-armv7"
DIST_DIR="android/armeabi-v7a" DIST_DIR="android/armeabi-v7a"
;; ;;
*) *)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="unix" FORMAT_COMPILER_TARGET="unix"
DIST_DIR="unix" DIST_DIR="unix"
;; ;;
esac esac
export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET" export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET"
} }
config_log_build_host() { config_log_build_host() {
echo "PLATFORM: ${platform}" echo "PLATFORM: ${platform}"
echo "ARCHITECTURE: ${ARCH}" echo "ARCHITECTURE: ${ARCH}"
echo "TARGET: ${FORMAT_COMPILER_TARGET}" echo "TARGET: ${FORMAT_COMPILER_TARGET}"
} }
config_cpu config_cpu
@ -94,11 +94,11 @@ config_platform
config_log_build_host config_log_build_host
if [ -z "${JOBS}" ]; then if [ -z "${JOBS}" ]; then
if command -v nproc >/dev/null; then if command -v nproc >/dev/null; then
JOBS=`nproc` JOBS=`nproc`
else else
JOBS=1 JOBS=1
fi fi
fi fi
#if uncommented, will fetch repos with read+write access. Useful for committers #if uncommented, will fetch repos with read+write access. Useful for committers
@ -179,16 +179,16 @@ export RA_ANDROID_MIN_API=android-9
# for now just to test a few cores. # for now just to test a few cores.
if [[ "${FORMAT_COMPILER_TARGET}" = "osx" && -z "${NOUNIVERSAL}" ]]; then if [[ "${FORMAT_COMPILER_TARGET}" = "osx" && -z "${NOUNIVERSAL}" ]]; then
case "${ARCH}" in case "${ARCH}" in
i385|x86_64) i385|x86_64)
export ARCHFLAGS="-arch i386 -arch x86_64" export ARCHFLAGS="-arch i386 -arch x86_64"
;; ;;
ppc|ppc64) ppc|ppc64)
export ARCHFLAGS="-arch ppc -arch ppc64" export ARCHFLAGS="-arch ppc -arch ppc64"
;; ;;
*) *)
echo "Universal build requested with unknown ARCH=\"${ARCH}\"" echo "Universal build requested with unknown ARCH=\"${ARCH}\""
esac esac
fi fi
#CORE BUILD SUMMARY #CORE BUILD SUMMARY
@ -201,11 +201,11 @@ BUILD_SUMMARY=${WORKDIR}/build-summary.log
BUILD_SUCCESS=${WORKDIR}/build-success.log BUILD_SUCCESS=${WORKDIR}/build-success.log
BUILD_FAIL=${WORKDIR}/build-fail.log BUILD_FAIL=${WORKDIR}/build-fail.log
if [ -z "${BUILD_SUMMARY_FMT}" ]; then if [ -z "${BUILD_SUMMARY_FMT}" ]; then
if command -v column >/dev/null; then if command -v column >/dev/null; then
BUILD_SUMMARY_FMT=column BUILD_SUMMARY_FMT=column
else else
BUILD_SUMMARY_FMT=cat BUILD_SUMMARY_FMT=cat
fi fi
fi fi
@ -216,6 +216,6 @@ fi
#The following below is just a sample. #The following below is just a sample.
if [ -f "${WORKDIR}/libretro-config-user.sh" ]; then if [ -f "${WORKDIR}/libretro-config-user.sh" ]; then
. ${WORKDIR}/libretro-config-user.sh . ${WORKDIR}/libretro-config-user.sh
fi fi

View File

@ -17,48 +17,48 @@ fi
. $BASE_DIR/iKarith-libretro-config.sh . $BASE_DIR/iKarith-libretro-config.sh
if [ -z "$RARCH_DIST_DIR" ]; then if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="$BASE_DIR/dist" RARCH_DIR="$BASE_DIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR" RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
fi fi
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
if [ "$HOST_CC" ]; then if [ "$HOST_CC" ]; then
CC="${HOST_CC}-gcc" CC="${HOST_CC}-gcc"
CXX="${HOST_CC}-g++" CXX="${HOST_CC}-g++"
STRIP="${HOST_CC}-strip" STRIP="${HOST_CC}-strip"
fi fi
if [ -z "$MAKE" ]; then if [ -z "$MAKE" ]; then
if [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then if [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
MAKE=mingw32-make MAKE=mingw32-make
else else
MAKE=make MAKE=make
fi fi
fi fi
if [ -z "$CC" ]; then if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=clang CC=clang
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
CC=mingw32-gcc CC=mingw32-gcc
else else
CC=gcc CC=gcc
fi fi
fi fi
if [ -z "$CXX" ]; then if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=clang++ CXX=clang++
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
CXX=mingw32-g++ CXX=mingw32-g++
else else
CXX=g++ CXX=g++
fi fi
fi fi
echo "CC = $CC" echo "CC = $CC"
@ -71,59 +71,59 @@ export RARCHCFLAGS=""
check_deps() check_deps()
{ {
if [ $ENABLE_GLES ]; then if [ $ENABLE_GLES ]; then
echo "=== Enabling OpenGL ES ===" echo "=== Enabling OpenGL ES ==="
export ENABLE_GLES="--enable-gles" export ENABLE_GLES="--enable-gles"
fi fi
if [ $ARM_NEON ]; then if [ $ARM_NEON ]; then
echo "=== Enabling ARM NEON support ===" echo "=== Enabling ARM NEON support ==="
export ENABLE_NEON="--enable-neon" export ENABLE_NEON="--enable-neon"
fi fi
if [ $ARM_HARDFLOAT ]; then if [ $ARM_HARDFLOAT ]; then
echo "=== Enabling ARM Hard float ABI support ===" echo "=== Enabling ARM Hard float ABI support ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=hard" export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=hard"
fi fi
if [ $ARM_SOFTFLOAT ]; then if [ $ARM_SOFTFLOAT ]; then
echo "=== Enabling ARM Soft float ABI support ===" echo "=== Enabling ARM Soft float ABI support ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=softfp" export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=softfp"
fi fi
if [ "$CORTEX_A8" ]; then if [ "$CORTEX_A8" ]; then
echo "=== Enabling Cortex A8 CFLAGS ===" echo "=== Enabling Cortex A8 CFLAGS ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a8 -mtune=cortex-a8" export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a8 -mtune=cortex-a8"
fi fi
if [ "$CORTEX_A9" ]; then if [ "$CORTEX_A9" ]; then
echo "=== Enabling Cortex A9 CFLAGS ===" echo "=== Enabling Cortex A9 CFLAGS ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a9 -mtune=cortex-a9" export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a9 -mtune=cortex-a9"
fi fi
if [ $ARM_NEON ]; then if [ $ARM_NEON ]; then
echo "=== Enabling ARM NEON support (CFLAGS) ===" echo "=== Enabling ARM NEON support (CFLAGS) ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mfpu=neon" export RARCHCFLAGS="${RARCHCFLAGS} -mfpu=neon"
fi fi
} }
build_retroarch() build_retroarch()
{ {
cd "$BASE_DIR" cd "$BASE_DIR"
pwd pwd
if [ -d "retroarch" ]; then if [ -d "retroarch" ]; then
echo "=== Building RetroArch ===" echo "=== Building RetroArch ==="
cd retroarch cd retroarch
check_deps check_deps
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
./configure $ENABLE_GLES $ENABLE_NEON ./configure $ENABLE_GLES $ENABLE_NEON
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS clean || die "Failed to clean RetroArch" ${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS clean || die "Failed to clean RetroArch"
fi fi
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS || die "Failed to build RetroArch" ${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS || die "Failed to build RetroArch"
else else
echo "RetroArch not fetched, skipping ..." echo "RetroArch not fetched, skipping ..."
fi fi
} }
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_retroarch build_retroarch
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
. ./libretro-config.sh . ./libretro-config.sh
@ -8,20 +9,20 @@ IFS=' ' read -ra ABIS <<< "$TARGET_ABIS"
# BSDs don't have readlink -f # BSDs don't have readlink -f
read_link() read_link()
{ {
TARGET_FILE="$1" TARGET_FILE="$1"
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
while [ -L "$TARGET_FILE" ] while [ -L "$TARGET_FILE" ]
do do
TARGET_FILE=$(readlink "$TARGET_FILE") TARGET_FILE=$(readlink "$TARGET_FILE")
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
done done
PHYS_DIR=$(pwd -P) PHYS_DIR=$(pwd -P)
RESULT="$PHYS_DIR/$TARGET_FILE" RESULT="$PHYS_DIR/$TARGET_FILE"
echo $RESULT echo $RESULT
} }
SCRIPT=$(read_link "$0") SCRIPT=$(read_link "$0")
@ -34,8 +35,8 @@ FORMAT_EXT=so
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
@ -44,273 +45,273 @@ die()
# $2 is subdir (if there's no subdir, put "." here) # $2 is subdir (if there's no subdir, put "." here)
build_libretro_generic_makefile() build_libretro_generic_makefile()
{ {
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-${1}" ]; then if [ -d "libretro-${1}" ]; then
echo "=== Building ${1} ===" echo "=== Building ${1} ==="
cd libretro-${1} cd libretro-${1}
cd ${2} cd ${2}
for a in "${ABIS[@]}"; do for a in "${ABIS[@]}"; do
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${1}" ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${1}"
fi fi
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${1}" ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${1}"
cp ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}.${FORMAT_EXT} cp ../libs/${a}/libretro.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${1}_libretro${FORMAT}.${FORMAT_EXT}
done done
else else
echo "${1} not fetched, skipping ..." echo "${1} not fetched, skipping ..."
fi fi
} }
build_libretro_2048() { build_libretro_2048() {
build_libretro_generic_makefile "2048" "jni" build_libretro_generic_makefile "2048" "jni"
} }
build_libretro_4do() { build_libretro_4do() {
build_libretro_generic_makefile "4do" "jni" build_libretro_generic_makefile "4do" "jni"
} }
build_libretro_bluemsx() { build_libretro_bluemsx() {
build_libretro_generic_makefile "bluemsx" "jni" build_libretro_generic_makefile "bluemsx" "jni"
} }
build_libretro_fmsx() { build_libretro_fmsx() {
build_libretro_generic_makefile "fmsx" "jni" build_libretro_generic_makefile "fmsx" "jni"
} }
build_libretro_dosbox() { build_libretro_dosbox() {
build_libretro_generic_makefile "dosbox" "jni" build_libretro_generic_makefile "dosbox" "jni"
} }
build_libretro_stella() { build_libretro_stella() {
build_libretro_generic_makefile "stella" "jni" build_libretro_generic_makefile "stella" "jni"
} }
build_libretro_genesis_plus_gx() { build_libretro_genesis_plus_gx() {
build_libretro_generic_makefile "genesis_plus_gx" "libretro/jni" build_libretro_generic_makefile "genesis_plus_gx" "libretro/jni"
} }
build_libretro_gpsp() { build_libretro_gpsp() {
build_libretro_generic_makefile "gpsp" "jni" build_libretro_generic_makefile "gpsp" "jni"
} }
build_libretro_vba_next() { build_libretro_vba_next() {
build_libretro_generic_makefile "vba_next" "libretro/jni" build_libretro_generic_makefile "vba_next" "libretro/jni"
} }
build_libretro_vbam() { build_libretro_vbam() {
build_libretro_generic_makefile "vbam" "src/libretro/jni" build_libretro_generic_makefile "vbam" "src/libretro/jni"
} }
build_libretro_catsfc() { build_libretro_catsfc() {
build_libretro_generic_makefile "catsfc" "jni" build_libretro_generic_makefile "catsfc" "jni"
} }
build_libretro_prosystem() { build_libretro_prosystem() {
build_libretro_generic_makefile "prosystem" "jni" build_libretro_generic_makefile "prosystem" "jni"
} }
build_libretro_tgbdual() { build_libretro_tgbdual() {
build_libretro_generic_makefile "tgbdual" "libretro/jni" build_libretro_generic_makefile "tgbdual" "libretro/jni"
} }
build_libretro_snes9x() { build_libretro_snes9x() {
build_libretro_generic_makefile "snes9x" "libretro/jni" build_libretro_generic_makefile "snes9x" "libretro/jni"
} }
build_libretro_snes9x_next() { build_libretro_snes9x_next() {
build_libretro_generic_makefile "snes9x_next" "libretro/jni" build_libretro_generic_makefile "snes9x_next" "libretro/jni"
} }
build_libretro_beetle_bsnes() { build_libretro_beetle_bsnes() {
build_libretro_generic_makefile "mednafen_snes" "jni" build_libretro_generic_makefile "mednafen_snes" "jni"
} }
build_libretro_beetle_lynx() { build_libretro_beetle_lynx() {
build_libretro_generic_makefile "mednafen_lynx" "jni" build_libretro_generic_makefile "mednafen_lynx" "jni"
} }
build_libretro_beetle_gba() { build_libretro_beetle_gba() {
build_libretro_generic_makefile "mednafen_gba" "jni" build_libretro_generic_makefile "mednafen_gba" "jni"
} }
build_libretro_beetle_ngp() { build_libretro_beetle_ngp() {
build_libretro_generic_makefile "mednafen_ngp" "jni" build_libretro_generic_makefile "mednafen_ngp" "jni"
} }
build_libretro_beetle_wswan() { build_libretro_beetle_wswan() {
build_libretro_generic_makefile "mednafen_wswan" "jni" build_libretro_generic_makefile "mednafen_wswan" "jni"
} }
build_libretro_beetle_psx() { build_libretro_beetle_psx() {
build_libretro_generic_makefile "mednafen_psx" "jni" build_libretro_generic_makefile "mednafen_psx" "jni"
} }
build_libretro_beetle_pcfx() { build_libretro_beetle_pcfx() {
build_libretro_generic_makefile "mednafen_pcfx" "jni" build_libretro_generic_makefile "mednafen_pcfx" "jni"
} }
build_libretro_beetle_vb() { build_libretro_beetle_vb() {
build_libretro_generic_makefile "mednafen_vb" "jni" build_libretro_generic_makefile "mednafen_vb" "jni"
} }
build_libretro_beetle_pce_fast() { build_libretro_beetle_pce_fast() {
build_libretro_generic_makefile "mednafen_pce_fast" "jni" build_libretro_generic_makefile "mednafen_pce_fast" "jni"
} }
build_libretro_beetle_supergrafx() { build_libretro_beetle_supergrafx() {
build_libretro_generic_makefile "mednafen_supergrafx" "jni" build_libretro_generic_makefile "mednafen_supergrafx" "jni"
} }
build_libretro_nx() { build_libretro_nx() {
build_libretro_generic_makefile "nxengine" "jni" build_libretro_generic_makefile "nxengine" "jni"
} }
build_libretro_prboom() build_libretro_prboom()
{ {
build_libretro_generic_makefile "prboom" "libretro/jni" build_libretro_generic_makefile "prboom" "libretro/jni"
} }
build_libretro_nestopia() { build_libretro_nestopia() {
build_libretro_generic_makefile "nestopia" "libretro/jni" build_libretro_generic_makefile "nestopia" "libretro/jni"
} }
build_libretro_tyrquake() { build_libretro_tyrquake() {
build_libretro_generic_makefile "tyrquake" "libretro/jni" build_libretro_generic_makefile "tyrquake" "libretro/jni"
} }
build_libretro_pcsx_rearmed() { build_libretro_pcsx_rearmed() {
build_libretro_generic_makefile "pcsx_rearmed" "jni" build_libretro_generic_makefile "pcsx_rearmed" "jni"
} }
build_libretro_ppsspp() { build_libretro_ppsspp() {
build_libretro_generic_makefile "ppsspp" "libretro/jni" build_libretro_generic_makefile "ppsspp" "libretro/jni"
} }
build_libretro_picodrive() { build_libretro_picodrive() {
build_libretro_generic_makefile "picodrive" "jni" build_libretro_generic_makefile "picodrive" "jni"
} }
build_libretro_quicknes() { build_libretro_quicknes() {
build_libretro_generic_makefile "quicknes" "libretro/jni" build_libretro_generic_makefile "quicknes" "libretro/jni"
} }
build_libretro_handy() { build_libretro_handy() {
build_libretro_generic_makefile "handy" "libretro/jni" build_libretro_generic_makefile "handy" "libretro/jni"
} }
build_libretro_yabause() { build_libretro_yabause() {
build_libretro_generic_makefile "yabause" "libretro/jni" build_libretro_generic_makefile "yabause" "libretro/jni"
} }
build_libretro_vecx() { build_libretro_vecx() {
build_libretro_generic_makefile "vecx" "libretro/jni" build_libretro_generic_makefile "vecx" "libretro/jni"
} }
build_libretro_mupen64() build_libretro_mupen64()
{ {
build_libretro_generic_makefile "mupen64plus" "libretro/jni" build_libretro_generic_makefile "mupen64plus" "libretro/jni"
} }
build_libretro_3dengine() { build_libretro_3dengine() {
build_libretro_generic_makefile "3dengine" "jni" build_libretro_generic_makefile "3dengine" "jni"
} }
build_libretro_o2em() { build_libretro_o2em() {
build_libretro_generic_makefile "o2em" "jni" build_libretro_generic_makefile "o2em" "jni"
} }
build_libretro_fceumm() { build_libretro_fceumm() {
build_libretro_generic_makefile "fceumm" "src/drivers/libretro/jni" build_libretro_generic_makefile "fceumm" "src/drivers/libretro/jni"
} }
build_libretro_gambatte() { build_libretro_gambatte() {
build_libretro_generic_makefile "gambatte" "libgambatte/libretro/jni" build_libretro_generic_makefile "gambatte" "libgambatte/libretro/jni"
} }
build_libretro_meteor() { build_libretro_meteor() {
build_libretro_generic_makefile "meteor" "libretro/jni" build_libretro_generic_makefile "meteor" "libretro/jni"
} }
build_libretro_dinothawr() { build_libretro_dinothawr() {
build_libretro_generic_makefile "dinothawr" "android/eclipse/jni" build_libretro_generic_makefile "dinothawr" "android/eclipse/jni"
} }
build_libretro_virtualjaguar() { build_libretro_virtualjaguar() {
build_libretro_generic_makefile "virtualjaguar" "jni" build_libretro_generic_makefile "virtualjaguar" "jni"
} }
build_libretro_desmume() { build_libretro_desmume() {
build_libretro_generic_makefile "desmume" "desmume/src/libretro/jni" build_libretro_generic_makefile "desmume" "desmume/src/libretro/jni"
} }
build_libretro_fb_alpha() { build_libretro_fb_alpha() {
build_libretro_generic_makefile "fb_alpha" "svn-current/trunk/projectfiles/libretro-android/jni" build_libretro_generic_makefile "fb_alpha" "svn-current/trunk/projectfiles/libretro-android/jni"
} }
create_dist_dir() create_dist_dir()
{ {
if [ -d $RARCH_DIR ]; then if [ -d $RARCH_DIR ]; then
echo "Directory $RARCH_DIR already exists, skipping creation..." echo "Directory $RARCH_DIR already exists, skipping creation..."
else else
mkdir $RARCH_DIR mkdir $RARCH_DIR
fi fi
if [ -d $RARCH_DIST_DIR ]; then if [ -d $RARCH_DIST_DIR ]; then
echo "Directory $RARCH_DIST_DIR already exists, skipping creation..." echo "Directory $RARCH_DIST_DIR already exists, skipping creation..."
else else
mkdir $RARCH_DIST_DIR mkdir $RARCH_DIST_DIR
fi fi
for a in "${ABIS[@]}"; do for a in "${ABIS[@]}"; do
if [ -d $RARCH_DIST_DIR/${a} ]; then if [ -d $RARCH_DIST_DIR/${a} ]; then
echo "Directory $RARCH_DIST_DIR/${a} already exists, skipping creation..." echo "Directory $RARCH_DIST_DIR/${a} already exists, skipping creation..."
else else
mkdir $RARCH_DIST_DIR/${a} mkdir $RARCH_DIST_DIR/${a}
fi fi
done done
} }
build_libretro_bsnes() build_libretro_bsnes()
{ {
CORENAME="bsnes" CORENAME="bsnes"
#TODO - maybe accuracy/balanced cores as well #TODO - maybe accuracy/balanced cores as well
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-${CORENAME}" ]; then if [ -d "libretro-${CORENAME}" ]; then
echo "=== Building ${CORENAME} ===" echo "=== Building ${CORENAME} ==="
cd libretro-${CORENAME}/ cd libretro-${CORENAME}/
cd target-libretro/jni cd target-libretro/jni
for a in "${ABIS[@]}"; do for a in "${ABIS[@]}"; do
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${CORENAME}" ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${CORENAME}"
fi fi
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${CORENAME}" ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${CORENAME}"
cp ../libs/${a}/libretro_${CORENAME}_performance.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${CORENAME}_performance_libretro${FORMAT}.${FORMAT_EXT} cp ../libs/${a}/libretro_${CORENAME}_performance.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${CORENAME}_performance_libretro${FORMAT}.${FORMAT_EXT}
done done
else else
echo "${CORENAME} not fetched, skipping ..." echo "${CORENAME} not fetched, skipping ..."
fi fi
} }
build_libretro_bsnes_mercury() build_libretro_bsnes_mercury()
{ {
CORENAME="bsnes" CORENAME="bsnes"
#TODO - maybe accuracy/balanced cores as well #TODO - maybe accuracy/balanced cores as well
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-${CORENAME}" ]; then if [ -d "libretro-${CORENAME}" ]; then
echo "=== Building ${CORENAME}-mercury ===" echo "=== Building ${CORENAME}-mercury ==="
cd libretro-${CORENAME}/ cd libretro-${CORENAME}/
cd target-libretro/jni cd target-libretro/jni
for a in "${ABIS[@]}"; do for a in "${ABIS[@]}"; do
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${CORENAME}" ndk-build clean APP_ABI=${a} || die "Failed to clean ${a} ${CORENAME}"
fi fi
ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${CORENAME}" ndk-build -j$JOBS APP_ABI=${a} || die "Failed to build ${a} ${CORENAME}"
cp ../libs/${a}/libretro_${CORENAME}_performance.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${CORENAME}_mercury_performance_libretro${FORMAT}.${FORMAT_EXT} cp ../libs/${a}/libretro_${CORENAME}_performance.${FORMAT_EXT} $RARCH_DIST_DIR/${a}/${CORENAME}_mercury_performance_libretro${FORMAT}.${FORMAT_EXT}
done done
else else
echo "${CORENAME} not fetched, skipping ..." echo "${CORENAME} not fetched, skipping ..."
fi fi
} }
@ -318,60 +319,60 @@ build_libretro_bsnes_mercury()
create_dist_dir create_dist_dir
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_2048 build_libretro_2048
build_libretro_4do build_libretro_4do
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
#build_libretro_bsnes_cplusplus98 #build_libretro_bsnes_cplusplus98
build_libretro_bsnes build_libretro_bsnes
build_libretro_bsnes_mercury build_libretro_bsnes_mercury
build_libretro_beetle_lynx build_libretro_beetle_lynx
#build_libretro_beetle_gba #build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_mednafen_psx build_libretro_mednafen_psx
#build_libretro_beetle_bsnes #build_libretro_beetle_bsnes
build_libretro_catsfc build_libretro_catsfc
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vbam build_libretro_vbam
build_libretro_vba_next build_libretro_vba_next
#build_libretro_bnes #build_libretro_bnes
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_meteor build_libretro_meteor
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
#build_libretro_mame078 #build_libretro_mame078
#build_libretro_mame #build_libretro_mame
build_libretro_dosbox build_libretro_dosbox
#build_libretro_scummvm #build_libretro_scummvm
build_libretro_picodrive build_libretro_picodrive
build_libretro_handy build_libretro_handy
build_libretro_desmume build_libretro_desmume
build_libretro_pcsx_rearmed build_libretro_pcsx_rearmed
build_libretro_yabause build_libretro_yabause
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
build_libretro_dinothawr build_libretro_dinothawr
build_libretro_virtualjaguar build_libretro_virtualjaguar
build_libretro_mupen64 build_libretro_mupen64
#build_libretro_ffmpeg #build_libretro_ffmpeg
build_libretro_3dengine build_libretro_3dengine
#build_libretro_ppsspp #build_libretro_ppsspp
build_libretro_o2em build_libretro_o2em
build_libretro_gpsp build_libretro_gpsp
fi fi

View File

@ -1,9 +1,9 @@
#!/bin/bash # vim: set ts=3 sw=3 noet ft=sh : bash
build_libretro_fba() build_libretro_fba()
{ {
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_fba_cps1 build_libretro_fba_cps1
build_libretro_generic_makefile_subcore "fb_alpha" "fba_cores_cps2" "svn-old/trunk/fbacores/cps2" "makefile.libretro" ${FORMAT_COMPILER_TARGET} build_libretro_generic_makefile_subcore "fb_alpha" "fba_cores_cps2" "svn-old/trunk/fbacores/cps2" "makefile.libretro" ${FORMAT_COMPILER_TARGET}
build_libretro_fba_neogeo build_libretro_fba_neogeo
} }

View File

@ -1,130 +1,130 @@
#!/bin/bash # vim: set ts=3 sw=3 noet ft=sh : bash
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
# $1 is corename # $1 is corename
# $2 subdir. If there is no subdir, input "." here # $2 subdir. If there is no subdir, input "." here
# $3 build configuration - ie. release or release_ltcg # $3 build configuration - ie. release or release_ltcg
build_libretro_generic_makefile() { build_libretro_generic_makefile() {
cd "$BASE_DIR" cd "$BASE_DIR"
if [ -d "libretro-${1}" ]; then if [ -d "libretro-${1}" ]; then
echo "=== Building ${1} ===" echo "=== Building ${1} ==="
cd libretro-${1} cd libretro-${1}
cd ${2} cd ${2}
cd msvc cd msvc
cmd.exe /k $MSVC_NAME.bat cmd.exe /k $MSVC_NAME.bat
cp $MSVC_NAME/${3}/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/${1}_libretro$FORMAT.$FORMAT_EXT cp $MSVC_NAME/${3}/${MSVC_NAME}.${FORMAT_EXT} "$RARCH_DIST_DIR"/${1}_libretro$FORMAT.$FORMAT_EXT
else else
echo "${1} not fetched, skipping ..." echo "${1} not fetched, skipping ..."
fi fi
} }
build_libretro_beetle_bsnes() { build_libretro_beetle_bsnes() {
build_libretro_generic_makefile "mednafen_snes" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_snes" "." $RELEASE_LTCG
} }
build_libretro_beetle_lynx() { build_libretro_beetle_lynx() {
build_libretro_generic_makefile "mednafen_lynx" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_lynx" "." $RELEASE_LTCG
} }
build_libretro_beetle_wswan() { build_libretro_beetle_wswan() {
build_libretro_generic_makefile "mednafen_wswan" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_wswan" "." $RELEASE_LTCG
} }
build_libretro_beetle_gba() { build_libretro_beetle_gba() {
build_libretro_generic_makefile "mednafen_gba" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_gba" "." $RELEASE_LTCG
} }
build_libretro_beetle_ngp() { build_libretro_beetle_ngp() {
build_libretro_generic_makefile "mednafen_ngp" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_ngp" "." $RELEASE_LTCG
} }
build_libretro_beetle_pce_fast() { build_libretro_beetle_pce_fast() {
build_libretro_generic_makefile "mednafen_pce_fast" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_pce_fast" "." $RELEASE_LTCG
} }
build_libretro_beetle_supergrafx() { build_libretro_beetle_supergrafx() {
build_libretro_generic_makefile "mednafen_supergrafx" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_supergrafx" "." $RELEASE_LTCG
} }
build_libretro_beetle_pcfx() { build_libretro_beetle_pcfx() {
build_libretro_generic_makefile "mednafen_pcfx" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_pcfx" "." $RELEASE_LTCG
} }
build_libretro_beetle_vb() { build_libretro_beetle_vb() {
build_libretro_generic_makefile "mednafen_vb" "." $RELEASE_LTCG build_libretro_generic_makefile "mednafen_vb" "." $RELEASE_LTCG
} }
build_libretro_snes9x() { build_libretro_snes9x() {
build_libretro_generic_makefile "snes9x" "libretro" $RELEASE_LTCG build_libretro_generic_makefile "snes9x" "libretro" $RELEASE_LTCG
} }
build_libretro_s9x_next() { build_libretro_s9x_next() {
build_libretro_generic_makefile "snes9x_next" "libretro" $RELEASE_LTCG build_libretro_generic_makefile "snes9x_next" "libretro" $RELEASE_LTCG
} }
build_libretro_genesis_plus_gx() { build_libretro_genesis_plus_gx() {
build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE_LTCG build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE_LTCG
} }
build_libretro_vba_next() { build_libretro_vba_next() {
build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE build_libretro_generic_makefile "genesis_plus_gx" "libretro" $RELEASE
} }
build_libretro_mame078() { build_libretro_mame078() {
build_libretro_generic_makefile "mame078" "libretro" $RELEASE build_libretro_generic_makefile "mame078" "libretro" $RELEASE
} }
build_libretro_fceumm() { build_libretro_fceumm() {
build_libretro_generic_makefile "fceumm" "src/drivers/libretro" $RELEASE_LTCG build_libretro_generic_makefile "fceumm" "src/drivers/libretro" $RELEASE_LTCG
} }
build_libretro_gambatte() build_libretro_gambatte()
{ {
build_libretro_generic_makefile "gambatte" "libgambatte/libretro" $RELEASE_LTCG build_libretro_generic_makefile "gambatte" "libgambatte/libretro" $RELEASE_LTCG
} }
build_libretro_nx() { build_libretro_nx() {
build_libretro_generic_makefile "nxengine" "nxengine-1.0.0.4/libretro" $RELEASE_LTCG build_libretro_generic_makefile "nxengine" "nxengine-1.0.0.4/libretro" $RELEASE_LTCG
} }
build_libretro_prboom() { build_libretro_prboom() {
build_libretro_generic_makefile "prboom" "libretro" $RELEASE_LTCG build_libretro_generic_makefile "prboom" "libretro" $RELEASE_LTCG
} }
build_libretro_stella() { build_libretro_stella() {
build_libretro_generic_makefile "stella" "." $RELEASE_LTCG build_libretro_generic_makefile "stella" "." $RELEASE_LTCG
} }
build_libretro_picodrive() { build_libretro_picodrive() {
build_libretro_generic_makefile "picodrive" "platform/libretro" $RELEASE_LTCG build_libretro_generic_makefile "picodrive" "platform/libretro" $RELEASE_LTCG
} }
build_libretro_nestopia() { build_libretro_nestopia() {
build_libretro_generic_makefile "nestopia" "libretro" $RELEASE_LTCG build_libretro_generic_makefile "nestopia" "libretro" $RELEASE_LTCG
} }
build_libretro_tyrquake() { build_libretro_tyrquake() {
build_libretro_generic_makefile "tyrquake" "libretro" $RELEASE_LTCG build_libretro_generic_makefile "tyrquake" "libretro" $RELEASE_LTCG
} }
create_dist_dir() create_dist_dir()
{ {
if [ -d $RARCH_DIR ]; then if [ -d $RARCH_DIR ]; then
echo "Directory $RARCH_DIR already exists, skipping creation..." echo "Directory $RARCH_DIR already exists, skipping creation..."
else else
mkdir $RARCH_DIR mkdir $RARCH_DIR
fi fi
if [ -d $RARCH_DIST_DIR ]; then if [ -d $RARCH_DIST_DIR ]; then
echo "Directory $RARCH_DIST_DIR already exists, skipping creation..." echo "Directory $RARCH_DIST_DIR already exists, skipping creation..."
else else
mkdir $RARCH_DIST_DIR mkdir $RARCH_DIST_DIR
fi fi
} }
create_dist_dir create_dist_dir

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,23 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
# BSDs don't have readlink -f # BSDs don't have readlink -f
read_link() read_link()
{ {
TARGET_FILE="$1" TARGET_FILE="$1"
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
while [ -L "$TARGET_FILE" ] while [ -L "$TARGET_FILE" ]
do do
TARGET_FILE=$(readlink "$TARGET_FILE") TARGET_FILE=$(readlink "$TARGET_FILE")
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
done done
PHYS_DIR=$(pwd -P) PHYS_DIR=$(pwd -P)
RESULT="$PHYS_DIR/$TARGET_FILE" RESULT="$PHYS_DIR/$TARGET_FILE"
echo $RESULT echo $RESULT
} }
SCRIPT=$(read_link "$0") SCRIPT=$(read_link "$0")
@ -30,212 +31,212 @@ LIBRETRODATABASE_META_DAT_DIR=${LIBRETRODATABASE_BASE_DIR}/metadat
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
echo $LIBRETRODB_BASE echo $LIBRETRODB_BASE
build_libretrodb() { build_libretrodb() {
cd $BASE_DIR cd $BASE_DIR
if [ -d "$LIBRETRODB_BASE_DIR" ]; then if [ -d "$LIBRETRODB_BASE_DIR" ]; then
echo "=== Building libretrodb ===" echo "=== Building libretrodb ==="
cd ${LIBRETRODB_BASE_DIR}/ cd ${LIBRETRODB_BASE_DIR}/
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
make -j$JOBS clean || die "Failed to clean ${2}" make -j$JOBS clean || die "Failed to clean ${2}"
fi fi
make -j$JOBS || die "Failed to build ${2}" make -j$JOBS || die "Failed to build ${2}"
fi fi
} }
# $1 is name # $1 is name
# $2 is match key # $2 is match key
build_libretro_database() { build_libretro_database() {
cd $BASE_DIR cd $BASE_DIR
if [ -d "$LIBRETRODB_BASE_DIR" ]; then if [ -d "$LIBRETRODB_BASE_DIR" ]; then
DBFILE=${BASE_DIR}/${LIBRETRODB_BASE_DIR}/db.rdb DBFILE=${BASE_DIR}/${LIBRETRODB_BASE_DIR}/db.rdb
cd ${LIBRETRODB_BASE_DIR}/ cd ${LIBRETRODB_BASE_DIR}/
echo "=== Building ${1} ===" echo "=== Building ${1} ==="
COMMAND='${BASE_DIR}/${LIBRETRODB_BASE_DIR}/dat_converter ${DBFILE} "${2}"' COMMAND='${BASE_DIR}/${LIBRETRODB_BASE_DIR}/dat_converter ${DBFILE} "${2}"'
#Check if main DAT is there #Check if main DAT is there
if [ -f "${LIBRETRODATABASE_DAT_DIR}/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_DAT_DIR}/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_DAT_DIR}/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_DAT_DIR}/${1}.dat"'
fi fi
#Check if meta DAT is there #Check if meta DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/${1}.dat"'
fi fi
#Check if meta analog DAT is there #Check if meta analog DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/analog/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/analog/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/analog/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/analog/${1}.dat"'
fi fi
#Check if meta barcode DAT is there #Check if meta barcode DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/barcode/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/barcode/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/barcode/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/barcode/${1}.dat"'
fi fi
#Check if meta BBFC DAT is there #Check if meta BBFC DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/bbfc/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/bbfc/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/bbfc/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/bbfc/${1}.dat"'
fi fi
#Check if meta developer DAT is there #Check if meta developer DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/developer/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/developer/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/developer/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/developer/${1}.dat"'
fi fi
#Check if meta ELSPA DAT is there #Check if meta ELSPA DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/elspa/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/elspa/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/elspa/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/elspa/${1}.dat"'
fi fi
#Check if meta ESRB DAT is there #Check if meta ESRB DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/esrb/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/esrb/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/esrb/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/esrb/${1}.dat"'
fi fi
#Check if meta franchise DAT is there #Check if meta franchise DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/franchise/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/franchise/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/franchise/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/franchise/${1}.dat"'
fi fi
#Check if meta Famitsu magazine DAT is there #Check if meta Famitsu magazine DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/famitsu/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/famitsu/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/famitsu/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/famitsu/${1}.dat"'
fi fi
#Check if meta Edge magazine DAT is there #Check if meta Edge magazine DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge/${1}.dat"'
fi fi
#Check if meta Edge magazine review DAT is there #Check if meta Edge magazine review DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge_review/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge_review/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge_review/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/magazine/edge_review/${1}.dat"'
fi fi
#Check if meta maxusers DAT is there #Check if meta maxusers DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/maxusers/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/maxusers/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/maxusers/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/maxusers/${1}.dat"'
fi fi
#Check if meta origin DAT is there #Check if meta origin DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/origin/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/origin/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/origin/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/origin/${1}.dat"'
fi fi
#Check if meta publisher DAT is there #Check if meta publisher DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/publisher/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/publisher/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/publisher/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/publisher/${1}.dat"'
fi fi
#Check if meta releasemonth DAT is there #Check if meta releasemonth DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/releasemonth/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/releasemonth/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/releasemonth/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/releasemonth/${1}.dat"'
fi fi
#Check if meta releaseyear DAT is there #Check if meta releaseyear DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/releaseyear/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/releaseyear/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/releaseyear/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/releaseyear/${1}.dat"'
fi fi
#Check if meta rumble DAT is there #Check if meta rumble DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/rumble/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/rumble/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/rumble/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/rumble/${1}.dat"'
fi fi
#Check if meta serial DAT is there #Check if meta serial DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/serial/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/serial/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/serial/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/serial/${1}.dat"'
fi fi
#Check if meta enhancement HW DAT is there #Check if meta enhancement HW DAT is there
if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/enhancement_hw/${1}.dat" ]; then if [ -f "${LIBRETRODATABASE_META_DAT_DIR}/enhancement_hw/${1}.dat" ]; then
COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/enhancement_hw/${1}.dat"' COMMAND+=' "${LIBRETRODATABASE_META_DAT_DIR}/enhancement_hw/${1}.dat"'
fi fi
eval ${COMMAND} eval ${COMMAND}
if [ -f ${DBFILE} ]; then if [ -f ${DBFILE} ]; then
mv ${DBFILE} "${RDB_DIR}/${1}.rdb" mv ${DBFILE} "${RDB_DIR}/${1}.rdb"
fi fi
fi fi
} }
build_libretro_databases() { build_libretro_databases() {
build_libretro_database "ScummVM" "rom.sha1" build_libretro_database "ScummVM" "rom.sha1"
build_libretro_database "Nintendo - Super Nintendo Entertainment System" "rom.crc" build_libretro_database "Nintendo - Super Nintendo Entertainment System" "rom.crc"
build_libretro_database "Sony - PlayStation" "rom.serial" build_libretro_database "Sony - PlayStation" "rom.serial"
build_libretro_database "Atari - Jaguar" "rom.crc" build_libretro_database "Atari - Jaguar" "rom.crc"
build_libretro_database "Nintendo - Nintendo 64" "rom.crc" build_libretro_database "Nintendo - Nintendo 64" "rom.crc"
build_libretro_database "Nintendo - Virtual Boy" "rom.crc" build_libretro_database "Nintendo - Virtual Boy" "rom.crc"
build_libretro_database "Atari - 5200" "rom.crc" build_libretro_database "Atari - 5200" "rom.crc"
build_libretro_database "Atari - 7800" "rom.crc" build_libretro_database "Atari - 7800" "rom.crc"
build_libretro_database "Atari - Lynx" "rom.crc" build_libretro_database "Atari - Lynx" "rom.crc"
build_libretro_database "Atari - ST" "rom.crc" build_libretro_database "Atari - ST" "rom.crc"
build_libretro_database "Bandai - WonderSwan" "rom.crc" build_libretro_database "Bandai - WonderSwan" "rom.crc"
build_libretro_database "Bandai - WonderSwan Color" "rom.crc" build_libretro_database "Bandai - WonderSwan Color" "rom.crc"
build_libretro_database "Casio - Loopy" "rom.crc" build_libretro_database "Casio - Loopy" "rom.crc"
build_libretro_database "Casio - PV-1000" "rom.crc" build_libretro_database "Casio - PV-1000" "rom.crc"
build_libretro_database "Coleco - ColecoVision" "rom.crc" build_libretro_database "Coleco - ColecoVision" "rom.crc"
build_libretro_database "Emerson - Arcadia 2001" "rom.crc" build_libretro_database "Emerson - Arcadia 2001" "rom.crc"
build_libretro_database "Entex - Adventure Vision" "rom.crc" build_libretro_database "Entex - Adventure Vision" "rom.crc"
build_libretro_database "Epoch - Super Cassette Vision" "rom.crc" build_libretro_database "Epoch - Super Cassette Vision" "rom.crc"
build_libretro_database "Fairchild - Channel F" "rom.crc" build_libretro_database "Fairchild - Channel F" "rom.crc"
build_libretro_database "Funtech - Super Acan" "rom.crc" build_libretro_database "Funtech - Super Acan" "rom.crc"
build_libretro_database "GamePark - GP32" "rom.crc" build_libretro_database "GamePark - GP32" "rom.crc"
build_libretro_database "GCE - Vectrex" "rom.crc" build_libretro_database "GCE - Vectrex" "rom.crc"
build_libretro_database "Hartung - Game Master" "rom.crc" build_libretro_database "Hartung - Game Master" "rom.crc"
build_libretro_database "LeapFrog - Leapster Learning Game System" "rom.crc" build_libretro_database "LeapFrog - Leapster Learning Game System" "rom.crc"
build_libretro_database "Magnavox - Odyssey2" "rom.crc" build_libretro_database "Magnavox - Odyssey2" "rom.crc"
build_libretro_database "Microsoft - MSX" "rom.crc" build_libretro_database "Microsoft - MSX" "rom.crc"
build_libretro_database "Microsoft - MSX 2" "rom.crc" build_libretro_database "Microsoft - MSX 2" "rom.crc"
build_libretro_database "NEC - PC Engine - TurboGrafx 16" "rom.crc" build_libretro_database "NEC - PC Engine - TurboGrafx 16" "rom.crc"
build_libretro_database "NEC - Super Grafx" "rom.crc" build_libretro_database "NEC - Super Grafx" "rom.crc"
build_libretro_database "Nintendo - Famicom Disk System" "rom.crc" build_libretro_database "Nintendo - Famicom Disk System" "rom.crc"
build_libretro_database "Nintendo - Game Boy" "rom.crc" build_libretro_database "Nintendo - Game Boy" "rom.crc"
build_libretro_database "Nintendo - Game Boy Advance" "rom.crc" build_libretro_database "Nintendo - Game Boy Advance" "rom.crc"
build_libretro_database "Nintendo - Game Boy Advance (e-Cards)" "rom.crc" build_libretro_database "Nintendo - Game Boy Advance (e-Cards)" "rom.crc"
build_libretro_database "Nintendo - Game Boy Color" "rom.crc" build_libretro_database "Nintendo - Game Boy Color" "rom.crc"
build_libretro_database "Nintendo - Nintendo 3DS" "rom.crc" build_libretro_database "Nintendo - Nintendo 3DS" "rom.crc"
build_libretro_database "Nintendo - Nintendo 3DS (DLC)" "rom.crc" build_libretro_database "Nintendo - Nintendo 3DS (DLC)" "rom.crc"
build_libretro_database "Nintendo - Nintendo DS Decrypted" "rom.crc" build_libretro_database "Nintendo - Nintendo DS Decrypted" "rom.crc"
build_libretro_database "Nintendo - Nintendo DS (Download Play) (BETA)" "rom.crc" build_libretro_database "Nintendo - Nintendo DS (Download Play) (BETA)" "rom.crc"
build_libretro_database "Nintendo - Nintendo DSi Decrypted" "rom.crc" build_libretro_database "Nintendo - Nintendo DSi Decrypted" "rom.crc"
build_libretro_database "Nintendo - Nintendo DSi (DLC)" "rom.crc" build_libretro_database "Nintendo - Nintendo DSi (DLC)" "rom.crc"
build_libretro_database "Nintendo - Nintendo Entertainment System" "rom.crc" build_libretro_database "Nintendo - Nintendo Entertainment System" "rom.crc"
build_libretro_database "Nintendo - Nintendo Wii (DLC)" "rom.crc" build_libretro_database "Nintendo - Nintendo Wii (DLC)" "rom.crc"
build_libretro_database "Nintendo - Pokemon Mini" "rom.crc" build_libretro_database "Nintendo - Pokemon Mini" "rom.crc"
build_libretro_database "Nintendo - Satellaview" "rom.crc" build_libretro_database "Nintendo - Satellaview" "rom.crc"
build_libretro_database "Nintendo - Sufami Turbo" "rom.crc" build_libretro_database "Nintendo - Sufami Turbo" "rom.crc"
build_libretro_database "Philips - Videopac+" "rom.crc" build_libretro_database "Philips - Videopac+" "rom.crc"
build_libretro_database "RCA - Studio II" "rom.crc" build_libretro_database "RCA - Studio II" "rom.crc"
build_libretro_database "Sega - 32X" "rom.crc" build_libretro_database "Sega - 32X" "rom.crc"
build_libretro_database "Sega - Game Gear" "rom.crc" build_libretro_database "Sega - Game Gear" "rom.crc"
build_libretro_database "Sega - Master System - Mark III" "rom.crc" build_libretro_database "Sega - Master System - Mark III" "rom.crc"
build_libretro_database "Sega - Mega Drive - Genesis" "rom.crc" build_libretro_database "Sega - Mega Drive - Genesis" "rom.crc"
build_libretro_database "Sega - PICO" "rom.crc" build_libretro_database "Sega - PICO" "rom.crc"
build_libretro_database "Sega - SG-1000" "rom.crc" build_libretro_database "Sega - SG-1000" "rom.crc"
build_libretro_database "Sinclair - ZX Spectrum +3" "rom.crc" build_libretro_database "Sinclair - ZX Spectrum +3" "rom.crc"
build_libretro_database "SNK - Neo Geo Pocket" "rom.crc" build_libretro_database "SNK - Neo Geo Pocket" "rom.crc"
build_libretro_database "SNK - Neo Geo Pocket Color" "rom.crc" build_libretro_database "SNK - Neo Geo Pocket Color" "rom.crc"
build_libretro_database "Sony - PlayStation 3 (DLC)" "rom.crc" build_libretro_database "Sony - PlayStation 3 (DLC)" "rom.crc"
build_libretro_database "Sony - PlayStation 3 (Downloadable)" "rom.crc" build_libretro_database "Sony - PlayStation 3 (Downloadable)" "rom.crc"
build_libretro_database "Sony - PlayStation 3 (PSN)" "rom.crc" build_libretro_database "Sony - PlayStation 3 (PSN)" "rom.crc"
build_libretro_database "Sony - PlayStation Portable" "rom.serial" build_libretro_database "Sony - PlayStation Portable" "rom.serial"
build_libretro_database "Sony - PlayStation Portable (DLC)" "rom.crc" build_libretro_database "Sony - PlayStation Portable (DLC)" "rom.crc"
build_libretro_database "Sony - PlayStation Portable (PSX2PSP)" "rom.crc" build_libretro_database "Sony - PlayStation Portable (PSX2PSP)" "rom.crc"
build_libretro_database "Sony - PlayStation Portable (UMD Music)" "rom.crc" build_libretro_database "Sony - PlayStation Portable (UMD Music)" "rom.crc"
build_libretro_database "Sony - PlayStation Portable (UMD Video)" "rom.crc" build_libretro_database "Sony - PlayStation Portable (UMD Video)" "rom.crc"
build_libretro_database "Tiger - Game.com" "rom.crc" build_libretro_database "Tiger - Game.com" "rom.crc"
build_libretro_database "VTech - CreatiVision" "rom.crc" build_libretro_database "VTech - CreatiVision" "rom.crc"
build_libretro_database "VTech - V.Smile" "rom.crc" build_libretro_database "VTech - V.Smile" "rom.crc"
build_libretro_database "Watara - Supervision" "rom.crc" build_libretro_database "Watara - Supervision" "rom.crc"
build_libretro_database "MAME" "rom.name" build_libretro_database "MAME" "rom.name"
} }
build_libretrodb build_libretrodb

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
set -e set -e
@ -17,59 +18,59 @@ IOS=1
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_2048 build_libretro_2048
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
#build_libretro_bsnes_cplusplus98 #build_libretro_bsnes_cplusplus98
#build_libretro_bsnes #build_libretro_bsnes
#build_libretro_beetle_lynx #build_libretro_beetle_lynx
#build_libretro_beetle_gba #build_libretro_beetle_gba
#build_libretro_beetle_ngp #build_libretro_beetle_ngp
#build_libretro_beetle_pce_fast #build_libretro_beetle_pce_fast
#build_libretro_beetle_supergrafx #build_libretro_beetle_supergrafx
#build_libretro_beetle_pcfx #build_libretro_beetle_pcfx
#build_libretro_beetle_vb #build_libretro_beetle_vb
#build_libretro_beetle_wswan #build_libretro_beetle_wswan
#build_libretro_mednafen_psx #build_libretro_mednafen_psx
#build_libretro_beetle_bsnes #build_libretro_beetle_bsnes
build_libretro_catsfc build_libretro_catsfc
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vbam build_libretro_vbam
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_meteor build_libretro_meteor
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
#build_libretro_mame078 #build_libretro_mame078
#build_libretro_mame #build_libretro_mame
build_libretro_dosbox build_libretro_dosbox
#build_libretro_scummvm #build_libretro_scummvm
#build_libretro_picodrive #build_libretro_picodrive
build_libretro_handy build_libretro_handy
build_libretro_desmume build_libretro_desmume
#build_libretro_pcsx_rearmed #build_libretro_pcsx_rearmed
#build_libretro_pcsx_rearmed_interpreter #build_libretro_pcsx_rearmed_interpreter
#build_libretro_mupen64 #build_libretro_mupen64
#build_libretro_yabause #build_libretro_yabause
#build_libretro_ffmpeg #build_libretro_ffmpeg
build_libretro_3dengine build_libretro_3dengine
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
#build_libretro_dinothawr #build_libretro_dinothawr
build_libretro_virtualjaguar build_libretro_virtualjaguar
build_libretro_o2em build_libretro_o2em
build_libretro_4do build_libretro_4do
build_libretro_gpsp build_libretro_gpsp
#build_libretro_emux #build_libretro_emux
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
set -e set -e
@ -26,59 +27,59 @@ export IOSSDK
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_2048 build_libretro_2048
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_bsnes_cplusplus98 build_libretro_bsnes_cplusplus98
build_libretro_bsnes build_libretro_bsnes
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_mednafen_psx build_libretro_mednafen_psx
#build_libretro_beetle_bsnes #build_libretro_beetle_bsnes
build_libretro_catsfc build_libretro_catsfc
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vbam build_libretro_vbam
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_meteor build_libretro_meteor
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
build_libretro_mame build_libretro_mame
#build_libretro_dosbox #build_libretro_dosbox
build_libretro_scummvm build_libretro_scummvm
build_libretro_picodrive build_libretro_picodrive
build_libretro_handy build_libretro_handy
build_libretro_desmume build_libretro_desmume
build_libretro_pcsx_rearmed build_libretro_pcsx_rearmed
build_libretro_pcsx_rearmed_interpreter build_libretro_pcsx_rearmed_interpreter
build_libretro_mupen64 build_libretro_mupen64
build_libretro_yabause build_libretro_yabause
#build_libretro_ffmpeg #build_libretro_ffmpeg
build_libretro_3dengine build_libretro_3dengine
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
build_libretro_dinothawr build_libretro_dinothawr
build_libretro_virtualjaguar build_libretro_virtualjaguar
build_libretro_o2em build_libretro_o2em
build_libretro_4do build_libretro_4do
build_libretro_gpsp build_libretro_gpsp
build_libretro_emux build_libretro_emux
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
SCRIPT=$(readlink -f $0) SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT) BASE_DIR=$(dirname $SCRIPT)
@ -15,29 +16,29 @@ MAKE=make
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_beetle_bsnes build_libretro_beetle_bsnes
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fba build_libretro_fba
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
#build_libretro_yabause #build_libretro_yabause
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
SCRIPT=$(readlink -f $0) SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT) BASE_DIR=$(dirname $SCRIPT)
@ -14,30 +15,30 @@ MAKE=make
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_bsnes build_libretro_beetle_bsnes
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
build_libretro_handy build_libretro_handy
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
SCRIPT=$(readlink -f $0) SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT) BASE_DIR=$(dirname $SCRIPT)
@ -14,39 +15,39 @@ MAKE=make
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_2048 build_libretro_2048
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_beetle_bsnes build_libretro_beetle_bsnes
build_libretro_mednafen build_libretro_mednafen
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
#build_libretro_fba_full #build_libretro_fba_full
build_libretro_fba_cps2 build_libretro_fba_cps2
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
#build_libretro_mame078 #build_libretro_mame078
build_libretro_picodrive build_libretro_picodrive
build_libretro_handy build_libretro_handy
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
build_libretro_o2em build_libretro_o2em
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
SCRIPT=$(readlink -f $0) SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT) BASE_DIR=$(dirname $SCRIPT)
@ -14,57 +15,57 @@ MAKE=make
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_2048 build_libretro_2048
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_bsnes_cplusplus98 build_libretro_bsnes_cplusplus98
#build_libretro_bsnes #build_libretro_bsnes
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_snes build_libretro_beetle_snes
build_libretro_catsfc build_libretro_catsfc
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vbam build_libretro_vbam
build_libretro_vba_next build_libretro_vba_next
#build_libretro_bnes #build_libretro_bnes
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
#build_libretro_meteor #build_libretro_meteor
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
#build_libretro_mame #build_libretro_mame
#build_libretro_dosbox #build_libretro_dosbox
build_libretro_scummvm build_libretro_scummvm
build_libretro_picodrive build_libretro_picodrive
build_libretro_handy build_libretro_handy
#build_libretro_desmume #build_libretro_desmume
build_libretro_pcsx_rearmed build_libretro_pcsx_rearmed
build_libretro_mupen64 build_libretro_mupen64
#build_libretro_yabause #build_libretro_yabause
#build_libretro_ffmpeg #build_libretro_ffmpeg
#build_libretro_dinothawr #build_libretro_dinothawr
build_libretro_3dengine build_libretro_3dengine
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
build_libretro_virtualjaguar build_libretro_virtualjaguar
build_libretro_o2em build_libretro_o2em
build_libretro_4do build_libretro_4do
build_libretro_gpsp build_libretro_gpsp
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
SCRIPT=$(readlink -f $0) SCRIPT=$(readlink -f $0)
BASE_DIR=$(dirname $SCRIPT) BASE_DIR=$(dirname $SCRIPT)
@ -15,30 +16,30 @@ MAKE=make
. ./libretro-build-common.sh . ./libretro-build-common.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_psx build_libretro_beetle_psx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_beetle_bsnes build_libretro_beetle_bsnes
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fba build_libretro_fba
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
#build_libretro_yabause #build_libretro_yabause
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
BASE_DIR=$(pwd) BASE_DIR=$(pwd)
RARCH_DIR=$BASE_DIR/dist RARCH_DIR=$BASE_DIR/dist
@ -11,39 +12,39 @@ RELEASE=Release
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
source $BASE_DIR/libretro-build-common-xdk.sh source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
#build_libretro_beetle_lynx #build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
#build_libretro_beetle_bsnes #build_libretro_beetle_bsnes
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
#build_libretro_fb_alpha #build_libretro_fb_alpha
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
#build_libretro_quicknes #build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
build_libretro_picodrive build_libretro_picodrive
#build_libretro_handy #build_libretro_handy
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
BASE_DIR=$(pwd) BASE_DIR=$(pwd)
RARCH_DIR=$BASE_DIR/dist RARCH_DIR=$BASE_DIR/dist
@ -11,92 +12,92 @@ RELEASE=Release
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
build_libretro_fba_cps1() build_libretro_fba_cps1()
{ {
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-fba" ]; then if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha Cores (CPS1) ===" echo "=== Building Final Burn Alpha Cores (CPS1) ==="
cd libretro-fba/ cd libretro-fba/
cd svn-current/trunk cd svn-current/trunk
cd fbacores/cps1/projectfiles/visualstudio-2003-libretro-xbox1 cd fbacores/cps1/projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps1_libretro$FORMAT.${FORMAT_EXT} cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps1_libretro$FORMAT.${FORMAT_EXT}
fi fi
} }
build_libretro_fba_cps2() build_libretro_fba_cps2()
{ {
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-fba" ]; then if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha Cores (CPS2) ===" echo "=== Building Final Burn Alpha Cores (CPS2) ==="
cd libretro-fba/ cd libretro-fba/
cd svn-old/trunk cd svn-old/trunk
cd fbacores/cps2/projectfiles/visualstudio-2003-libretro-xbox1 cd fbacores/cps2/projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps2_libretro$FORMAT.${FORMAT_EXT} cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_cps2_libretro$FORMAT.${FORMAT_EXT}
fi fi
} }
build_libretro_fba_neogeo() build_libretro_fba_neogeo()
{ {
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-fba" ]; then if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha Cores (NeoGeo) ===" echo "=== Building Final Burn Alpha Cores (NeoGeo) ==="
cd libretro-fba/ cd libretro-fba/
cd svn-current/trunk cd svn-current/trunk
cd fbacores/neogeo/projectfiles/visualstudio-2003-libretro-xbox1 cd fbacores/neogeo/projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_neo_libretro$FORMAT.${FORMAT_EXT} cp $RELEASE_LTCG/libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR/fba_cores_neo_libretro$FORMAT.${FORMAT_EXT}
fi fi
} }
build_libretro_fba() build_libretro_fba()
{ {
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-fba" ]; then if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha ===" echo "=== Building Final Burn Alpha ==="
cd libretro-fba/ cd libretro-fba/
cd svn-current/trunk cd svn-current/trunk
cd projectfiles/visualstudio-2003-libretro-xbox1 cd projectfiles/visualstudio-2003-libretro-xbox1
cmd.exe /k $MSVC_NAME.bat cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR
build_libretro_fba_cps1 build_libretro_fba_cps1
build_libretro_fba_cps2 build_libretro_fba_cps2
build_libretro_fba_neogeo build_libretro_fba_neogeo
else else
echo "Final Burn Alpha not fetched, skipping ..." echo "Final Burn Alpha not fetched, skipping ..."
fi fi
} }
source $BASE_DIR/libretro-build-common-xdk.sh source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
#build_libretro_beetle_lynx #build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
#build_libretro_beetle_bsnes #build_libretro_beetle_bsnes
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fba build_libretro_fba
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
fi fi

View File

@ -1,4 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
BASE_DIR=$(pwd) BASE_DIR=$(pwd)
RARCH_DIR=$BASE_DIR/dist RARCH_DIR=$BASE_DIR/dist
@ -11,51 +12,51 @@ RELEASE=Release
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
build_libretro_fba() build_libretro_fba()
{ {
cd $BASE_DIR cd $BASE_DIR
if [ -d "libretro-fba" ]; then if [ -d "libretro-fba" ]; then
echo "=== Building Final Burn Alpha ===" echo "=== Building Final Burn Alpha ==="
cd libretro-fba/ cd libretro-fba/
cd svn-current/trunk cd svn-current/trunk
cd projectfiles/visualstudio-2010-libretro-360 cd projectfiles/visualstudio-2010-libretro-360
cmd.exe /k $MSVC_NAME.bat cmd.exe /k $MSVC_NAME.bat
cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR cp $RELEASE_LTCG/fb_alpha_libretro$FORMAT.${FORMAT_EXT} $RARCH_DIST_DIR
else else
echo "Final Burn Alpha not fetched, skipping ..." echo "Final Burn Alpha not fetched, skipping ..."
fi fi
} }
source $BASE_DIR/libretro-build-common-xdk.sh source $BASE_DIR/libretro-build-common-xdk.sh
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
#build_libretro_beetle_lynx #build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
#build_libretro_beetle_bsnes #build_libretro_beetle_bsnes
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vba_next build_libretro_vba_next
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
#build_libretro_stella #build_libretro_stella
#build_libretro_quicknes #build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
fi fi

View File

@ -1,22 +1,22 @@
#! /bin/bash #! /usr/bin/env bash
# vi: sw=3 ts=3 et # vim: set ts=3 sw=3 noet ft=sh : bash
# BSDs don't have readlink -f # BSDs don't have readlink -f
read_link() read_link()
{ {
TARGET_FILE="${1}" TARGET_FILE="${1}"
cd "`dirname "${TARGET_FILE}"`" cd "`dirname "${TARGET_FILE}"`"
TARGET_FILE="`basename "${TARGET_FILE}"`" TARGET_FILE="`basename "${TARGET_FILE}"`"
while [ -L "${TARGET_FILE}" ]; do while [ -L "${TARGET_FILE}" ]; do
TARGET_FILE="`readlink "${TARGET_FILE}"`" TARGET_FILE="`readlink "${TARGET_FILE}"`"
cd "`dirname "${TARGET_FILE}"`" cd "`dirname "${TARGET_FILE}"`"
TARGET_FILE="`basename "${TARGET_FILE}"`" TARGET_FILE="`basename "${TARGET_FILE}"`"
done done
PHYS_DIR="`pwd -P`" PHYS_DIR="`pwd -P`"
RESULT="${PHYS_DIR}/${TARGET_FILE}" RESULT="${PHYS_DIR}/${TARGET_FILE}"
echo ${RESULT} echo ${RESULT}
} }
SCRIPT="`read_link "$0"`" SCRIPT="`read_link "$0"`"
BASE_DIR="`dirname "${SCRIPT}"`" BASE_DIR="`dirname "${SCRIPT}"`"
@ -25,67 +25,67 @@ WORKDIR="`pwd`"
. ${BASE_DIR}/libretro-config.sh . ${BASE_DIR}/libretro-config.sh
if [ -z "$RARCH_DIST_DIR" ]; then if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="${WORKDIR}/dist" RARCH_DIR="${WORKDIR}/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR" RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
fi fi
if [ -z "$JOBS" ]; then if [ -z "$JOBS" ]; then
JOBS=7 JOBS=7
fi fi
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
if [ "$HOST_CC" ]; then if [ "$HOST_CC" ]; then
CC="${HOST_CC}-gcc" CC="${HOST_CC}-gcc"
CXX="${HOST_CC}-g++" CXX="${HOST_CC}-g++"
CXX11="${HOST_CC}-g++" CXX11="${HOST_CC}-g++"
STRIP="${HOST_CC}-strip" STRIP="${HOST_CC}-strip"
fi fi
if [ -z "$MAKE" ]; then if [ -z "$MAKE" ]; then
if uname -s | grep -i MINGW32 > /dev/null 2>&1; then if uname -s | grep -i MINGW32 > /dev/null 2>&1; then
MAKE=mingw32-make MAKE=mingw32-make
else else
if type gmake > /dev/null 2>&1; then if type gmake > /dev/null 2>&1; then
MAKE=gmake MAKE=gmake
else else
MAKE=make MAKE=make
fi fi
fi fi
fi fi
if [ -z "$CC" ]; then if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=cc CC=cc
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CC=mingw32-gcc CC=mingw32-gcc
else else
CC=gcc CC=gcc
fi fi
fi fi
if [ -z "$CXX" ]; then if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=c++ CXX=c++
CXX11="clang++ -std=c++11 -stdlib=libc++" CXX11="clang++ -std=c++11 -stdlib=libc++"
# FIXME: Do this right later. # FIXME: Do this right later.
if [ "$ARCH" = "i386" ]; then if [ "$ARCH" = "i386" ]; then
CC="cc -arch i386" CC="cc -arch i386"
CXX="c++ -arch i386" CXX="c++ -arch i386"
CXX11="clang++ -arch i386 -std=c++11 -stdlib=libc++" CXX11="clang++ -arch i386 -std=c++11 -stdlib=libc++"
fi fi
elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CXX=mingw32-g++ CXX=mingw32-g++
CXX11=mingw32-g++ CXX11=mingw32-g++
else else
CXX=g++ CXX=g++
CXX11=g++ CXX11=g++
fi fi
fi fi
FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET
@ -99,72 +99,72 @@ echo "STRIP = $STRIP"
mkdir -p "$RARCH_DIST_DIR" mkdir -p "$RARCH_DIST_DIR"
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
NOBUILD_SUMMARY=1 NOBUILD_SUMMARY=1
while [ -n "${1}" ]; do while [ -n "${1}" ]; do
"${1}" "${1}"
shift shift
done done
else else
build_libretro_2048 build_libretro_2048
build_libretro_4do build_libretro_4do
build_libretro_bluemsx build_libretro_bluemsx
build_libretro_fmsx build_libretro_fmsx
build_libretro_bsnes_cplusplus98 build_libretro_bsnes_cplusplus98
build_libretro_bsnes build_libretro_bsnes
build_libretro_bsnes_mercury build_libretro_bsnes_mercury
build_libretro_beetle_lynx build_libretro_beetle_lynx
build_libretro_beetle_gba build_libretro_beetle_gba
build_libretro_beetle_ngp build_libretro_beetle_ngp
build_libretro_beetle_pce_fast build_libretro_beetle_pce_fast
build_libretro_beetle_supergrafx build_libretro_beetle_supergrafx
build_libretro_beetle_pcfx build_libretro_beetle_pcfx
build_libretro_beetle_vb build_libretro_beetle_vb
build_libretro_beetle_wswan build_libretro_beetle_wswan
build_libretro_mednafen_psx build_libretro_mednafen_psx
build_libretro_beetle_snes build_libretro_beetle_snes
build_libretro_catsfc build_libretro_catsfc
build_libretro_snes9x build_libretro_snes9x
build_libretro_snes9x_next build_libretro_snes9x_next
build_libretro_genesis_plus_gx build_libretro_genesis_plus_gx
build_libretro_fb_alpha build_libretro_fb_alpha
build_libretro_vbam build_libretro_vbam
build_libretro_vba_next build_libretro_vba_next
build_libretro_bnes build_libretro_bnes
build_libretro_fceumm build_libretro_fceumm
build_libretro_gambatte build_libretro_gambatte
build_libretro_meteor build_libretro_meteor
build_libretro_nx build_libretro_nx
build_libretro_prboom build_libretro_prboom
build_libretro_stella build_libretro_stella
build_libretro_quicknes build_libretro_quicknes
build_libretro_nestopia build_libretro_nestopia
build_libretro_tyrquake build_libretro_tyrquake
build_libretro_mame078 build_libretro_mame078
build_libretro_mame build_libretro_mame
build_libretro_dosbox build_libretro_dosbox
build_libretro_scummvm build_libretro_scummvm
build_libretro_picodrive build_libretro_picodrive
build_libretro_handy build_libretro_handy
build_libretro_desmume build_libretro_desmume
if [ $FORMAT_COMPILER_TARGET != "win" ]; then if [ $FORMAT_COMPILER_TARGET != "win" ]; then
build_libretro_pcsx_rearmed build_libretro_pcsx_rearmed
fi fi
build_libretro_yabause build_libretro_yabause
build_libretro_vecx build_libretro_vecx
build_libretro_tgbdual build_libretro_tgbdual
build_libretro_prosystem build_libretro_prosystem
build_libretro_dinothawr build_libretro_dinothawr
build_libretro_virtualjaguar build_libretro_virtualjaguar
build_libretro_mupen64 build_libretro_mupen64
build_libretro_ffmpeg build_libretro_ffmpeg
build_libretro_3dengine build_libretro_3dengine
build_libretro_ppsspp build_libretro_ppsspp
build_libretro_o2em build_libretro_o2em
build_libretro_hatari build_libretro_hatari
build_libretro_gpsp build_libretro_gpsp
build_libretro_emux build_libretro_emux
build_libretro_test build_libretro_test
build_libretro_testgl build_libretro_testgl
build_summary build_summary
fi fi

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,93 +1,92 @@
#!/bin/bash # vim: set ts=3 sw=3 noet ft=sh : bash
# vi: ts=3 sw=3 et
# Architecture Assignment # Architecture Assignment
config_cpu() { config_cpu() {
[ -n "${2}" ] && ARCH=${1} [ -n "${2}" ] && ARCH=${1}
[ -z "${ARCH}" ] && ARCH="`uname -m`" [ -z "${ARCH}" ] && ARCH="`uname -m`"
case "${ARCH}" in case "${ARCH}" in
x86_64) x86_64)
X86=true X86=true
X86_64=true X86_64=true
;; ;;
i386|i686) i386|i686)
X86=true X86=true
;; ;;
armv*) armv*)
ARM=true ARM=true
export FORMAT_COMPILER_TARGET=armv export FORMAT_COMPILER_TARGET=armv
export RARCHCFLAGS="${RARCHCFLAGS} -marm" export RARCHCFLAGS="${RARCHCFLAGS} -marm"
case "${ARCH}" in case "${ARCH}" in
armv5tel) ARMV5=true ;; armv5tel) ARMV5=true ;;
armv6l) ARMV6=true ;; armv6l) ARMV6=true ;;
armv7l) ARMV7=true ;; armv7l) ARMV7=true ;;
esac esac
;; ;;
esac esac
if [ -n "${PROCESSOR_ARCHITEW6432}" -a "${PROCESSOR_ARCHITEW6432}" = "AMD64" ]; then if [ -n "${PROCESSOR_ARCHITEW6432}" -a "${PROCESSOR_ARCHITEW6432}" = "AMD64" ]; then
ARCH=x86_64 ARCH=x86_64
X86=true && X86_64=true X86=true && X86_64=true
fi fi
} }
# Platform Assignment # Platform Assignment
config_platform() { config_platform() {
[ -n "${1}" ] && platform="${1}" [ -n "${1}" ] && platform="${1}"
[ -z "${platform}" ] && platform="`uname`" [ -z "${platform}" ] && platform="`uname`"
case "${platform}" in case "${platform}" in
*BSD*) *BSD*)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="unix" FORMAT_COMPILER_TARGET="unix"
DIST_DIR="bsd" DIST_DIR="bsd"
;; ;;
osx|*Darwin*) osx|*Darwin*)
FORMAT_EXT="dylib" FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET="osx" FORMAT_COMPILER_TARGET="osx"
DIST_DIR="osx" DIST_DIR="osx"
;; ;;
win|*mingw32*|*MINGW32*|*MSYS_NT*) win|*mingw32*|*MINGW32*|*MSYS_NT*)
FORMAT_EXT="dll" FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET="win" FORMAT_COMPILER_TARGET="win"
DIST_DIR="win_x86" DIST_DIR="win_x86"
;; ;;
win64|*mingw64*|*MINGW64*) win64|*mingw64*|*MINGW64*)
FORMAT_EXT="dll" FORMAT_EXT="dll"
FORMAT_COMPILER_TARGET="win" FORMAT_COMPILER_TARGET="win"
DIST_DIR="win_x64" DIST_DIR="win_x64"
;; ;;
*psp1*) *psp1*)
FORMAT_EXT="a" FORMAT_EXT="a"
FORMAT_COMPILER_TARGET="psp1" FORMAT_COMPILER_TARGET="psp1"
DIST_DIR="psp1" DIST_DIR="psp1"
;; ;;
*ios|theos_ios*) *ios|theos_ios*)
FORMAT_EXT="dylib" FORMAT_EXT="dylib"
FORMAT_COMPILER_TARGET="theos_ios" FORMAT_COMPILER_TARGET="theos_ios"
DIST_DIR="theos" DIST_DIR="theos"
;; ;;
android) android)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="android" FORMAT_COMPILER_TARGET="android"
DIST_DIR="android" DIST_DIR="android"
;; ;;
*android-armv7*) *android-armv7*)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="android-armv7" FORMAT_COMPILER_TARGET="android-armv7"
DIST_DIR="android/armeabi-v7a" DIST_DIR="android/armeabi-v7a"
;; ;;
*) *)
FORMAT_EXT="so" FORMAT_EXT="so"
FORMAT_COMPILER_TARGET="unix" FORMAT_COMPILER_TARGET="unix"
DIST_DIR="unix" DIST_DIR="unix"
;; ;;
esac esac
export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET" export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET"
} }
config_log_build_host() { config_log_build_host() {
echo "PLATFORM: ${platform}" echo "PLATFORM: ${platform}"
echo "ARCHITECTURE: ${ARCH}" echo "ARCHITECTURE: ${ARCH}"
echo "TARGET: ${FORMAT_COMPILER_TARGET}" echo "TARGET: ${FORMAT_COMPILER_TARGET}"
} }
config_cpu config_cpu
@ -95,11 +94,11 @@ config_platform
config_log_build_host config_log_build_host
if [ -z "${JOBS}" ]; then if [ -z "${JOBS}" ]; then
if command -v nproc >/dev/null; then if command -v nproc >/dev/null; then
JOBS=`nproc` JOBS=`nproc`
else else
JOBS=1 JOBS=1
fi fi
fi fi
#if uncommented, will fetch repos with read+write access. Useful for committers #if uncommented, will fetch repos with read+write access. Useful for committers
@ -180,16 +179,16 @@ export RA_ANDROID_MIN_API=android-9
# for now just to test a few cores. # for now just to test a few cores.
if [[ "${FORMAT_COMPILER_TARGET}" = "osx" && -z "${NOUNIVERSAL}" ]]; then if [[ "${FORMAT_COMPILER_TARGET}" = "osx" && -z "${NOUNIVERSAL}" ]]; then
case "${ARCH}" in case "${ARCH}" in
i385|x86_64) i385|x86_64)
export ARCHFLAGS="-arch i386 -arch x86_64" export ARCHFLAGS="-arch i386 -arch x86_64"
;; ;;
ppc|ppc64) ppc|ppc64)
export ARCHFLAGS="-arch ppc -arch ppc64" export ARCHFLAGS="-arch ppc -arch ppc64"
;; ;;
*) *)
echo "Universal build requested with unknown ARCH=\"${ARCH}\"" echo "Universal build requested with unknown ARCH=\"${ARCH}\""
esac esac
fi fi
#CORE BUILD SUMMARY #CORE BUILD SUMMARY
@ -202,11 +201,11 @@ BUILD_SUMMARY=${WORKDIR}/build-summary.log
BUILD_SUCCESS=${WORKDIR}/build-success.log BUILD_SUCCESS=${WORKDIR}/build-success.log
BUILD_FAIL=${WORKDIR}/build-fail.log BUILD_FAIL=${WORKDIR}/build-fail.log
if [ -z "${BUILD_SUMMARY_FMT}" ]; then if [ -z "${BUILD_SUMMARY_FMT}" ]; then
if command -v column >/dev/null; then if command -v column >/dev/null; then
BUILD_SUMMARY_FMT=column BUILD_SUMMARY_FMT=column
else else
BUILD_SUMMARY_FMT=cat BUILD_SUMMARY_FMT=cat
fi fi
fi fi
@ -217,6 +216,6 @@ fi
#The following below is just a sample. #The following below is just a sample.
if [ -f "${WORKDIR}/libretro-config-user.sh" ]; then if [ -f "${WORKDIR}/libretro-config-user.sh" ]; then
. ${WORKDIR}/libretro-config-user.sh . ${WORKDIR}/libretro-config-user.sh
fi fi

View File

@ -1,47 +1,48 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
update_header() update_header()
{ {
if [ -d "$1" ]; then if [ -d "$1" ]; then
if [ ! -f "$1/libretro.h" ]; then if [ ! -f "$1/libretro.h" ]; then
echo "=== ERROR updating $2 ===" echo "=== ERROR updating $2 ==="
else else
echo "=== Updating $2 ===" echo "=== Updating $2 ==="
cp "libretro-arb/libretro.h" "$1/libretro.h" cp "libretro-arb/libretro.h" "$1/libretro.h"
cd "$1" cd "$1"
git add libretro.h git add libretro.h
git commit -m "Update libretro.h" git commit -m "Update libretro.h"
git push git push
cd - cd -
fi fi
else else
echo "=== Skipping $2 because it is not checked out ===" echo "=== Skipping $2 because it is not checked out ==="
fi fi
} }
update_header_batch() update_header_batch()
{ {
if [ ! -f "$1/libretro.h" ]; then if [ ! -f "$1/libretro.h" ]; then
echo "=== ERROR updating $2 ===" echo "=== ERROR updating $2 ==="
else else
cp "libretro-arb/libretro.h" "$1/libretro.h" cp "libretro-arb/libretro.h" "$1/libretro.h"
cd "$1" cd "$1"
git add libretro.h git add libretro.h
cd - cd -
fi fi
} }
fetch_project() fetch_project()
{ {
echo "=== Fetching $3 ===" echo "=== Fetching $3 ==="
if [ -d "$2/.git" ]; then if [ -d "$2/.git" ]; then
cd "$2" cd "$2"
git pull git pull
cd .. cd ..
else else
git clone "$1" "$2" git clone "$1" "$2"
fi fi
echo "=== Fetched ===" echo "=== Fetched ==="
} }
fetch_project "https://github.com/libretro/RetroArch.git" "retroarch" "libretro/libretro ARB" fetch_project "https://github.com/libretro/RetroArch.git" "retroarch" "libretro/libretro ARB"

View File

@ -1,24 +1,25 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
. ./libretro-config.sh . ./libretro-config.sh
# BSDs don't have readlink -f # BSDs don't have readlink -f
read_link() read_link()
{ {
TARGET_FILE="$1" TARGET_FILE="$1"
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
while [ -L "$TARGET_FILE" ] while [ -L "$TARGET_FILE" ]
do do
TARGET_FILE=$(readlink "$TARGET_FILE") TARGET_FILE=$(readlink "$TARGET_FILE")
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
done done
PHYS_DIR=$(pwd -P) PHYS_DIR=$(pwd -P)
RESULT="$PHYS_DIR/$TARGET_FILE" RESULT="$PHYS_DIR/$TARGET_FILE"
echo $RESULT echo $RESULT
} }
SCRIPT=$(read_link "$0") SCRIPT=$(read_link "$0")
@ -27,25 +28,25 @@ RARCH_DIR="$BASE_DIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR" RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
if [ -z "$1" ]; then if [ -z "$1" ]; then
LIBRETRO_DIR="/usr/local/lib/libretro" LIBRETRO_DIR="/usr/local/lib/libretro"
else else
LIBRETRO_DIR="$1" LIBRETRO_DIR="$1"
fi fi
mkdir -p "$LIBRETRO_DIR" mkdir -p "$LIBRETRO_DIR"
for lib in "$RARCH_DIST_DIR"/* for lib in "$RARCH_DIST_DIR"/*
do do
if [ -f "$lib" ]; then if [ -f "$lib" ]; then
install -v -m644 "$lib" "$LIBRETRO_DIR" install -v -m644 "$lib" "$LIBRETRO_DIR"
else else
echo "Library $lib not found, skipping ..." echo "Library $lib not found, skipping ..."
fi fi
done done
for infofile in "$RARCH_DIR"/info/*.info for infofile in "$RARCH_DIR"/info/*.info
do do
if [ -f "$infofile" ]; then if [ -f "$infofile" ]; then
install -v -m644 "$infofile" "$LIBRETRO_DIR" install -v -m644 "$infofile" "$LIBRETRO_DIR"
fi fi
done done

View File

@ -1,72 +1,73 @@
#!/bin/bash #! /usr/bin/env bash
# vim: set ts=3 sw=3 noet ft=sh : bash
. ./libretro-config.sh . ./libretro-config.sh
# BSDs don't have readlink -f # BSDs don't have readlink -f
read_link() read_link()
{ {
TARGET_FILE="$1" TARGET_FILE="$1"
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
while [ -L "$TARGET_FILE" ] while [ -L "$TARGET_FILE" ]
do do
TARGET_FILE=$(readlink "$TARGET_FILE") TARGET_FILE=$(readlink "$TARGET_FILE")
cd $(dirname "$TARGET_FILE") cd $(dirname "$TARGET_FILE")
TARGET_FILE=$(basename "$TARGET_FILE") TARGET_FILE=$(basename "$TARGET_FILE")
done done
PHYS_DIR=$(pwd -P) PHYS_DIR=$(pwd -P)
RESULT="$PHYS_DIR/$TARGET_FILE" RESULT="$PHYS_DIR/$TARGET_FILE"
echo $RESULT echo $RESULT
} }
SCRIPT=$(read_link "$0") SCRIPT=$(read_link "$0")
echo "Script: $SCRIPT" echo "Script: $SCRIPT"
BASE_DIR=$(dirname "$SCRIPT") BASE_DIR=$(dirname "$SCRIPT")
if [ -z "$RARCH_DIST_DIR" ]; then if [ -z "$RARCH_DIST_DIR" ]; then
RARCH_DIR="$BASE_DIR/dist" RARCH_DIR="$BASE_DIR/dist"
RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR" RARCH_DIST_DIR="$RARCH_DIR/$DIST_DIR"
fi fi
die() die()
{ {
echo $1 echo $1
#exit 1 #exit 1
} }
if [ "$HOST_CC" ]; then if [ "$HOST_CC" ]; then
CC="${HOST_CC}-gcc" CC="${HOST_CC}-gcc"
CXX="${HOST_CC}-g++" CXX="${HOST_CC}-g++"
STRIP="${HOST_CC}-strip" STRIP="${HOST_CC}-strip"
fi fi
if [ -z "$MAKE" ]; then if [ -z "$MAKE" ]; then
if [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then if [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
MAKE=mingw32-make MAKE=mingw32-make
else else
MAKE=make MAKE=make
fi fi
fi fi
if [ -z "$CC" ]; then if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=clang CC=clang
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
CC=mingw32-gcc CC=mingw32-gcc
else else
CC=gcc CC=gcc
fi fi
fi fi
if [ -z "$CXX" ]; then if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=clang++ CXX=clang++
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
CXX=mingw32-g++ CXX=mingw32-g++
else else
CXX=g++ CXX=g++
fi fi
fi fi
echo "CC = $CC" echo "CC = $CC"
@ -79,59 +80,59 @@ export RARCHCFLAGS=""
check_deps() check_deps()
{ {
if [ $ENABLE_GLES ]; then if [ $ENABLE_GLES ]; then
echo "=== Enabling OpenGL ES ===" echo "=== Enabling OpenGL ES ==="
export ENABLE_GLES="--enable-gles" export ENABLE_GLES="--enable-gles"
fi fi
if [ $ARM_NEON ]; then if [ $ARM_NEON ]; then
echo "=== Enabling ARM NEON support ===" echo "=== Enabling ARM NEON support ==="
export ENABLE_NEON="--enable-neon" export ENABLE_NEON="--enable-neon"
fi fi
if [ $ARM_HARDFLOAT ]; then if [ $ARM_HARDFLOAT ]; then
echo "=== Enabling ARM Hard float ABI support ===" echo "=== Enabling ARM Hard float ABI support ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=hard" export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=hard"
fi fi
if [ $ARM_SOFTFLOAT ]; then if [ $ARM_SOFTFLOAT ]; then
echo "=== Enabling ARM Soft float ABI support ===" echo "=== Enabling ARM Soft float ABI support ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=softfp" export RARCHCFLAGS="${RARCHCFLAGS} -mfloat-abi=softfp"
fi fi
if [ "$CORTEX_A8" ]; then if [ "$CORTEX_A8" ]; then
echo "=== Enabling Cortex A8 CFLAGS ===" echo "=== Enabling Cortex A8 CFLAGS ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a8 -mtune=cortex-a8" export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a8 -mtune=cortex-a8"
fi fi
if [ "$CORTEX_A9" ]; then if [ "$CORTEX_A9" ]; then
echo "=== Enabling Cortex A9 CFLAGS ===" echo "=== Enabling Cortex A9 CFLAGS ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a9 -mtune=cortex-a9" export RARCHCFLAGS="${RARCHCFLAGS} -mcpu=cortex-a9 -mtune=cortex-a9"
fi fi
if [ $ARM_NEON ]; then if [ $ARM_NEON ]; then
echo "=== Enabling ARM NEON support (CFLAGS) ===" echo "=== Enabling ARM NEON support (CFLAGS) ==="
export RARCHCFLAGS="${RARCHCFLAGS} -mfpu=neon" export RARCHCFLAGS="${RARCHCFLAGS} -mfpu=neon"
fi fi
} }
build_retroarch() build_retroarch()
{ {
cd "$BASE_DIR" cd "$BASE_DIR"
pwd pwd
if [ -d "retroarch" ]; then if [ -d "retroarch" ]; then
echo "=== Building RetroArch ===" echo "=== Building RetroArch ==="
cd retroarch cd retroarch
check_deps check_deps
if [ -z "${NOCLEAN}" ]; then if [ -z "${NOCLEAN}" ]; then
./configure $ENABLE_GLES $ENABLE_NEON ./configure $ENABLE_GLES $ENABLE_NEON
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS clean || die "Failed to clean RetroArch" ${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS clean || die "Failed to clean RetroArch"
fi fi
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS || die "Failed to build RetroArch" ${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} CC="gcc ${RARCHCFLAGS}" $COMPILER -j$JOBS || die "Failed to build RetroArch"
else else
echo "RetroArch not fetched, skipping ..." echo "RetroArch not fetched, skipping ..."
fi fi
} }
if [ $1 ]; then if [ $1 ]; then
$1 $1
else else
build_retroarch build_retroarch
fi fi