| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
Zig Pocketbook
Build applications for Pocketbook ereaders with Zig 0.14.x
This doesn't work yet with Zig 0.15.1
Introduction
The source of the SDK can be found on GitHub. This is using the version 6.5 of the SDK because the version 6.8 is released in a 7z file that the Zig build system cannot handle yet.
As indicated above, this does not support Zig 0.15.1. Executables produced with Zig will not work! If I go further in this project, I might investigate it. Or maybe another release of Zig will fix the issue...
For now, an example is built with the module. This example is a manual rewrite in Zig of an hello world example by Pascal Martin.
Usage
Not very tested yet, but you should be able to add this as a dependency to your project:
zig fetch --save=pb git+https://forge.lunai.re/rodolphe/zig-pocketbook.zig
And in your build.zig:
const pb_dep = b.dependency("pb", .{});
const inkview = pb_dep.module("inkview");
// Assuming your executable's module is named exe_mod
exe_mod.addModule("inkview", inkview);
From there you should be able to use the module in your code:
const inkview = @import("inkview");