Riverhorse

libretro core

Build the dependencies with scripts/deps/build-dependencies-linux.sh --libretro deps-libretro, then configure a separate build directory as above with -DCMAKE_PREFIX_PATH="$PWD/deps-libretro" -DBUILD_QT_FRONTEND=OFF -DBUILD_LIBRETRO_CORE=ON -DENABLE_DESKTOP_INTEGRATION=OFF and build the riverhorse_libretro target. Without desktop integration the core needs no SDL, curl, D-Bus, udev, libbacktrace, Discord, X11 or Wayland libraries.

To build the core without a dependency directory, fetch the bundled sources with git submodule update --init --recursive and configure with -DBUILD_QT_FRONTEND=OFF -DBUILD_LIBRETRO_CORE=ON -DENABLE_DESKTOP_INTEGRATION=OFF -DUSE_BUNDLED_DEPENDENCIES=ON (no CMAKE_PREFIX_PATH). The result needs only the C and C++ runtime. scripts/libretro/make-libretro-package.sh <core file> <output directory> <name suffix> packs the result. For Windows, cross-compile with -DCMAKE_TOOLCHAIN_FILE=scripts/libretro/mingw-w64-x86_64.cmake; for 32-bit ARM Linux, with -DCMAKE_TOOLCHAIN_FILE=scripts/libretro/linux-armhf.cmake (clang and Debian’s g++-arm-linux-gnueabihf).

Each release has the core for Linux, Windows, Android and macOS (riverhorse_libretro-<platform>.zip). To install: put the core (riverhorse_libretro.so, .dll, .dylib, or riverhorse_libretro_android.so) and riverhorse_libretro.info in the frontend’s cores and info directories, and BIOS images in its system directory. On Android, use RetroArch’s Load Core > Install or Restore a Core. The game database, cheats, patches and shaders are built into the core.