mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-08-04 16:31:48 +00:00
update to newest build.zig API
This commit is contained in:
parent
ebc9244904
commit
8eb641d2c6
15
build.zig
15
build.zig
|
@ -2,13 +2,18 @@ const std = @import("std");
|
|||
|
||||
pub fn build(b: *std.build.Builder) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const mode = b.standardReleaseOptions();
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const pulseaudio_dep = b.dependency("pulseaudio", .{});
|
||||
const pulseaudio_dep = b.dependency("pulseaudio", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
const lib = b.addStaticLibrary("soundio", null);
|
||||
lib.setTarget(target);
|
||||
lib.setBuildMode(mode);
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "soundio",
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
lib.linkLibC();
|
||||
lib.linkLibrary(pulseaudio_dep.artifact("pulse"));
|
||||
lib.addIncludePath(".");
|
||||
|
|
|
@ -4,5 +4,5 @@ version=2.0.0
|
|||
|
||||
[dependency]
|
||||
name=pulseaudio
|
||||
url=https://github.com/andrewrk/pulseaudio/archive/38fd4892c42037875641ce933561da83feffeb1d.tar.gz
|
||||
hash=adb3e1603a23e59827375d58e5fe1b982b83b13341a8973341c52b8510e0d680
|
||||
url=https://github.com/andrewrk/pulseaudio/archive/3dc7a9ec7b813e83ba67cbb85470b621449586f2.tar.gz
|
||||
hash=a1f84ebf97c909ebca144aa93fe175acf980822e1785cf95655b5c770b873112
|
||||
|
|
Loading…
Reference in a new issue