File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -14,23 +14,14 @@ pub fn build(b: *std.Build) void {
14
14
module .addIncludePath (b .path ("BearSSL/inc" ));
15
15
module .addIncludePath (b .path ("BearSSL/tools" ));
16
16
17
- const exe = b .addExecutable (.{
17
+ const lib = b .addStaticLibrary (.{
18
18
.name = "zig-bearssl" ,
19
- .root_source_file = b .path ("src/main .zig" ),
19
+ .root_source_file = b .path ("src/lib .zig" ),
20
20
.target = target ,
21
21
.optimize = optimize ,
22
22
});
23
23
24
- bearssl .linkBearSSL ("." , exe , target , b );
25
-
26
- b .installArtifact (exe );
27
-
28
- const run_cmd = b .addRunArtifact (exe );
29
- run_cmd .step .dependOn (b .getInstallStep ());
30
- if (b .args ) | args | {
31
- run_cmd .addArgs (args );
32
- }
24
+ bearssl .linkBearSSL ("." , lib , target , b );
33
25
34
- const run_step = b .step ("run" , "Run the app" );
35
- run_step .dependOn (& run_cmd .step );
26
+ b .installArtifact (lib );
36
27
}
You can’t perform that action at this time.
0 commit comments