Document added/updated functions

Also renames `addHeaders` to `addHeadersDirectory` for clarity.
This commit is contained in:
Carl Åstholm
2024-03-10 12:17:33 +01:00
parent 5af4e91e00
commit d99e44a157
4 changed files with 21 additions and 5 deletions

View File

@@ -126,6 +126,9 @@ pub fn addCopyFile(wf: *WriteFile, source: std.Build.LazyPath, sub_path: []const
return file.getPath();
}
/// Copy files matching the specified exclude/include patterns to the specified subdirectory
/// relative to this step's generated directory.
/// The returned value is a lazy path to the generated subdirectory.
pub fn addCopyDirectory(
wf: *WriteFile,
source: std.Build.LazyPath,