netsurf: add wrapper

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
Francis Bouvier
2023-09-20 22:48:44 +02:00
parent bb87055900
commit f06d1396f7
3 changed files with 91 additions and 0 deletions

View File

@@ -115,4 +115,10 @@ fn linkNetSurf(step: *std.build.LibExeObjStep) void {
step.addObjectFile(.{ .path = ns ++ "/lib/" ++ lib ++ ".a" });
}
step.addIncludePath(.{ .path = ns ++ "/include" });
// wrapper
const flags = [_][]const u8{};
const files: [1][]const u8 = .{ns ++ "wrapper/wrapper.c"};
step.addCSourceFiles(&files, &flags);
step.addIncludePath(.{ .path = ns ++ "wrapper" });
}