File tree Expand file tree Collapse file tree 3 files changed +1197
-1192
lines changed Expand file tree Collapse file tree 3 files changed +1197
-1192
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,25 @@ pub fn build(b: *std.Build) void {
16
16
17
17
const tests = b .addTest (.{
18
18
.name = "zopengl-tests" ,
19
- .root_source_file = b .path ("src/zopengl.zig" ),
20
- .target = target ,
21
- .optimize = optimize ,
19
+ .root_module = b .createModule (.{
20
+ .root_source_file = b .path ("src/zopengl.zig" ),
21
+ .target = target ,
22
+ .optimize = optimize ,
23
+ }),
22
24
});
23
25
b .installArtifact (tests );
24
26
25
27
test_step .dependOn (& b .addRunArtifact (tests ).step );
26
28
}
27
29
28
- const lib = b .addStaticLibrary (.{
30
+ const lib = b .addLibrary (.{
29
31
.name = "zopengl" ,
30
- .root_source_file = b .path ("src/zopengl.zig" ),
31
- .target = target ,
32
- .optimize = optimize ,
32
+ .linkage = .static ,
33
+ .root_module = b .createModule (.{
34
+ .root_source_file = b .path ("src/zopengl.zig" ),
35
+ .target = target ,
36
+ .optimize = optimize ,
37
+ }),
33
38
});
34
39
_ = b .installArtifact (lib );
35
40
}
You can’t perform that action at this time.
0 commit comments