build: fix path error

This commit is contained in:
Pierre Tachoire
2024-03-29 15:51:53 +01:00
parent 18d14f8c0c
commit ff0b7ed6bf

View File

@@ -157,7 +157,7 @@ fn linkNetSurf(step: *std.build.LibExeObjStep) void {
step.addIncludePath(.{ .path = "vendor/libiconv/include" });
// netsurf libs
const ns = "vendor/netsurf/";
const ns = "vendor/netsurf";
const libs: [4][]const u8 = .{
"libdom",
"libhubbub",
@@ -166,7 +166,7 @@ fn linkNetSurf(step: *std.build.LibExeObjStep) void {
};
inline for (libs) |lib| {
step.addObjectFile(.{ .path = ns ++ "/lib/" ++ lib ++ ".a" });
step.addIncludePath(.{ .path = ns ++ lib ++ "/src" });
step.addIncludePath(.{ .path = ns ++ "/" ++ lib ++ "/src" });
}
step.addIncludePath(.{ .path = ns ++ "/include" });
}