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
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m16s
This commit is contained in:
parent
5b4bf37424
commit
804c797394
|
@ -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
|
// Add steps
|
||||||
try @import("lambda_build.zig").configureBuild(b, cs, function_name);
|
try @import("lambda_build.zig").configureBuild(b, cs, function_name);
|
||||||
try @import("cloudflare_build.zig").configureBuild(b, cs, function_name);
|
try @import("cloudflare_build.zig").configureBuild(b, cs, function_name);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user