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 3f2a19c890
commit 5f0eb995bd
3 changed files with 6 additions and 7 deletions

View File

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

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

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