Skip to content

Commit

Permalink
update to latest zig version
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
  • Loading branch information
emidoots committed Dec 30, 2024
1 parent 5a6f4ff commit 972cd37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ pub fn build(b: *std.Build) void {
});
lib.linkLibC();
lib.addIncludePath(b.path("include"));
lib.defineCMacro("FT2_BUILD_LIBRARY", "1");
lib.root_module.addCMacro("FT2_BUILD_LIBRARY", "1");

if (use_system_zlib) {
lib.defineCMacro("FT_CONFIG_OPTION_SYSTEM_ZLIB", "1");
lib.root_module.addCMacro("FT_CONFIG_OPTION_SYSTEM_ZLIB", "1");
}

if (enable_brotli) {
lib.defineCMacro("FT_CONFIG_OPTION_USE_BROTLI", "1");
lib.root_module.addCMacro("FT_CONFIG_OPTION_USE_BROTLI", "1");
if (b.lazyDependency("brotli", .{
.target = target,
.optimize = optimize,
})) |dep| lib.linkLibrary(dep.artifact("brotli"));
}

lib.defineCMacro("HAVE_UNISTD_H", "1");
lib.root_module.addCMacro("HAVE_UNISTD_H", "1");
lib.addCSourceFiles(.{ .files = &sources, .flags = &.{} });
if (target.result.os.tag == .macos) lib.addCSourceFile(.{
.file = b.path("src/base/ftmac.c"),
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
.dependencies = .{
.brotli = .{
.url = "https://pkg.machengine.org/brotli/31ec33e2629f814c3830d3fdac066b5128adf5f1.tar.gz",
.hash = "1220c4923c2f4e9d6d2285bf897f325ed519bf85c6c4ceadfbd5b01e9f89e401dc7c",
.url = "https://pkg.machengine.org/brotli/10961426f03016e273f4f4653eae907e9e2339b6.tar.gz",
.hash = "122031789a7c6364c2f99164c1183661bb5fe914ad7336cc224039c7fba649f35c47",
.lazy = true,
},
},
Expand Down

0 comments on commit 972cd37

Please sign in to comment.