Skip to content

[feature] Zig build support #540

@KageKirin

Description

@KageKirin

Hi, this is less a request, more a fyi:

I'm working on adding Zig build support,
i.e. generating a build.zig file to use zig build to build C and C++ projects.

So far, genie builds.
I just want to make sure that we're on the same page concerning the required litmus tests:

  • build genie
  • build bx + bgfx
  • build my own project (that's what I'm adding this for to start with).
    Anything else to test it with?

Also, Zig introduces a few restrictions wrt config names (Debug, ReleaseFast, ReleaseSafe and ReleaseSmall are the only config names supported by Zig; for compatibility , Release gets renamed internally to ReleaseFast), and supported source files (only C and C++, not C#, Vala nor Swift).
I hope the way of handling this is fine by you.

This is the current WIP branch: https://github.com/KageKirin/GENie/tree/zig-build-support.
I'll push out a PR once it works with bgfx.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions