mach: update mach-test dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
030cbf71a1
commit
18bc25502b
1 changed files with 7 additions and 3 deletions
10
build.zig
10
build.zig
|
|
@ -124,9 +124,13 @@ fn testStep(b: *Builder, mode: std.builtin.Mode, target: CrossTarget) *std.build
|
||||||
const main_tests = b.addTestExe("mach-tests", "src/main.zig");
|
const main_tests = b.addTestExe("mach-tests", "src/main.zig");
|
||||||
main_tests.setBuildMode(mode);
|
main_tests.setBuildMode(mode);
|
||||||
main_tests.setTarget(target);
|
main_tests.setTarget(target);
|
||||||
main_tests.addPackage(pkg);
|
for (pkg.dependencies.?) |dependency| {
|
||||||
main_tests.addPackage(gpu.pkg);
|
main_tests.addPackage(dependency);
|
||||||
main_tests.addPackage(glfw.pkg);
|
}
|
||||||
|
|
||||||
|
main_tests.addPackage(freetype.pkg);
|
||||||
|
freetype.link(b, main_tests, .{});
|
||||||
|
|
||||||
main_tests.install();
|
main_tests.install();
|
||||||
|
|
||||||
return main_tests.run();
|
return main_tests.run();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue