mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-19 15:41:20 +00:00
build: don't build OpenGL support into imgui on iOS
This commit is contained in:
@@ -477,7 +477,9 @@ pub fn add(
|
||||
.freetype = true,
|
||||
.@"backend-metal" = target.result.os.tag.isDarwin(),
|
||||
.@"backend-osx" = target.result.os.tag == .macos,
|
||||
.@"backend-opengl3" = target.result.os.tag != .macos,
|
||||
// OpenGL3 backend should only be built on non-Apple targets.
|
||||
// Apple platforms use Metal (and macOS may also use the OSX backend).
|
||||
.@"backend-opengl3" = !target.result.os.tag.isDarwin(),
|
||||
})) |dep| {
|
||||
step.root_module.addImport("dcimgui", dep.module("dcimgui"));
|
||||
step.linkLibrary(dep.artifact("dcimgui"));
|
||||
|
||||
Reference in New Issue
Block a user