diff --git a/.gitignore b/.gitignore index 0336487c0..bdd53e133 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,4 @@ tests/windows # Zig stuff zig-* +.zig-cache \ No newline at end of file diff --git a/build.zig b/build.zig index b66ebffda..6e3e449bf 100644 --- a/build.zig +++ b/build.zig @@ -22,13 +22,13 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }, }); - lib.addIncludePath(.{ .path = "include" }); + lib.addIncludePath(b.path("include")); lib.linkLibC(); addPaths(&lib.root_module); if (shared) lib.defineCMacro("_GLFW_BUILD_DLL", "1"); - lib.installHeadersDirectory("include/GLFW", "GLFW"); + lib.installHeadersDirectory(b.path("include/GLFW"), "GLFW", .{}); // GLFW headers depend on these headers, so they must be distributed too. if (b.lazyDependency("vulkan_headers", .{ .target = target, diff --git a/build.zig.zon b/build.zig.zon index 72f59e2db..a1a7e7aad 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -14,22 +14,22 @@ }, .dependencies = .{ .xcode_frameworks = .{ - .url = "https://pkg.machengine.org/xcode-frameworks/2fca968efa90a4060803c56dd0f027890353f0a9.tar.gz", - .hash = "122010c1a745ea06dee3012fbd3b311bd3d75ec39ded6bf566b36ebe3cd8da482347", + .url = "https://pkg.machengine.org/xcode-frameworks/122b43323db27b2082a2d44ed2121de21c9ccf75.tar.gz", + .hash = "12205d131983601cdb3500f38e9d8adaed5574fb0211b8b39291d2e9b90c6555ce59", }, .vulkan_headers = .{ - .url = "https://pkg.machengine.org/vulkan-headers/e33f2e482893a90bb36d67649ab30d5236ac21ab.tar.gz", - .hash = "122017098e4ca00dac1a9d30d152a6e6e9522843219c6df4489210fb7c8a6e4c7c1a", + .url = "https://pkg.machengine.org/vulkan-headers/ae4bb705e6cad613825d9e7d8ffc29ca595f54cb.tar.gz", + .hash = "122058b98f7d2ac86597363d0c0515c30aea392c605d5976c600196bd2c5b08b95d6", .lazy = true, }, .wayland_headers = .{ - .url = "https://pkg.machengine.org/wayland-headers/4926b8c635aa2f215b0d5382060fc4091aa7b705.tar.gz", - .hash = "12207decf58bee217ae9c5340a6852a62e7f5af9901bef9b1468d93e480798898285", + .url = "https://pkg.machengine.org/wayland-headers/ed5542501a548ac23841c8f22cec0af89f46325a.tar.gz", + .hash = "1220f350a0782d20a6618ea4e2884f7d0205a4e9b02c2d65fe3bf7b8113e7860fadf", .lazy = true, }, .x11_headers = .{ - .url = "https://pkg.machengine.org/x11-headers/ad1c4891f70302c61ba956cfd565758dc1ca9d28.tar.gz", - .hash = "1220ce35d8f1556afd5bf4796a7899d459f9c628b989f247eaf6aa00fbad10a88c9f", + .url = "https://pkg.machengine.org/x11-headers/22bb51a939722a819bf52aba100ac6c25acfbaff.tar.gz", + .hash = "1220ddf168c855cf69b4f8c5284403106a3c681913e34453df10cc5a588d9bd1d005", .lazy = true, }, },