create
Function parameters
Parameters
- owner:*std.Build
Type definitions in this namespace
Types
Functions in this namespace
Functions
- addCopyFile
- Place the file into the generated directory within the local cache,
- addCopyDirectory
- Copy files matching the specified exclude/include patterns to the specified subdirectory
- getDirectory
- Returns a `LazyPath` representing the base directory that contains all the
= .write_file
Values
- base_id
- = .write_file
Source
Implementation
pub fn create(owner: *std.Build) *WriteFile {
const write_file = owner.allocator.create(WriteFile) catch @panic("OOM");
write_file.* = .{
.step = Step.init(.{
.id = base_id,
.name = "WriteFile",
.owner = owner,
.makeFn = make,
}),
.files = .{},
.directories = .{},
.generated_directory = .{ .step = &write_file.step },
};
return write_file;
}