mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-02 03:44:39 +00:00
pkg/harfbuzz needs to use apple sdk for coretext
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const std = @import("std");
|
||||
const apple_sdk = @import("apple_sdk");
|
||||
|
||||
pub fn build(b: *std.Build) !void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
@@ -42,7 +43,11 @@ pub fn build(b: *std.Build) !void {
|
||||
"-DHAVE_FT_DONE_MM_VAR=1",
|
||||
"-DHAVE_FT_GET_TRANSFORM=1",
|
||||
});
|
||||
if (coretext_enabled) try flags.appendSlice(&.{"-DHAVE_CORETEXT=1"});
|
||||
if (coretext_enabled) {
|
||||
try flags.appendSlice(&.{"-DHAVE_CORETEXT=1"});
|
||||
try apple_sdk.addPaths(b, lib);
|
||||
lib.linkFramework("ApplicationServices");
|
||||
}
|
||||
|
||||
lib.addCSourceFile(.{
|
||||
.file = .{ .path = upstream_root ++ "/src/harfbuzz.cc" },
|
||||
|
||||
Reference in New Issue
Block a user