glfw: add macOS 13 SDK support

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-02 09:50:48 -07:00
parent 0e3ba99317
commit 100617d449
4 changed files with 26 additions and 3 deletions

View file

@ -1,3 +1,6 @@
// MacOS: this must be defined for system-sdk-13.3 and older.
#define __kernel_ptr_semantics
// General sources // General sources
#include "monitor.c" #include "monitor.c"
#include "init.c" #include "init.c"

View file

@ -1,3 +1,6 @@
// MacOS: this must be defined for system-sdk-13.3 and older.
#define __kernel_ptr_semantics
// MacOS-specific sources // MacOS-specific sources
#include "cocoa_time.c" #include "cocoa_time.c"
#include "posix_thread.c" #include "posix_thread.c"

View file

@ -1,3 +1,6 @@
// MacOS: this must be defined for system-sdk-13.3 and older.
#define __kernel_ptr_semantics
// MacOS-specific sources // MacOS-specific sources
#include "cocoa_joystick.m" #include "cocoa_joystick.m"
#include "cocoa_init.m" #include "cocoa_init.m"

View file

@ -8,8 +8,9 @@
//! * Windows: https://github.com/hexops/sdk-windows-x86_64 (~7MB, updated DirectX headers for Zig/MinGW) //! * Windows: https://github.com/hexops/sdk-windows-x86_64 (~7MB, updated DirectX headers for Zig/MinGW)
//! * Linux: https://github.com/hexops/sdk-linux-x86_64 (~40MB, X11, Wayland, etc. development libraries) //! * Linux: https://github.com/hexops/sdk-linux-x86_64 (~40MB, X11, Wayland, etc. development libraries)
//! * MacOS (most frameworks you'd find in the XCode SDK): //! * MacOS (most frameworks you'd find in the XCode SDK):
//! * https://github.com/hexops/sdk-macos-11.3 (~160MB, default) //! * https://github.com/hexops/sdk-macos-11.3 (~160MB)
//! * https://github.com/hexops/sdk-macos-12.0 (~112MB, only if you specify a macOS 12 target triple.) //! * https://github.com/hexops/sdk-macos-12.0 (~112MB)
//! * https://github.com/hexops/sdk-macos-13.3 (~160MB)
//! //!
//! You may supply your own SDKs via the Options struct if needed, although the Mach versions above //! You may supply your own SDKs via the Options struct if needed, although the Mach versions above
//! will generally work for most OpenGL/Vulkan applications. //! will generally work for most OpenGL/Vulkan applications.
@ -43,6 +44,19 @@ pub const Options = struct {
}; };
sdk_list: []const Sdk = &.{ sdk_list: []const Sdk = &.{
.{
.name = "sdk-macos-13.3",
.git_addr = "https://github.com/hexops/sdk-macos-13.3",
.git_revision = "1615cd09b3a42ae590e05e63251a0e9fbc47bab5",
.cpu_arch = &.{ .aarch64, .x86_64 },
.os_tag = .macos,
.os_version = .{
.semver = .{
.min = .{ .major = 13, .minor = 0 },
.max = .{ .major = 14, .minor = std.math.maxInt(u32) },
},
},
},
.{ .{
.name = "sdk-macos-12.0", .name = "sdk-macos-12.0",
.git_addr = "https://github.com/hexops/sdk-macos-12.0", .git_addr = "https://github.com/hexops/sdk-macos-12.0",
@ -52,7 +66,7 @@ pub const Options = struct {
.os_version = .{ .os_version = .{
.semver = .{ .semver = .{
.min = .{ .major = 12, .minor = 0 }, .min = .{ .major = 12, .minor = 0 },
.max = .{ .major = 13, .minor = std.math.maxInt(u32) }, .max = .{ .major = 12, .minor = std.math.maxInt(u32) },
}, },
}, },
}, },