mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sokol: add support for compiling with -d darwin_sokol_glcore33
on macos (#13885)
This commit is contained in:
parent
fb5df9665e
commit
5c43493183
@ -13,9 +13,13 @@ pub const (
|
|||||||
#flag windows -lgdi32
|
#flag windows -lgdi32
|
||||||
// METAL
|
// METAL
|
||||||
$if macos {
|
$if macos {
|
||||||
|
$if darwin_sokol_glcore33 ? {
|
||||||
|
#flag darwin -DSOKOL_GLCORE33 -framework OpenGL -framework Cocoa -framework QuartzCore
|
||||||
|
} $else {
|
||||||
#flag -DSOKOL_METAL
|
#flag -DSOKOL_METAL
|
||||||
#flag -framework Metal -framework Cocoa -framework MetalKit -framework QuartzCore
|
#flag -framework Metal -framework Cocoa -framework MetalKit -framework QuartzCore
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$if ios {
|
$if ios {
|
||||||
#flag -DSOKOL_METAL
|
#flag -DSOKOL_METAL
|
||||||
#flag -framework Foundation -framework Metal -framework MetalKit -framework UIKit
|
#flag -framework Foundation -framework Metal -framework MetalKit -framework UIKit
|
||||||
|
Loading…
Reference in New Issue
Block a user