mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-09-19 20:18:07 +00:00
This migrates all remaining uses of cImport (and addTranslateC for good measure) to using translate-c for C translation, ensuring that we are ready for when cImport is removed from the language, and also that all sources of C translation are using the same snapshot of the external package (when can then be updated when we need to fix something). A couple of notes: * A few options have been added to support the new translations, namely the ability to link libraries (passed through to linkLibrary on the Translator side) and whether or not to initialize default values (looks like cImport did this without a way to control it, but translate-c does not do it by default). * Using the new library linking option actually simplifies the process of translating a number of the C packages as we have been shipping the necessary headers for these packages already with the applicable libraries. For some of the more complex translation processes though, we still include the appropriate directories directly.
28 lines
961 B
Zig
28 lines
961 B
Zig
.{
|
|
.name = .dcimgui,
|
|
.version = "1.92.5", // -docking branch
|
|
.fingerprint = 0x1a25797442c6324f,
|
|
.paths = .{""},
|
|
.dependencies = .{
|
|
// The bindings and imgui versions below must match exactly.
|
|
|
|
.bindings = .{
|
|
// https://github.com/dearimgui/dear_bindings
|
|
.url = "https://deps.files.ghostty.org/DearBindings_v0.17_ImGui_v1.92.5-docking.tar.gz",
|
|
.hash = "N-V-__8AANT61wB--nJ95Gj_ctmzAtcjloZ__hRqNw5lC1Kr",
|
|
.lazy = true,
|
|
},
|
|
|
|
.imgui = .{
|
|
// https://github.com/ocornut/imgui
|
|
.url = "https://deps.files.ghostty.org/N-V-__8AAEbOfQBnvcFcCX2W5z7tDaN8vaNZGamEQtNOe0UI.tar.gz",
|
|
.hash = "N-V-__8AAEbOfQBnvcFcCX2W5z7tDaN8vaNZGamEQtNOe0UI",
|
|
.lazy = true,
|
|
},
|
|
|
|
.apple_sdk = .{ .path = "../apple-sdk" },
|
|
.freetype = .{ .path = "../freetype" },
|
|
.translate_c = .{ .path = "../translate-c" },
|
|
},
|
|
}
|