Skip to content

Commit 6285bcd

Browse files
authored
Upgrade to zig 0.14.0 (#10)
1 parent dd79db5 commit 6285bcd

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.zigversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024.11.0-mach
1+
0.14.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Zig binding is licensed by [WTFPL](LICENSE)
3737

3838
## Zig version
3939

40-
Minimal is `0.14.0-dev.2577+271452d22` a.k.a `2024.11.0-mach`. But you know try your version and believe.
40+
Minimal is `0.14.0`. But you know try your version and believe.
4141

4242
## Bgfx version
4343

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub fn build(b: *std.Build) !void {
132132

133133
bgfx.addIncludePath(b.path("includes"));
134134

135-
if (target.result.isDarwin()) {
135+
if (target.result.isDarwinLibC()) {
136136
bgfx.linkSystemLibrary("objc");
137137

138138
bgfx.linkFramework("Cocoa");
@@ -459,7 +459,7 @@ pub fn build(b: *std.Build) !void {
459459
.flags = &glslang_cxx_options,
460460
});
461461
}
462-
if (target.result.os.tag == .linux or target.result.isDarwin()) {
462+
if (target.result.os.tag == .linux or target.result.isDarwinLibC()) {
463463
glslang_lib.addCSourceFile(.{
464464
.file = b.path(glslang_path ++ "glslang/OSDependent/Unix/ossource.cpp"),
465465
.flags = &glslang_cxx_options,

build.zig.zon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "zbgfx",
2+
.name = .zbgfx,
3+
.fingerprint = 0xc48ed871c4086e4a,
34
.version = "0.2.0",
45
.paths = .{
56
"includes",

examples/build.zig.zon

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.{
2-
.name = "zbgfx-minimal",
2+
.name = .examples,
3+
.fingerprint = 0x7bd0ad45636a9f2b,
34
.version = "0.1.0",
45
.paths = .{
56
"build.zig",
@@ -10,13 +11,13 @@
1011
.zbgfx = .{ .path = "../" },
1112

1213
.zglfw = .{
13-
.url = "https://github.com/zig-gamedev/zglfw/archive/1c8f7de20bb01076c94582e22d9393a8d6bf30fe.tar.gz",
14-
.hash = "1220aac39fd472cb7a70b1987249f3ac73799e702ff27516d799e1d5e566097f0a8b",
14+
.url = "https://github.com/zig-gamedev/zglfw/archive/4d04fdac888c0f6c1c858ba343d33b19aa499cef.tar.gz",
15+
.hash = "1220ca0fc58588dbcc38ecfb7dab23f281ba55a8dc76d6efd32afd881e96ffd13605",
1516
},
1617

1718
.zgui = .{
18-
.url = "https://github.com/zig-gamedev/zgui/archive/c16629e67e7bc1bca9a5c67d5123874c75f5374d.tar.gz",
19-
.hash = "12202063c813c1b95affa57d83a6a4817d9a4114bd9db052f87740f81b1843ceca09",
19+
.url = "https://github.com/zig-gamedev/zgui/archive/5f0e01e8cd7f423a27ad56a712e9770a81d5d272.tar.gz",
20+
.hash = "12209ee39f11d6100f84b848858b4048f208f70e06091ccf603879caf0e86fbd058a",
2021
},
2122

2223
.zmath = .{

0 commit comments

Comments
 (0)