about summary refs log tree commit diff
path: root/build.zig
diff options
context:
space:
mode:
authorIurii Plugatariov <[email protected]>2024-07-05 18:47:38 +0200
committerGitHub <[email protected]>2024-07-05 18:47:38 +0200
commitc7b32cd10370f512bad154d0282f78004ffa4c42 (patch)
tree3a863d28966469be4abbc965d9b2c18ffbbcae16 /build.zig
parent4bbbc55dc8061999048f0c2bdd9d36b412eb2647 (diff)
parent2e6e2c5bc415460a66517dd786091c63189b66dc (diff)
downloadtinkerbunk-c7b32cd10370f512bad154d0282f78004ffa4c42.tar.gz
Merge pull request #2 from makefunstuff/muzak
Muzak
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index def28a5..5a00841 100644
--- a/build.zig
+++ b/build.zig
@@ -26,8 +26,11 @@ pub fn build(b: *std.Build) void {
     // TODO: link for mac later
     exe.linkSystemLibrary("SDL2");
     exe.linkSystemLibrary("mpg123");
-    exe.linkSystemLibrary("alsa");
+    exe.linkSystemLibrary("asound");
     exe.linkLibC();
+    exe.addCSourceFile(.{ .file = b.path("csrc/cbrr.c"), .flags = &.{} });
+    exe.addIncludePath(b.path("./csrc"));
+
     // This declares intent for the executable to be installed into the
     // standard location when the user invokes the "install" step (the default
     // step when running `zig build`).