Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › std/ › Build/ › Step/ › Compile.zig › addHeaderInstallationToIncludeTree
addHeaderInstallationToIncludeTree
Compile.addHeaderInstallationToIncludeTree
fn addHeaderInstallationToIncludeTree (cs : *Compile , installation : HeaderInstallation ) void
File
Code
fn addHeaderInstallationToIncludeTree (cs : *Compile , installation : HeaderInstallation ) void {
if (cs .installed_headers_include_tree ) |wf | switch (installation ) {
.file => |file | {
_ = wf .addCopyFile (file .source , file .dest_rel_path );
},
.directory => |dir | {
_ = wf .addCopyDirectory (dir .source , dir .dest_rel_path , .{
.exclude_extensions = dir .options .exclude_extensions ,
.include_extensions = dir .options .include_extensions ,
});
},
};
}