DoxigAlpha

create

Function parameters

Parameters

#
owner:*std.Build

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= .install_dir

Values

#
base_id
= .install_dir

Source

Implementation

#
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;
}