Add ffmpeg core to BUILD_EXPERIMENTAL

This commit is contained in:
twinaphex 2013-07-14 00:10:43 +02:00
parent 005022695d
commit 74eb977e48
2 changed files with 26 additions and 0 deletions

View File

@ -42,6 +42,31 @@ export FORMAT_COMPILER_TARGET=FORMAT_COMPILER_TARGET-softfloat
echo $FORMAT_COMPILER_TARGET
fi
check_opengl()
{
if [ "$BUILD_LIBRETRO_GL" ]; then
if [ "$ENABLE_GLES"]; then
export FORMAT_COMPILER_TARGET=FORMAT_COMPILER_TARGET-gles
else
export FORMAT_COMPILER_TARGET=FORMAT_COMPILER_TARGET-opengl
fi
fi
}
build_libretro_ffmpeg()
{
cd "$BASE_DIR"
if [ -d "libretro-ffmpeg" ]; then
echo "=== Checking OpenGL dependencies ==="
check_opengl
echo "=== Building FFmpeg ==="
${MAKE} -f Makefile platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean FFmpeg"
cp ffmpeg_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "FFmpeg not fetched, skipping ..."
fi
}
build_libretro_fba_full()
{
cd "$BASE_DIR"

View File

@ -166,6 +166,7 @@ if [ -z $BUILD_LIBRETRO_GL ]; then
build_libretro_scenewalker
if [ -z $BUILD_EXPERIMENTAL ]; then
build_libretro_mupen64
build_libretro_ffmpeg
fi
fi
build_libretro_bsnes