build: link against libEGL

This commit is contained in:
Leah Amelia Chen
2026-08-27 01:34:10 +08:00
parent fa2ec3a6a8
commit 7581009168

View File

@@ -660,6 +660,15 @@ pub fn add(
.flags = &.{},
});
// Link EGL for GTK.
if (self.config.app_runtime == .gtk) {
step.root_module.addCSourceFile(.{
.file = b.path("vendor/glad/src/glad_egl.c"),
.flags = &.{},
});
step.root_module.linkSystemLibrary("egl", dynamic_link_opts);
}
// When we're targeting flatpak we ALWAYS link GTK so we
// get access to glib for dbus.
if (self.config.flatpak) {