internal/graphicsdriver/metal: update the minimum version of macOS

Updates #2095
This commit is contained in:
Hajime Hoshi 2022-05-18 00:09:00 +09:00
parent 3d00bb1fa2
commit fef79f4d3e
4 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ import (
// It is because old Xcode (8 or older?) does not accept @available syntax.
// #cgo CFLAGS: -Wno-unguarded-availability-new
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
// #cgo !ios CFLAGS: -mmacosx-version-min=10.14
// #cgo LDFLAGS: -framework QuartzCore -framework Foundation -framework CoreGraphics
//
// #include "ca_darwin.h"

View File

@ -29,7 +29,7 @@ import (
)
// #cgo CFLAGS: -x objective-c
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
// #cgo !ios CFLAGS: -mmacosx-version-min=10.14
// #cgo LDFLAGS: -framework Foundation
//
// #import <Foundation/Foundation.h>

View File

@ -14,7 +14,7 @@
// Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
//
// Package mtl requires macOS version 10.13 or newer.
// Package mtl requires macOS version 10.14 or newer.
//
// This package is in very early stages of development.
// The API will change when opportunities for improvement are discovered; it is not yet frozen.
@ -28,7 +28,7 @@ import (
"unsafe"
)
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
// #cgo !ios CFLAGS: -mmacosx-version-min=10.14
// #cgo LDFLAGS: -framework Metal -framework CoreGraphics -framework Foundation
//
// #include "mtl_darwin.h"

View File

@ -25,7 +25,7 @@ import (
"github.com/hajimehoshi/ebiten/v2/internal/graphicsdriver/metal/ca"
)
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
// #cgo !ios CFLAGS: -mmacosx-version-min=10.14
//
// #include "ns_darwin.h"
import "C"