File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,13 @@ pub fn build(b: *std.Build) void {
8
8
.root_source_file = b .path ("src/znoise.zig" ),
9
9
});
10
10
11
- const fnl = b .addStaticLibrary (.{
11
+ const fnl = b .addLibrary (.{
12
12
.name = "FastNoiseLite" ,
13
- .target = target ,
14
- .optimize = optimize ,
13
+ .linkage = .static ,
14
+ .root_module = b .createModule (.{
15
+ .target = target ,
16
+ .optimize = optimize ,
17
+ }),
15
18
});
16
19
fnl .linkLibC ();
17
20
fnl .addIncludePath (b .path ("libs/FastNoiseLite" ));
@@ -25,9 +28,11 @@ pub fn build(b: *std.Build) void {
25
28
26
29
const tests = b .addTest (.{
27
30
.name = "znoise-tests" ,
28
- .root_source_file = b .path ("src/znoise.zig" ),
29
- .target = target ,
30
- .optimize = optimize ,
31
+ .root_module = b .createModule (.{
32
+ .root_source_file = b .path ("src/znoise.zig" ),
33
+ .target = target ,
34
+ .optimize = optimize ,
35
+ }),
31
36
});
32
37
tests .linkLibrary (fnl );
33
38
b .installArtifact (tests );
Original file line number Diff line number Diff line change 2
2
.name = .znoise ,
3
3
.fingerprint = 0x20f0ee30a768ad80 ,
4
4
.version = "0.3.0-dev" ,
5
+ .minimum_zig_version = "0.14.0" ,
5
6
.paths = .{
6
7
"build.zig" ,
7
8
"build.zig.zon" ,
You can’t perform that action at this time.
0 commit comments