mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
add fontconfig
This commit is contained in:
34
build.zig
34
build.zig
@ -676,6 +676,10 @@ fn addDeps(
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
|
const fontconfig_dep = b.dependency("fontconfig", .{
|
||||||
|
.target = step.target,
|
||||||
|
.optimize = step.optimize,
|
||||||
|
});
|
||||||
const freetype_dep = b.dependency("freetype", .{
|
const freetype_dep = b.dependency("freetype", .{
|
||||||
.target = step.target,
|
.target = step.target,
|
||||||
.optimize = step.optimize,
|
.optimize = step.optimize,
|
||||||
@ -790,32 +794,10 @@ fn addDeps(
|
|||||||
try static_libs.append(pixman_step.getEmittedBin());
|
try static_libs.append(pixman_step.getEmittedBin());
|
||||||
|
|
||||||
// Only Linux gets fontconfig
|
// Only Linux gets fontconfig
|
||||||
// if (font_backend.hasFontconfig()) {
|
if (font_backend.hasFontconfig()) {
|
||||||
// // Libxml2
|
// Fontconfig
|
||||||
// const libxml2_lib = try libxml2.create(
|
step.linkLibrary(fontconfig_dep.artifact("fontconfig"));
|
||||||
// b,
|
}
|
||||||
// step.target,
|
|
||||||
// step.optimize,
|
|
||||||
// .{
|
|
||||||
// .lzma = false,
|
|
||||||
// .zlib = false,
|
|
||||||
// .iconv = !step.target.isWindows(),
|
|
||||||
// },
|
|
||||||
// );
|
|
||||||
// libxml2_lib.link(step);
|
|
||||||
//
|
|
||||||
// // Fontconfig
|
|
||||||
// const fontconfig_step = try fontconfig.link(b, step, .{
|
|
||||||
// .freetype = .{
|
|
||||||
// .enabled = true,
|
|
||||||
// .step = freetype_step,
|
|
||||||
// .include = &freetype.include_paths,
|
|
||||||
// },
|
|
||||||
//
|
|
||||||
// .libxml2 = true,
|
|
||||||
// });
|
|
||||||
// libxml2_lib.link(fontconfig_step);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!lib) {
|
if (!lib) {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
.name = "ghostty",
|
.name = "ghostty",
|
||||||
.version = "0.1.0",
|
.version = "0.1.0",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
|
.fontconfig = .{ .path = "./pkg/fontconfig" },
|
||||||
.freetype = .{ .path = "./pkg/freetype" },
|
.freetype = .{ .path = "./pkg/freetype" },
|
||||||
.harfbuzz = .{ .path = "./pkg/harfbuzz" },
|
.harfbuzz = .{ .path = "./pkg/harfbuzz" },
|
||||||
.libpng = .{ .path = "./pkg/libpng" },
|
.libpng = .{ .path = "./pkg/libpng" },
|
||||||
|
Reference in New Issue
Block a user