Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kassane opened this issue Oct 9, 2024 · 2 comments
Open

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

kassane opened this issue Oct 9, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kassane
Copy link
Owner

kassane commented Oct 9, 2024

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.

Note

Low priority

@kassane kassane added enhancement New feature or request help wanted Extra attention is needed labels Oct 9, 2024
@kassane

This comment has been minimized.

@kassane
Copy link
Owner Author

kassane commented Oct 29, 2024

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

Updated - get:

  • zig
  • emsdk
  • cimgui & imgui
  • sokol-tools-bin
  • generate shaders

https://github.com/kassane/sokol-d/actions/runs/11581063939
src: https://github.com/kassane/sokol-d/blob/builder/build.d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant