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 {
1616
1717 const tests = b .addTest (.{
1818 .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+ }),
2224 });
2325 b .installArtifact (tests );
2426
2527 test_step .dependOn (& b .addRunArtifact (tests ).step );
2628 }
2729
28- const lib = b .addStaticLibrary (.{
30+ const lib = b .addLibrary (.{
2931 .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+ }),
3338 });
3439 _ = b .installArtifact (lib );
3540}
You can’t perform that action at this time.
0 commit comments