From 5edd7ab733bb1ae76d2c70e454ce12ff451c2dfb Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 18 Sep 2023 14:52:42 -0700 Subject: [PATCH] add flexilib implementation --- src/universal_lambda_build.zig | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/universal_lambda_build.zig b/src/universal_lambda_build.zig index 43fbc07..7198867 100644 --- a/src/universal_lambda_build.zig +++ b/src/universal_lambda_build.zig @@ -13,14 +13,8 @@ pub const BuildType = enum { }; pub fn configureBuild(b: *std.Build, exe: *std.Build.Step.Compile) !void { - // Add steps - try @import("lambdabuild.zig").configureBuild(b, exe); - try @import("standalone_server_build.zig").configureBuild(b, exe); - // Add options module so we can let our universal_lambda know what - // type of interface is necessary - - // Add module const file_location = try findFileLocation(b); + // Add module exe.addAnonymousModule("universal_lambda_handler", .{ // Source file can be anywhere on disk, does not need to be a subdirectory .source_file = .{ .path = b.pathJoin(&[_][]const u8{ file_location, "universal_lambda.zig" }) }, @@ -29,6 +23,15 @@ pub fn configureBuild(b: *std.Build, exe: *std.Build.Step.Compile) !void { .module = try createOptionsModule(b, exe), }}, }); + + // Add steps + try @import("lambdabuild.zig").configureBuild(b, exe); + try @import("standalone_server_build.zig").configureBuild(b, exe); + try @import("flexilib_build.zig").configureBuild(b, exe, file_location); + + // Add options module so we can let our universal_lambda know what + // type of interface is necessary + } /// This function relies on internal implementation of the build runner