Skip to content

Commit

Permalink
correctly link freetype
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
  • Loading branch information
slimsag committed Aug 5, 2023
1 parent 10f5a26 commit 7628649
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ pub fn build(b: *std.Build) !void {
_ = use_system_zlib;
_ = enable_brotli;

// const harfbuzz_dep = b.dependency(harfbuzz_import_path, .{
// const freetype_dep = b.dependency("freetype", .{
// .optimize = optimize,
// .target = target,
// .use_system_zlib = use_system_zlib,
// .enable_brotli = enable_brotli,
// });
// const harfbuzz_dep = b.dependency("harfbuzz", .{
// .optimize = optimize,
// .target = target,
// .enable_freetype = true,
Expand All @@ -45,6 +51,7 @@ pub fn build(b: *std.Build) !void {
// .optimize = optimize,
// });
// harfbuzz_tests.addModule("freetype", freetype_module);
// harfbuzz_tests.linkLibrary(freetype_dep.artifact("freetype"));
// harfbuzz_tests.linkLibrary(harfbuzz_dep.artifact("harfbuzz"));

// const test_step = b.step("test", "Run library tests");
Expand All @@ -63,6 +70,7 @@ pub fn build(b: *std.Build) !void {
// });
// example_exe.addModule("freetype", freetype_module);
// example_exe.addModule("font-assets", font_assets_dep.module("font-assets"));
// example_exe.linkLibrary(freetype_dep.artifact("freetype"));
// example_exe.linkLibrary(harfbuzz_dep.artifact("harfbuzz"));

// const example_run_cmd = b.addRunArtifact(example_exe);
Expand Down
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
.name = "mach-freetype",
.version = "0.0.0",
.dependencies = .{
.freetype = .{
.url = "https://pkg.machengine.org/freetype/08684e51fbd0de15b918605d403cdfae402807c7.tar.gz",
.hash = "1220bfdd4eeac92af0f6cc2d63898cbebb45a4e62c0d5783261567783ea7dbc26fe6",
},
.harfbuzz = .{
.url = "https://pkg.machengine.org/harfbuzz/67b985c93eae7ab8b1a024b2b4249b4fc2ae2756.tar.gz",
.hash = "1220604f5cc7db54dafa29676289923af62623a1ccfbb5efce3cd329278a4829f01b",
Expand Down

0 comments on commit 7628649

Please sign in to comment.