Function create [src]
Prototype
pub fn create(owner: *std.Build, options: Options) *InstallDir
Parameters
owner: *std.Build
options: Options
Source
pub fn create(owner: *std.Build, options: Options) *InstallDir {
const install_dir = owner.allocator.create(InstallDir) catch @panic("OOM");
install_dir.* = .{
.step = Step.init(.{
.id = base_id,
.name = owner.fmt("install {s}/", .{options.source_dir.getDisplayName()}),
.owner = owner,
.makeFn = make,
}),
.options = options.dupe(owner),
};
options.source_dir.addStepDependencies(&install_dir.step);
return install_dir;
}