build: also depened on hexops/freetype
This commit is contained in:
parent
50cf1d1e85
commit
178d55965e
2 changed files with 16 additions and 2 deletions
10
build.zig
10
build.zig
|
|
@ -123,8 +123,8 @@ pub const App = struct {
|
||||||
try deps.append(.{ .name = "mach", .module = module(b, options.optimize, options.target) });
|
try deps.append(.{ .name = "mach", .module = module(b, options.optimize, options.target) });
|
||||||
try deps.append(.{ .name = "sysaudio", .module = sysaudio.module(b, options.optimize, options.target) });
|
try deps.append(.{ .name = "sysaudio", .module = sysaudio.module(b, options.optimize, options.target) });
|
||||||
if (options.use_freetype) |name| {
|
if (options.use_freetype) |name| {
|
||||||
const freetype_dep = b.dependency("mach_freetype", .{ .target = options.target, .optimize = options.optimize });
|
const mach_freetype_dep = b.dependency("mach_freetype", .{ .target = options.target, .optimize = options.optimize });
|
||||||
try deps.append(.{ .name = name, .module = freetype_dep.module("mach-freetype") });
|
try deps.append(.{ .name = name, .module = mach_freetype_dep.module("mach-freetype") });
|
||||||
}
|
}
|
||||||
|
|
||||||
const app = try core.App.init(b, .{
|
const app = try core.App.init(b, .{
|
||||||
|
|
@ -158,7 +158,13 @@ pub const App = struct {
|
||||||
.target = app.compile.target,
|
.target = app.compile.target,
|
||||||
.optimize = app.compile.optimize,
|
.optimize = app.compile.optimize,
|
||||||
});
|
});
|
||||||
|
const harfbuzz_dep = app.b.dependency("harfbuzz", .{
|
||||||
|
.target = app.compile.target,
|
||||||
|
.optimize = app.compile.optimize,
|
||||||
|
.enable_freetype = true,
|
||||||
|
});
|
||||||
app.compile.linkLibrary(mach_basisu.artifact("mach-basisu"));
|
app.compile.linkLibrary(mach_basisu.artifact("mach-basisu"));
|
||||||
|
app.compile.linkLibrary(harfbuzz_dep.artifact("harfbuzz"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,14 @@
|
||||||
.url = "https://pkg.machengine.org/mach-freetype/1f064ee503c6fbc25585a08e29e97977a39967ee.tar.gz",
|
.url = "https://pkg.machengine.org/mach-freetype/1f064ee503c6fbc25585a08e29e97977a39967ee.tar.gz",
|
||||||
.hash = "1220d25639a4f634e294a83787bbd70088f4d1fd03d840ca3cda2d2e76c1765ecebb",
|
.hash = "1220d25639a4f634e294a83787bbd70088f4d1fd03d840ca3cda2d2e76c1765ecebb",
|
||||||
},
|
},
|
||||||
|
.harfbuzz = .{
|
||||||
|
.url = "https://pkg.machengine.org/harfbuzz/b2b05db76bf1bdc36114fae3c4d2d6a6cc37672b.tar.gz",
|
||||||
|
.hash = "122091fd50873c798922f94af3b3806625c4f9d78918db0b19535074f657af6e7635",
|
||||||
|
},
|
||||||
|
.freetype = .{
|
||||||
|
.url = "https://pkg.machengine.org/freetype/f966f8117fdef886a04b84ced45801bf8add5c69.tar.gz",
|
||||||
|
.hash = "1220d8459bdcc6914e698acb582f6aca34b70a5b30bdd665cdcd969087c98e08a99a",
|
||||||
|
},
|
||||||
.glfw = .{
|
.glfw = .{
|
||||||
.url = "https://pkg.machengine.org/glfw/0e4cdba4216c6def0423462a2f21fef80683d56d.tar.gz",
|
.url = "https://pkg.machengine.org/glfw/0e4cdba4216c6def0423462a2f21fef80683d56d.tar.gz",
|
||||||
.hash = "1220a0b036095c2c54af347c86514ed9dab431299f0140b0e434ed119f85a976c32b",
|
.hash = "1220a0b036095c2c54af347c86514ed9dab431299f0140b0e434ed119f85a976c32b",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue