chore: update gui libs to latest zig master

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-02-07 17:33:54 -06:00
parent 57c7437f77
commit baa3fb7905
3 changed files with 6 additions and 7 deletions

View File

@ -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();

@ -1 +1 @@
Subproject commit b8d56260294636f9d7bf596cb558b697e873793f
Subproject commit 5e5098bcaf2643d35199ce556da8091626a4d2ef

@ -1 +1 @@
Subproject commit f9744ec8d613028b908896c410be937b5513f73b
Subproject commit 12e480f30d1192eda18bd9245f41f6ff2d4055bd