From 2c8e3cb7269bd6a286f03712872dbfdf9568b106 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Tue, 7 Feb 2023 17:33:54 -0600 Subject: [PATCH] chore: update gui libs to latest zig master --- build.zig | 9 ++++----- lib/nfd-zig | 2 +- lib/zgui | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/build.zig b/build.zig index d66cb62..45ed63f 100644 --- a/build.zig +++ b/build.zig @@ -45,7 +45,7 @@ pub fn build(b: *std.build.Builder) void { // NativeFileDialog(ue) Bindings exe.linkLibrary(nfd.makeLib(b, target, optimize)); - exe.addPackage(nfd.getPackage("nfd")); + exe.addModule("nfd", nfd.getModule(b)); // Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig const sdk = Sdk.init(b, null); @@ -53,10 +53,9 @@ pub fn build(b: *std.build.Builder) void { exe.addModule("sdl2", sdk.getNativeModule()); // Dear ImGui bindings - const zgui_options = zgui.BuildOptionsStep.init(b, .{ .backend = .sdl2_opengl3 }); - const zgui_pkg = zgui.getPkg(&.{zgui_options.getPkg()}); - zgui.link(exe, zgui_options); - exe.addPackage(zgui_pkg); + const zgui_pkg = zgui.package(b, .{ .options = .{ .backend = .sdl2_opengl3 } }); + exe.addModule("zgui", zgui_pkg.module); + zgui.link(exe, zgui_pkg.options); exe.install(); diff --git a/lib/nfd-zig b/lib/nfd-zig index b8d5626..5e5098b 160000 --- a/lib/nfd-zig +++ b/lib/nfd-zig @@ -1 +1 @@ -Subproject commit b8d56260294636f9d7bf596cb558b697e873793f +Subproject commit 5e5098bcaf2643d35199ce556da8091626a4d2ef diff --git a/lib/zgui b/lib/zgui index f9744ec..12e480f 160000 --- a/lib/zgui +++ b/lib/zgui @@ -1 +1 @@ -Subproject commit f9744ec8d613028b908896c410be937b5513f73b +Subproject commit 12e480f30d1192eda18bd9245f41f6ff2d4055bd