DoxigAlpha

create

Function parameters

Parameters

#
owner:*std.Build

Functions in this namespace

Functions

#
addOptionPath
The value is the path in the cache dir.
getOutput
Returns the main artifact of this Build Step which is a Zig source file

= .options

Values

#
base_id
= .options

Source

Implementation

#
pub fn create(owner: *std.Build) *Options {
    const options = owner.allocator.create(Options) catch @panic("OOM");
    options.* = .{
        .step = .init(.{
            .id = base_id,
            .name = "options",
            .owner = owner,
            .makeFn = make,
        }),
        .generated_file = undefined,
        .contents = .empty,
        .args = .empty,
        .encountered_types = .empty,
    };
    options.generated_file = .{ .step = &options.step };

    return options;
}