chore: update gui libs to latest zig master
This commit is contained in:
parent
57c7437f77
commit
baa3fb7905
|
@ -48,7 +48,7 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
gdbstub.link(exe);
|
gdbstub.link(exe);
|
||||||
// NativeFileDialog(ue) Bindings
|
// NativeFileDialog(ue) Bindings
|
||||||
exe.linkLibrary(nfd.makeLib(b, target, optimize));
|
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
|
// Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
|
||||||
const sdk = Sdk.init(b, null);
|
const sdk = Sdk.init(b, null);
|
||||||
|
@ -56,10 +56,9 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
exe.addModule("sdl2", sdk.getNativeModule());
|
exe.addModule("sdl2", sdk.getNativeModule());
|
||||||
|
|
||||||
// Dear ImGui bindings
|
// Dear ImGui bindings
|
||||||
const zgui_options = zgui.BuildOptionsStep.init(b, .{ .backend = .sdl2_opengl3 });
|
const zgui_pkg = zgui.package(b, .{ .options = .{ .backend = .sdl2_opengl3 } });
|
||||||
const zgui_pkg = zgui.getPkg(&.{zgui_options.getPkg()});
|
exe.addModule("zgui", zgui_pkg.module);
|
||||||
zgui.link(exe, zgui_options);
|
zgui.link(exe, zgui_pkg.options);
|
||||||
exe.addPackage(zgui_pkg);
|
|
||||||
|
|
||||||
exe.install();
|
exe.install();
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b8d56260294636f9d7bf596cb558b697e873793f
|
Subproject commit 5e5098bcaf2643d35199ce556da8091626a4d2ef
|
2
lib/zgui
2
lib/zgui
|
@ -1 +1 @@
|
||||||
Subproject commit f9744ec8d613028b908896c410be937b5513f73b
|
Subproject commit 12e480f30d1192eda18bd9245f41f6ff2d4055bd
|
Loading…
Reference in New Issue