File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,18 @@ pub fn build(b: *Build) void {
1313 .optimize = optimize ,
1414 .link_libc = true ,
1515 });
16- mbedtls .addIncludePath (mbedtls_dep .path ("include" ));
17- inline for (srcs ) | src |
18- mbedtls .addCSourceFile (.{
19- .file = mbedtls_dep .path (b .fmt ("library/{s}" , .{src })),
20- .flags = &.{},
21- });
16+ mbedtls .root_module .addIncludePath (mbedtls_dep .path ("include" ));
17+ mbedtls .root_module .addCSourceFiles (.{
18+ .root = mbedtls_dep .path ("library" ),
19+ .files = srcs ,
20+ });
2221
2322 mbedtls .installHeadersDirectory (mbedtls_dep .path ("include/mbedtls" ), "mbedtls" , .{});
2423 mbedtls .installHeadersDirectory (mbedtls_dep .path ("include/psa" ), "psa" , .{});
2524 b .installArtifact (mbedtls );
2625
2726 if (target .result .os .tag == .windows ) {
28- mbedtls .linkSystemLibrary ("bcrypt" );
27+ mbedtls .root_module . linkSystemLibrary ("bcrypt" , .{} );
2928 }
3029
3130 const selftest = b .addExecutable (.{
@@ -154,4 +153,5 @@ const srcs: []const []const u8 = &.{
154153 "cipher.c" ,
155154 "ecdsa.c" ,
156155 "nist_kw.c" ,
156+ "pk_ecc.c" ,
157157};
You can’t perform that action at this time.
0 commit comments