Skip to content

Commit

Permalink
fix unused pipewire issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jethrodaniel committed Sep 4, 2024
1 parent e435b91 commit fe0df3a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,6 @@ pub fn build(b: *std.Build) !void {
.flags = &.{},
});

// TODO: fix -Wno-incompatible-pointer-types issue with SDL_PIPEWIRE_SHARED=OFF
lib.addCSourceFiles(.{
.root = sdl_dep.path(""),
.files = &.{"src/audio/pipewire/SDL_pipewire.c"},
.flags = &.{"-Wno-incompatible-pointer-types"},
});

inline for (std.meta.fields(@TypeOf(values))) |f| {
const value = b.fmt("{any}", .{@field(values, f.name)});
lib.defineCMacro(f.name, value);
Expand Down Expand Up @@ -457,10 +450,11 @@ pub fn build(b: *std.Build) !void {

//-- SDL_AUDIODRIVER

// https://wiki.archlinux.org/title/PipeWire
//
// SDL_AUDIO_DRIVER=pipewire
// sudo apt install libpipewire-0.3-dev
//
// https://wiki.archlinux.org/title/PipeWire
// sudo apt install libpipewire-0.3-dev
//
// TODO: why isn't `linkSystemLibrary` enough to find the headers?
// See https://github.com/ziglang/zig/issues/18465
Expand Down Expand Up @@ -1066,8 +1060,7 @@ const linux_src_files = [_][]const u8{
// "src/audio/netbsd/SDL_netbsdaudio.c",
// "src/audio/openslES/SDL_openslES.c",

// TODO: fix -Wno-incompatible-pointer-types issue with SDL_PIPEWIRE_SHARED=OFF
// "src/audio/pipewire/SDL_pipewire.c",
"src/audio/pipewire/SDL_pipewire.c",
"src/camera/pipewire/SDL_camera_pipewire.c",

// "src/audio/ps2/SDL_ps2audio.c",
Expand Down

0 comments on commit fe0df3a

Please sign in to comment.