mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
Update build.zig for Zig 0.14.0
This commit is contained in:
parent
07c592ee18
commit
236d995ce5
4 changed files with 7 additions and 6 deletions
|
@ -19,7 +19,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
break :blk false;
|
break :blk false;
|
||||||
};
|
};
|
||||||
|
|
||||||
const facilio = b.dependency("facil.io", .{
|
const facil_io = b.dependency("facil_io", .{
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
.use_openssl = use_openssl,
|
.use_openssl = use_openssl,
|
||||||
|
@ -30,7 +30,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
zap_module.linkLibrary(facilio.artifact("facil.io"));
|
zap_module.linkLibrary(facil_io.artifact("facil.io"));
|
||||||
|
|
||||||
const all_step = b.step("all", "build all examples");
|
const all_step = b.step("all", "build all examples");
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
.name = .zap,
|
.name = .zap,
|
||||||
.version = "0.9.1",
|
.version = "0.9.1",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.@"facil.io" = .{
|
.facil_io = .{
|
||||||
.path = "./facil.io",
|
.path = "./facil.io",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@ pub fn build(b: *std.Build) !void {
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
const use_openssl = b.option(bool, "use_openssl", "Use OpenSSL") orelse false;
|
const use_openssl = b.option(bool, "use_openssl", "Use OpenSSL") orelse false;
|
||||||
|
|
||||||
const upstream = b.dependency("facil.io", .{ .target = target, .optimize = optimize });
|
const upstream = b.dependency("upstream", .{ .target = target, .optimize = optimize });
|
||||||
|
|
||||||
const lib = try build_facilio(b, upstream, target, optimize, use_openssl);
|
const lib = try build_facilio(b, upstream, target, optimize, use_openssl);
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
.{
|
.{
|
||||||
.name = "facil.io",
|
.name = .facil_io,
|
||||||
.version = "0.0.12",
|
.version = "0.0.12",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.@"facil.io" = .{
|
.upstream = .{
|
||||||
.url = "git+https://github.com/boazsegev/facil.io#512a354dbd31e1895647df852d1565f9d408ed91",
|
.url = "git+https://github.com/boazsegev/facil.io#512a354dbd31e1895647df852d1565f9d408ed91",
|
||||||
.hash = "12203c234c0e07604235162ef65bcffa6396f1b77da66810f31e08573a777e97f63d",
|
.hash = "12203c234c0e07604235162ef65bcffa6396f1b77da66810f31e08573a777e97f63d",
|
||||||
},
|
},
|
||||||
|
@ -12,4 +12,5 @@
|
||||||
"build.zig.zon",
|
"build.zig.zon",
|
||||||
"src",
|
"src",
|
||||||
},
|
},
|
||||||
|
.fingerprint = 0x3b07d4dd92035426,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue