Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .zigversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.11.0-mach
0.14.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Zig binding is licensed by [WTFPL](LICENSE)

## Zig version

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

## Bgfx version

Expand Down
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub fn build(b: *std.Build) !void {

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

if (target.result.isDarwin()) {
if (target.result.isDarwinLibC()) {
bgfx.linkSystemLibrary("objc");

bgfx.linkFramework("Cocoa");
Expand Down Expand Up @@ -459,7 +459,7 @@ pub fn build(b: *std.Build) !void {
.flags = &glslang_cxx_options,
});
}
if (target.result.os.tag == .linux or target.result.isDarwin()) {
if (target.result.os.tag == .linux or target.result.isDarwinLibC()) {
glslang_lib.addCSourceFile(.{
.file = b.path(glslang_path ++ "glslang/OSDependent/Unix/ossource.cpp"),
.flags = &glslang_cxx_options,
Expand Down
3 changes: 2 additions & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.{
.name = "zbgfx",
.name = .zbgfx,
.fingerprint = 0xc48ed871c4086e4a,
.version = "0.2.0",
.paths = .{
"includes",
Expand Down
11 changes: 6 additions & 5 deletions examples/build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.{
.name = "zbgfx-minimal",
.name = .examples,
.fingerprint = 0x7bd0ad45636a9f2b,
.version = "0.1.0",
.paths = .{
"build.zig",
Expand All @@ -10,13 +11,13 @@
.zbgfx = .{ .path = "../" },

.zglfw = .{
.url = "https://github.com/zig-gamedev/zglfw/archive/1c8f7de20bb01076c94582e22d9393a8d6bf30fe.tar.gz",
.hash = "1220aac39fd472cb7a70b1987249f3ac73799e702ff27516d799e1d5e566097f0a8b",
.url = "https://github.com/zig-gamedev/zglfw/archive/4d04fdac888c0f6c1c858ba343d33b19aa499cef.tar.gz",
.hash = "1220ca0fc58588dbcc38ecfb7dab23f281ba55a8dc76d6efd32afd881e96ffd13605",
},

.zgui = .{
.url = "https://github.com/zig-gamedev/zgui/archive/c16629e67e7bc1bca9a5c67d5123874c75f5374d.tar.gz",
.hash = "12202063c813c1b95affa57d83a6a4817d9a4114bd9db052f87740f81b1843ceca09",
.url = "https://github.com/zig-gamedev/zgui/archive/5f0e01e8cd7f423a27ad56a712e9770a81d5d272.tar.gz",
.hash = "12209ee39f11d6100f84b848858b4048f208f70e06091ccf603879caf0e86fbd058a",
},

.zmath = .{
Expand Down