mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 20:14:22 +00:00
check_opengl now returns a value we can use
This commit is contained in:
parent
4b6033f3aa
commit
2a35b32016
@ -78,8 +78,8 @@ build_save_revision() {
|
||||
|
||||
|
||||
check_opengl() {
|
||||
if [ "${BUILD_LIBRETRO_GL}" ]; then
|
||||
if [ "${ENABLE_GLES}" ]; then
|
||||
if [ "$BUILD_LIBRETRO_GL" ]; then
|
||||
if [ "$ENABLE_GLES" ]; then
|
||||
echo '=== OpenGL ES enabled ==='
|
||||
export FORMAT_COMPILER_TARGET="$FORMAT_COMPILER_TARGET-gles"
|
||||
export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET"
|
||||
@ -90,7 +90,10 @@ check_opengl() {
|
||||
fi
|
||||
else
|
||||
echo '=== OpenGL disabled in build ==='
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
reset_compiler_targets() {
|
||||
@ -100,6 +103,12 @@ reset_compiler_targets() {
|
||||
|
||||
build_libretro_pcsx_rearmed_interpreter() {
|
||||
build_dir="$WORKDIR/libretro-pcsx_rearmed"
|
||||
|
||||
if build_should_skip "pcsx_rearmed_interpreter" "$build_dir"; then
|
||||
echo "Core test is already built, skipping..."
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -d "$build_dir" ]; then
|
||||
echo '=== Building PCSX ReARMed Interpreter ==='
|
||||
echo_cmd "cd \"$build_dir\""
|
||||
@ -110,6 +119,7 @@ build_libretro_pcsx_rearmed_interpreter() {
|
||||
echo_cmd "$MAKE -f Makefile.libretro USE_DYNAREC=0 platform=\"$FORMAT_COMPILER_TARGET\" $COMPILER \"-j$JOBS\"" || die 'Failed to build PCSX ReARMed'
|
||||
echo_cmd "cp \"pcsx_rearmed$CORE_SUFFIX\" \"$RARCH_DIST_DIR/pcsx_rearmed_interpreter${FORMAT}.$FORMAT_EXT\""
|
||||
build_summary_log $? "pcsx_rearmed_interpreter"
|
||||
build_save_revision $? "pcsx_rearmed_interpreter"
|
||||
else
|
||||
echo 'PCSX ReARMed not fetched, skipping ...'
|
||||
fi
|
||||
@ -206,8 +216,10 @@ build_libretro_test() {
|
||||
|
||||
if [ -d "$build_dir" ]; then
|
||||
echo "=== Building RetroArch test cores ==="
|
||||
if check_opengl; then
|
||||
build_libretro_generic "retroarch" "libretro-test-gl" "Makefile" $FORMAT_COMPILER_TARGET "$build_dir"
|
||||
copy_core_to_dist "testgl"
|
||||
fi
|
||||
build_libretro_generic "retroarch" "libretro-test" "Makefile" $FORMAT_COMPILER_TARGET "$build_dir"
|
||||
copy_core_to_dist "test"
|
||||
|
||||
@ -428,15 +440,17 @@ build_libretro_fb_alpha() {
|
||||
}
|
||||
|
||||
build_libretro_ffmpeg() {
|
||||
check_opengl
|
||||
if check_opengl; then
|
||||
build_libretro_generic_makefile "ffmpeg" "libretro" "Makefile" $FORMAT_COMPILER_TARGET
|
||||
reset_compiler_targets
|
||||
fi
|
||||
}
|
||||
|
||||
build_libretro_3dengine() {
|
||||
check_opengl
|
||||
if check_opengl; then
|
||||
build_libretro_generic_makefile "3dengine" "." "Makefile" $FORMAT_COMPILER_TARGET
|
||||
reset_compiler_targets
|
||||
fi
|
||||
}
|
||||
|
||||
build_libretro_scummvm() {
|
||||
@ -444,9 +458,10 @@ build_libretro_scummvm() {
|
||||
}
|
||||
|
||||
build_libretro_ppsspp() {
|
||||
check_opengl
|
||||
if check_opengl; then
|
||||
build_libretro_generic_makefile "ppsspp" "libretro" "Makefile" $FORMAT_COMPILER_TARGET
|
||||
reset_compiler_targets
|
||||
fi
|
||||
}
|
||||
|
||||
build_libretro_mame_modern() {
|
||||
@ -617,7 +632,7 @@ build_libretro_bnes() {
|
||||
}
|
||||
|
||||
build_libretro_mupen64() {
|
||||
check_opengl
|
||||
if check_opengl; then
|
||||
build_dir="$WORKDIR/libretro-mupen64plus"
|
||||
|
||||
if build_should_skip mupen64plus "$build_dir"; then
|
||||
@ -653,6 +668,7 @@ build_libretro_mupen64() {
|
||||
echo 'Mupen64 Plus not fetched, skipping ...'
|
||||
fi
|
||||
reset_compiler_targets
|
||||
fi
|
||||
}
|
||||
|
||||
build_summary() {
|
||||
|
Loading…
Reference in New Issue
Block a user