File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,14 @@ pub fn build(b: *std.Build) void {
5
5
const target = b .standardTargetOptions (.{});
6
6
const optimize = b .standardOptimizeOption (.{});
7
7
8
- const cpputest = b .addStaticLibrary (.{
8
+ const cpputest = b .addLibrary (.{
9
9
.name = "CppUTest" ,
10
- .target = target ,
11
- .optimize = optimize ,
12
- .link_libc = true ,
10
+ .linkage = .static ,
11
+ .root_module = b .createModule (.{
12
+ .target = target ,
13
+ .optimize = optimize ,
14
+ .link_libc = true ,
15
+ }),
13
16
});
14
17
15
18
cpputest .addCSourceFiles (.{
@@ -21,11 +24,14 @@ pub fn build(b: *std.Build) void {
21
24
cpputest .addIncludePath (cpputest_dep .path ("include" ));
22
25
cpputest .linkLibCpp ();
23
26
24
- const cpputest_ext = b .addStaticLibrary (.{
27
+ const cpputest_ext = b .addLibrary (.{
25
28
.name = "CppUTestExt" ,
26
- .target = target ,
27
- .optimize = optimize ,
28
- .link_libc = true ,
29
+ .linkage = .static ,
30
+ .root_module = b .createModule (.{
31
+ .target = target ,
32
+ .optimize = optimize ,
33
+ .link_libc = true ,
34
+ }),
29
35
});
30
36
31
37
cpputest_ext .addCSourceFiles (.{
Original file line number Diff line number Diff line change 1
1
.{
2
- .name = " cpputest" ,
2
+ .name = . cpputest ,
3
3
.version = "4.0.0" ,
4
+ .fingerprint = 0x14056b74d90fd358 ,
5
+ .minimum_zig_version = "0.15.0" ,
4
6
.dependencies = .{
5
7
.cpputest = .{
6
8
.url = "https://github.com/cpputest/cpputest/archive/refs/tags/v4.0.tar.gz" ,
You can’t perform that action at this time.
0 commit comments