1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ios: move sokol declarations out of builder, and support non-sokol apps too (#9703)

This commit is contained in:
Leah Lundqvist
2021-04-12 18:35:06 +02:00
committed by GitHub
parent 07a6f4e445
commit cfaba49683
3 changed files with 12 additions and 8 deletions

View File

@@ -12,8 +12,14 @@ pub const (
#flag freebsd -L/usr/local/lib -lX11 -lGL -lXcursor -lXi
#flag windows -lgdi32
// METAL
#flag darwin -DSOKOL_METAL
#flag darwin -framework Metal -framework Cocoa -framework MetalKit -framework QuartzCore
$if darwin {
#flag -DSOKOL_METAL
#flag -framework Metal -framework Cocoa -framework MetalKit -framework QuartzCore
}
$if ios {
#flag -DSOKOL_METAL
#flag -framework Foundation -framework Metal -framework MetalKit -framework UIKit
}
// OPENGL
#flag linux -DSOKOL_GLCORE33
#flag freebsd -DSOKOL_GLCORE33