mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
build: do not build glfw for gtk anymore
This commit is contained in:
14
build.zig
14
build.zig
@ -795,7 +795,10 @@ fn addDeps(
|
||||
// get access to glib for dbus.
|
||||
if (flatpak) step.linkSystemLibrary2("gtk4", dynamic_link_opts);
|
||||
|
||||
// We may link GLFW below
|
||||
switch (app_runtime) {
|
||||
.none => {},
|
||||
|
||||
.glfw => {
|
||||
const glfw_dep = b.dependency("glfw", .{
|
||||
.target = step.target,
|
||||
.optimize = step.optimize,
|
||||
@ -804,21 +807,12 @@ fn addDeps(
|
||||
.metal = step.target.isDarwin(),
|
||||
});
|
||||
|
||||
switch (app_runtime) {
|
||||
.none => {},
|
||||
|
||||
.glfw => {
|
||||
step.addModule("glfw", mach_glfw_dep.module("mach-glfw"));
|
||||
step.linkLibrary(mach_glfw_dep.artifact("mach-glfw"));
|
||||
step.linkLibrary(glfw_dep.artifact("glfw"));
|
||||
},
|
||||
|
||||
.gtk => {
|
||||
// We need glfw for GTK because we use GLFW to get DPI.
|
||||
step.addModule("glfw", mach_glfw_dep.module("mach-glfw"));
|
||||
step.linkLibrary(mach_glfw_dep.artifact("mach-glfw"));
|
||||
step.linkLibrary(glfw_dep.artifact("glfw"));
|
||||
|
||||
step.linkSystemLibrary2("gtk4", dynamic_link_opts);
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user