aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorDavid Vanderson <david.vanderson@gmail.com>2023-01-19 21:30:43 -0500
committerAndrew Kelley <andrew@ziglang.org>2023-02-05 06:26:30 -0700
commitb04e48566c58ed22fdb0dbe7ac866877ad53133c (patch)
treea277985b27136dce3930578cea2a6d374b2a4ff8 /src/Compilation.zig
parent11cc1c16fa36a7eb13cba1c43fb153ee6aca7b58 (diff)
downloadzig-b04e48566c58ed22fdb0dbe7ac866877ad53133c.tar.gz
zig-b04e48566c58ed22fdb0dbe7ac866877ad53133c.zip
std.build: support for generated c headers
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); ```
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions