From 8d312cd987abd076b40bda6b5c92068aa21985a0 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 2 Jun 2020 22:24:43 -0300 Subject: [PATCH] use lv2.h provided at root of /usr/include fixes ubuntu issues --- .gitignore | 1 + build.zig | 1 + src/lv2_helpers.zig | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b43912f..44f7213 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ zig-cache/ *.mp3 *.wav +build_runner.zig diff --git a/build.zig b/build.zig index 8b3484b..6858c80 100644 --- a/build.zig +++ b/build.zig @@ -19,6 +19,7 @@ fn setupLinks(step: *builds.LibExeObjStep) void { "/usr/include/lilv-0/lilv", "/usr/include/lilv-0", }; + var found_any_lilv = false; for (possible_lilv_include_dirs) |possible_lilv_dir| { diff --git a/src/lv2_helpers.zig b/src/lv2_helpers.zig index abc9c8f..a72e07d 100644 --- a/src/lv2_helpers.zig +++ b/src/lv2_helpers.zig @@ -4,7 +4,7 @@ const plugin = @import("plugin.zig"); pub const c = @cImport({ @cInclude("sndfile.h"); @cInclude("lilv/lilv.h"); - @cInclude("lv2/core/lv2.h"); + @cInclude("lv2.h"); }); pub fn Lv2Core(comptime ns: []const u8) []const u8 {