diff --git a/build.zig b/build.zig index df164f6..35fefea 100644 --- a/build.zig +++ b/build.zig @@ -48,7 +48,7 @@ pub fn build(b: *std.build.Builder) void { gdbstub.link(exe); // 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); @@ -56,10 +56,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