mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-21 14:55:20 +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" },
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
.version = "2.13.2",
|
||||
.dependencies = .{
|
||||
.freetype = .{ .path = "../freetype" },
|
||||
.apple_sdk = .{ .path = "../apple-sdk" },
|
||||
},
|
||||
}
|
||||
|
||||
BIN
pkg/harfbuzz/libharfbuzz.a
Normal file
BIN
pkg/harfbuzz/libharfbuzz.a
Normal file
Binary file not shown.
Reference in New Issue
Block a user