mkxp-z/retro
2025-02-02 17:05:15 -05:00
..
.gitignore Upload base libretro core files 2024-12-29 23:35:35 -05:00
core.info Embed mkxp-z version into the libretro core 2025-01-31 23:35:20 -05:00
GMGSx.sf2 Use embedded GMGSx.sf2 as soundfont in libretro builds 2025-01-27 13:15:55 -05:00
link.T Improve compilation flags for libretro builds 2025-01-10 17:57:10 -05:00
Makefile Compile Ruby with -Oz -DNDEBUG in libretro builds 2025-02-02 17:05:15 -05:00
README.md Compile Ruby with -Oz -DNDEBUG in libretro builds 2025-02-02 17:05:15 -05:00
ruby-bindings.h Compile Ruby with -Oz -DNDEBUG in libretro builds 2025-02-02 17:05:15 -05:00
sandbox-bindgen.rb Compile Ruby with -Oz -DNDEBUG in libretro builds 2025-02-02 17:05:15 -05:00

The build process for the libretro core is divided into two phases.

Phase 1

All the files produced by this phase are platform-agnostic, so you can run this build phase on any computer, regardless of which operating system or CPU architecture the libretro core is for.

Required software:

Go to the directory that this README.md is in and run this command, filling in the paths to WASI SDK, wasm-opt from Binaryen, wasm2c from WABT and ctags from Universal Ctags or Exuberant Ctags accordingly:

make WASI_SDK=/path/to/wasi-sdk WASM_OPT=/path/to/binaryen/bin/wasm-opt WASM2C=/path/to/wabt/bin/wasm2c CTAGS=/path/to/ctags

This will produce the directory "retro/build/retro-phase1".

Phase 2

This phase produces the actual core file.

Required software:

No software libraries are required other than the system libraries.

Go to the root directory of this repository and run:

meson setup build -Dretro=true -Dretro_phase1_path=path/to/retro-phase1
cd build
ninja