Bindings for DS libraries such as libnds
- Zig 72.7%
- C 27.3%
| src | zig fmt | |
| stub/nds | add bios.h and ndstypes.h override to workaround translate-c regressions | |
| .gitignore | initial: libnds bindings | |
| build.zig | use translate-c package; add workarounds | |
| build.zig.zon | use translate-c package; add workarounds | |
| README.md | initial: libnds bindings | |
zig-nds-bindings
Zig bindings for libnds
See https://codeberg.org/GalaxyShard/zig-nds for building BlocksDS with Zig
To add as a dependency or update, run the following command:
zig fetch --save git+https://codeberg.org/GalaxyShard/zig-nds-bindings.git
Then use the following in build.zig:
const nds_bindings = b.dependency("nds-bindings", .{});
arm9.root_module.addImport("nds9-bindings", nds_bindings.module("nds9"));
// Only for projects with a custom arm7 with Zig code
arm7.root_module.addImport("nds7-bindings", nds_bindings.module("nds7"));