Skip to content

Commit 193acda

Browse files
authored
feat(build): add enable_webui_log option and update webui dependency (#99)
* feat(build): add enable_webui_log option and update webui dependency - introduce enable_webui_log build option - pass enable-webui-log to build configuration - update webui dependency hash and URL in build.zig.zon * chore(deps): update webui dependency url - change webui archive URL to new commit hash
1 parent a58faf0 commit 193acda

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub fn build(b: *Build) !void {
3232
// Parse command-line options or use defaults
3333
const isStatic = b.option(bool, "is_static", "whether lib is static") orelse default_isStatic;
3434
const enableTLS = b.option(bool, "enable_tls", "whether lib enable tls") orelse default_enableTLS;
35+
const enableWebUILog = b.option(bool, "enable_webui_log", "whether lib enable tls") orelse default_enableTLS;
3536

3637
// Standard build options for target and optimization
3738
const target = b.standardTargetOptions(.{});
@@ -61,6 +62,7 @@ pub fn build(b: *Build) !void {
6162
.optimize = optimize,
6263
.dynamic = !isStatic,
6364
.@"enable-tls" = enableTLS,
65+
.@"enable-webui-log" = enableWebUILog,
6466
.verbose = .err,
6567
});
6668

@@ -183,4 +185,3 @@ fn build_examples(b: *Build, optimize: OptimizeMode, target: Build.ResolvedTarge
183185
exe_run_step.dependOn(&exe_run.step);
184186
}
185187
}
186-

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
.minimum_zig_version = "0.14.0",
66
.dependencies = .{
77
.webui = .{
8-
.hash = "webui-2.5.0-beta.4-pxqD5esSNwCHzwq6ndnW-ShzC_nPNAzGu13l4Unk0rFl",
9-
.url = "https://github.com/webui-dev/webui/archive/699119f42fc64ae42c9121bc4749b740f71949af.tar.gz",
8+
.hash = "webui-2.5.0-beta.4-pxqD5QAmNwAUkhlNaFFeFo6OKYi2XRnQZWTtBLS3T0_a",
9+
.url = "https://github.com/webui-dev/webui/archive/8435c62fa8b780642dd6d2fe7bfed6de0637d72f.tar.gz",
1010
},
1111
},
1212
.paths = .{

0 commit comments

Comments
 (0)