mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-07 10:26:34 +00:00
don't build fontconfig on mac
This commit is contained in:
14
build.zig
14
build.zig
@@ -189,12 +189,13 @@ fn addDeps(
|
|||||||
if (!static) {
|
if (!static) {
|
||||||
step.addIncludePath(freetype.include_path_self);
|
step.addIncludePath(freetype.include_path_self);
|
||||||
step.linkSystemLibrary("bzip2");
|
step.linkSystemLibrary("bzip2");
|
||||||
step.linkSystemLibrary("fontconfig");
|
|
||||||
step.linkSystemLibrary("freetype2");
|
step.linkSystemLibrary("freetype2");
|
||||||
step.linkSystemLibrary("harfbuzz");
|
step.linkSystemLibrary("harfbuzz");
|
||||||
step.linkSystemLibrary("libpng");
|
step.linkSystemLibrary("libpng");
|
||||||
step.linkSystemLibrary("libuv");
|
step.linkSystemLibrary("libuv");
|
||||||
step.linkSystemLibrary("zlib");
|
step.linkSystemLibrary("zlib");
|
||||||
|
|
||||||
|
if (step.target.isLinux()) step.linkSystemLibrary("fontconfig");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Other dependencies, we may dynamically link
|
// Other dependencies, we may dynamically link
|
||||||
@@ -231,6 +232,12 @@ fn addDeps(
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Libuv
|
||||||
|
const libuv_step = try libuv.link(b, step);
|
||||||
|
system_sdk.include(b, libuv_step, .{});
|
||||||
|
|
||||||
|
// Only Linux gets fontconfig
|
||||||
|
if (step.target.isLinux()) {
|
||||||
// Libxml2
|
// Libxml2
|
||||||
const libxml2_lib = try libxml2.create(
|
const libxml2_lib = try libxml2.create(
|
||||||
b,
|
b,
|
||||||
@@ -251,10 +258,7 @@ fn addDeps(
|
|||||||
.libxml2 = true,
|
.libxml2 = true,
|
||||||
});
|
});
|
||||||
libxml2_lib.link(fontconfig_step);
|
libxml2_lib.link(fontconfig_step);
|
||||||
|
}
|
||||||
// Libuv
|
|
||||||
const libuv_step = try libuv.link(b, step);
|
|
||||||
system_sdk.include(b, libuv_step, .{});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user