From 5d13b48da6253e5d372c81c9b360f7d43f254643 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 14 Sep 2023 15:11:03 -0700 Subject: [PATCH] adjust modules --- build.zig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 4a99a79..15f6936 100644 --- a/build.zig +++ b/build.zig @@ -45,13 +45,21 @@ pub fn build(b: *Builder) !void { const smithy_module = smithy_dep.module("smithy"); exe.addModule("smithy", smithy_module); // not sure this should be here... - const module = b.addModule("aws", .{ + // Expose module to others + _ = b.addModule("aws", .{ .source_file = .{ .path = "src/aws.zig" }, .dependencies = &[_]std.build.ModuleDependency{ .{ .name = "smithy", .module = smithy_module }, }, }); - exe.addModule("aws", module); + + // Expose module to others + _ = b.addModule("aws-signing", .{ + .source_file = .{ .path = "src/aws_signing.zig" }, + .dependencies = &[_]std.build.ModuleDependency{ + .{ .name = "smithy", .module = smithy_module }, + }, + }); // TODO: This does not work correctly due to https://github.com/ziglang/zig/issues/16354 // // We are working here with kind of a weird dependency though. So we can do this