audio: add options parameter to link()
This commit is contained in:
parent
f406f42005
commit
d3b7df882e
1 changed files with 5 additions and 2 deletions
|
|
@ -8,19 +8,22 @@ pub const pkg = std.build.Pkg{
|
||||||
.source = .{ .path = thisDir() ++ "/main.zig" },
|
.source = .{ .path = thisDir() ++ "/main.zig" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const Options = struct {};
|
||||||
|
|
||||||
pub fn build(b: *Builder) void {
|
pub fn build(b: *Builder) void {
|
||||||
const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
|
|
||||||
const soundio_tests = b.addTest("soundio/main.zig");
|
const soundio_tests = b.addTest("soundio/main.zig");
|
||||||
soundio_tests.setBuildMode(mode);
|
soundio_tests.setBuildMode(mode);
|
||||||
soundio_tests.addPackage(pkg);
|
soundio_tests.addPackage(pkg);
|
||||||
link(b, soundio_tests);
|
link(b, soundio_tests, .{});
|
||||||
|
|
||||||
const test_step = b.step("test", "Run library tests");
|
const test_step = b.step("test", "Run library tests");
|
||||||
test_step.dependOn(&soundio_tests.step);
|
test_step.dependOn(&soundio_tests.step);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn link(b: *Builder, step: *std.build.LibExeObjStep) void {
|
pub fn link(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
||||||
|
_ = options;
|
||||||
const soundio_lib = buildSoundIo(b, step);
|
const soundio_lib = buildSoundIo(b, step);
|
||||||
step.linkLibrary(soundio_lib);
|
step.linkLibrary(soundio_lib);
|
||||||
step.addIncludePath(soundio_path);
|
step.addIncludePath(soundio_path);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue