Rust bindings for the SameBoy core
You will need cppp
on your PATH in order to compile SameBoy.
- Clone the source from
https://github.com/BR903/cppp
- If on Windows, or using MinGW:
- Rename
unixisms.c
tounixisms-nix.c
- Rename
unixisms-win32.c
tounixisms.c
- Make sure you specify your cross compiler as
CC
in your make command
- Rename
- Call
make
to build. - The
cppp
binary should be in your current directory. Install it somewhere convenient or add thecppp
dir to your PATH.
SameBoy does not support MSVC, so this crate calls out to Clang to compile it. You can install Clang and its MSBuild integration from the Visual Studio Installer.
- Ensure
cppp
is on your PATH. - Call
cargo build
to build.