build: fix imgui on GTK

pull/10118/head
Mitchell Hashimoto 2025-12-31 13:20:01 -08:00
parent 896361f426
commit f1ba5297b8
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
const std = @import("std");
const assert = @import("../../../quirks.zig").inlineAssert;
const cimgui = @import("cimgui");
const cimgui = @import("dcimgui");
const gl = @import("opengl");
const adw = @import("adw");
const gdk = @import("gdk");

View File

@ -484,6 +484,7 @@ pub fn add(
.optimize = optimize,
.@"backend-metal" = target.result.os.tag.isDarwin(),
.@"backend-osx" = target.result.os.tag == .macos,
.@"backend-opengl3" = target.result.os.tag != .macos,
})) |dep| {
step.root_module.addImport("dcimgui", dep.module("dcimgui"));
step.linkLibrary(dep.artifact("dcimgui"));