mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
cmd/ebitenmobile: add -DGLES_SILENCE_DEPRECATION to suppress warnings
This commit is contained in:
parent
ea1bc76ef2
commit
b581fe8f22
@ -125,6 +125,12 @@ func run() error {
|
|||||||
if err := writeFile(filepath.Join("src", "gobind", prefixLower+"ebitenviewcontroller_ios.m"), replacePrefixes(objcM)); err != nil {
|
if err := writeFile(filepath.Join("src", "gobind", prefixLower+"ebitenviewcontroller_ios.m"), replacePrefixes(objcM)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := writeFile(filepath.Join("src", "gobind", prefixLower+"ebitenviewcontroller_ios.go"), `package main
|
||||||
|
|
||||||
|
// #cgo CFLAGS: -DGLES_SILENCE_DEPRECATION
|
||||||
|
import "C"`); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
case "java":
|
case "java":
|
||||||
// Android
|
// Android
|
||||||
dir := filepath.Join(strings.Split(*javaPkg, ".")...)
|
dir := filepath.Join(strings.Split(*javaPkg, ".")...)
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user