add a universal_lambda_helpers module to compilation unit
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m16s

This commit is contained in:
Emil Lerch 2023-10-21 13:20:49 -07:00
parent 5b4bf37424
commit 804c797394
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -62,6 +62,24 @@ pub fn configureBuild(b: *std.Build, cs: *std.Build.Step.Compile) !void {
},
});
cs.addAnonymousModule("universal_lambda_helpers", .{
// Source file can be anywhere on disk, does not need to be a subdirectory
.source_file = .{ .path = b.pathJoin(&[_][]const u8{ file_location, "helpers.zig" }) },
// We alsso need the interface module available here
.dependencies = &[_]std.Build.ModuleDependency{
// Add options module so we can let our universal_lambda know what
// type of interface is necessary
.{
.name = "build_options",
.module = options_module,
},
.{
.name = "flexilib-interface",
.module = flexilib_module,
},
},
});
// Add steps
try @import("lambda_build.zig").configureBuild(b, cs, function_name);
try @import("cloudflare_build.zig").configureBuild(b, cs, function_name);