mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
Add ability to generate a c header file from scratch, and then both
compile with it and install it if needed.
Example:
```zig
const avconfig_h = b.addConfigHeader(.{ .path = "libavutil/avconfig.h" }, .generated, .{
.AV_HAVE_BIGENDIAN = 0, // TODO: detect based on target
.AV_HAVE_FAST_UNALIGNED = 1, // TODO: detect based on target
});
lib.addConfigHeader(avconfig_h);
lib.installConfigHeader(avconfig_h);
```
|
||
|---|---|---|
| .. | ||
| CheckFileStep.zig | ||
| CheckObjectStep.zig | ||
| CompileStep.zig | ||
| ConfigHeaderStep.zig | ||
| EmulatableRunStep.zig | ||
| FmtStep.zig | ||
| InstallArtifactStep.zig | ||
| InstallDirStep.zig | ||
| InstallFileStep.zig | ||
| InstallRawStep.zig | ||
| LogStep.zig | ||
| OptionsStep.zig | ||
| RemoveDirStep.zig | ||
| RunStep.zig | ||
| Step.zig | ||
| TranslateCStep.zig | ||
| WriteFileStep.zig | ||