Merge pull request #1447 from mitchellh/lazy-mach

make mach_glfw a lazy dependency
This commit is contained in:
Mitchell Hashimoto
2024-02-05 19:28:10 -08:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@ -925,10 +925,6 @@ fn addDeps(
.target = target,
.optimize = optimize,
});
const mach_glfw_dep = b.dependency("mach_glfw", .{
.target = target,
.optimize = optimize,
});
const libpng_dep = b.dependency("libpng", .{
.target = target,
.optimize = optimize,
@ -1096,7 +1092,11 @@ fn addDeps(
switch (config.app_runtime) {
.none => {},
.glfw => {
.glfw => glfw: {
const mach_glfw_dep = b.lazyDependency("mach_glfw", .{
.target = target,
.optimize = optimize,
}) orelse break :glfw;
step.root_module.addImport("glfw", mach_glfw_dep.module("mach-glfw"));
},

View File

@ -11,6 +11,7 @@
.mach_glfw = .{
.url = "https://github.com/der-teufel-programming/mach-glfw/archive/250affff8c52d1eaa0fab2ef1118f691bf1225ec.tar.gz",
.hash = "122029f65edf3965d86f7d0741fe141bcc1d68b1f013fa7280bbfda4e87c6affc15f",
.lazy = true,
},
.zig_objc = .{
.url = "https://github.com/mitchellh/zig-objc/archive/f6ed382b6db296626a9b56dadcf9d7e4fcba71d3.tar.gz",

View File

@ -1,3 +1,3 @@
# This file is auto-generated! check build-support/check-zig-cache-hash.sh for
# more details.
"sha256-3qABxwGWy8emiSUtDBF2Dj4YdmdR2L4RNpfnQJie3CI="
"sha256-YXSgZynCPCwahbV4cQx05IrtzOaUxG75715dc+j+8/c="