glfw: add std.build.Pkg definition
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
cd88057edd
commit
0161ccef37
1 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ pub const Options = struct {
|
||||||
system_sdk: system_sdk.Options = .{},
|
system_sdk: system_sdk.Options = .{},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const pkg = .{
|
||||||
|
.name = "glfw",
|
||||||
|
.path = .{ .path = thisDir() ++ "/src/main.zig" },
|
||||||
|
};
|
||||||
|
|
||||||
pub fn link(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
pub fn link(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
||||||
const lib = buildLibrary(b, step, options);
|
const lib = buildLibrary(b, step, options);
|
||||||
step.linkLibrary(lib);
|
step.linkLibrary(lib);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue