all: use std.Build.installArtifact
This commit is contained in:
parent
beef56a023
commit
ff0258f27d
16 changed files with 53 additions and 53 deletions
|
|
@ -25,7 +25,7 @@ pub fn build(b: *std.Build) void {
|
|||
});
|
||||
example_exe.addModule("sysaudio", sysaudio.module(b));
|
||||
sysaudio.link(b, example_exe, .{});
|
||||
example_exe.install();
|
||||
b.installArtifact(example_exe);
|
||||
|
||||
const example_compile_step = b.step("example-" ++ example, "Compile '" ++ example ++ "' example");
|
||||
example_compile_step.dependOn(b.getInstallStep());
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ pub fn Sdk(comptime deps: anytype) type {
|
|||
.optimize = optimize,
|
||||
});
|
||||
link(b, main_tests, .{});
|
||||
main_tests.install();
|
||||
return main_tests.run();
|
||||
b.installArtifact(main_tests);
|
||||
return b.addRunArtifact(main_tests);
|
||||
}
|
||||
|
||||
pub fn link(b: *std.Build, step: *std.build.CompileStep, options: Options) void {
|
||||
|
|
@ -48,7 +48,7 @@ pub fn Sdk(comptime deps: anytype) type {
|
|||
}
|
||||
}
|
||||
if (options.install_libs) {
|
||||
step.install();
|
||||
b.installArtifact(step);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue