kassane / sokol-d

D bindings for the sokol headers (https://github.com/floooh/sokol)
http://sokol-d.dub.pm/
zlib License
12 stars 5 forks source link

Builder transition: `build.zig` to `build.d` #30

Open kassane opened 6 days ago

kassane commented 6 days ago

The use of zig + ldc2 is functional and exciting. However, for some users, it may not be interesting to be limited to such choices.

Unlike build.zig, the build.d will be a manual process using std features and will also be DIY (e.g. download, extract and run emsdk). Likewise, zig (toolchain) can optionally be downloaded and extracted, or the system toolchain can be used to build the sokol library (C code).

Dub will be a front-end interface and build.d will be a back-end for building project and samples. This transition will give users a choice of compilers (D and C) and targets.

kassane commented 5 days ago

Currently POC, get emsdk & zig (cross-platforms) - https://github.com/kassane/sokol-d/actions/runs/11262941946