glfw: add std.build.Pkg definition

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-04-04 22:39:58 -07:00 committed by Stephen Gutekanst
parent cd88057edd
commit 0161ccef37

View file

@ -41,6 +41,11 @@ pub const Options = struct {
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 {
const lib = buildLibrary(b, step, options);
step.linkLibrary(lib);