sysaudio: link missing library for Windows (#493)
This commit is contained in:
parent
5d565f1f74
commit
d9bd4d7d79
1 changed files with 1 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ fn buildSoundIo(b: *Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget
|
||||||
config_file.writeAll("#define SOUNDIO_HAVE_ALSA\n") catch unreachable;
|
config_file.writeAll("#define SOUNDIO_HAVE_ALSA\n") catch unreachable;
|
||||||
} else if (target_info.os.tag == .windows) {
|
} else if (target_info.os.tag == .windows) {
|
||||||
lib.addCSourceFile(soundio_path ++ "/src/wasapi.c", &.{});
|
lib.addCSourceFile(soundio_path ++ "/src/wasapi.c", &.{});
|
||||||
|
lib.linkSystemLibrary("ole32");
|
||||||
config_file.writeAll("#define SOUNDIO_HAVE_WASAPI\n") catch unreachable;
|
config_file.writeAll("#define SOUNDIO_HAVE_WASAPI\n") catch unreachable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue