mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-23 23:33:45 +02:00
.. | ||
.gitignore | ||
core.info | ||
GMGSx.sf2 | ||
link.T | ||
Makefile | ||
README.md | ||
ruby-bindings.h | ||
sandbox-bindgen.rb |
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:
- C and C++ compilers
- Make
- GNU Autotools
- Git
- xxd
- curl
- Info-ZIP Zip (the
zip
package found in many package managers) - WASI SDK (currently you need WASI SDK version 21; later versions don't work yet)
- Binaryen
- WABT
- Either Universal Ctags or Exuberant Ctags
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