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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user