create library for the interface

This commit is contained in:
Emil Lerch 2023-05-30 12:44:20 -07:00
parent 02017da98e
commit 22a7537933
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -36,6 +36,16 @@ pub fn build(b: *std.Build) void {
}); });
lib.linkLibC(); lib.linkLibC();
const interface_lib = b.addStaticLibrary(.{
.name = "libfaasproxy",
// In this case the main source file is merely a path, however, in more
// complicated build scripts, this could be a generated file.
.root_source_file = .{ .path = "src/interface.zig" },
.target = target,
.optimize = optimize,
});
b.installArtifact(interface_lib);
// This declares intent for the executable to be installed into the // This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default // standard location when the user invokes the "install" step (the default
// step when running `zig build`). // step when running `zig build`).