C/C++ projects packaged for Zig(github.com) |
C/C++ projects packaged for Zig(github.com) |
The HAVE_/WITH_ defines are supposed to be dynamically probed to adapt to different toolchain environments, setting them manually like that[1][2][3] could only work well for specific targets and for specific versions.
[1] https://github.com/allyourcodebase/libxml2/blob/38fb69d375bc...
[2] https://github.com/allyourcodebase/rnnoise/blob/47db9c212d7e...
[3] https://github.com/allyourcodebase/wayland/blob/f992cd71e199...
I had the impression `zig` already has stuff like `zig cc`. Would... would `zig make` be an impossible proposition? Maybe that makes no sense.
I haven't kept my zig skills sharp enough but zig build and the build.zig file basically lets you create a dag of steps and create various targets. It's basically make but the programming language is zig itself and the associated code happens to be in the standard library.
Can you tell me more about this? I’ve never used Bazel. I have used Buck extensively. But have never used either in an open source context.
https://github.com/allyourcodebase/wayland/blob/master/build... https://github.com/wayland-mirror/wayland/blob/main/meson.bu...
meson.build
meson_options.txt
doc/meson.build
egl/meson.build
src/meson.build
tests/meson.build
cursor/meson.build
doc/doxygen/meson.build
doc/publican/meson.build
doc/doxygen/xml/meson.build
doc/publican/sources/meson.build
doc/doxygen/xml/Client/meson.build
doc/doxygen/xml/Server/meson.build