pkg/harfbuzz needs to use apple sdk for coretext

This commit is contained in:
Mitchell Hashimoto
2023-10-01 15:33:40 -07:00
parent 5feeac66b2
commit b9cc763a3a
5 changed files with 149 additions and 1 deletions

View File

@@ -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" },

View File

@@ -3,5 +3,6 @@
.version = "2.13.2",
.dependencies = .{
.freetype = .{ .path = "../freetype" },
.apple_sdk = .{ .path = "../apple-sdk" },
},
}

BIN
pkg/harfbuzz/libharfbuzz.a Normal file

Binary file not shown.