fn addCopyFile(wf: *WriteFile, source: std.Build.LazyPath, sub_path: []const u8) std.Build.LazyPath

Place the file into the generated directory within the local cache, along with all the rest of the files added to this step. The parameter here is the destination path relative to the local cache directory associated with this WriteFile. It may be a basename, or it may include sub-directories, in which case this step will ensure the required sub-path exists. This is the option expected to be used most commonly with addCopyFile.

Parameters

wf: *WriteFile,
source: std.Build.LazyPath,
sub_path: []const u8,