cmd/ebitenmobile: add -DGLES_SILENCE_DEPRECATION to suppress warnings

This commit is contained in:
Hajime Hoshi 2022-01-05 03:06:22 +09:00
parent ea1bc76ef2
commit b581fe8f22
2 changed files with 7 additions and 1 deletions

View File

@ -125,6 +125,12 @@ func run() error {
if err := writeFile(filepath.Join("src", "gobind", prefixLower+"ebitenviewcontroller_ios.m"), replacePrefixes(objcM)); err != nil {
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":
// Android
dir := filepath.Join(strings.Split(*javaPkg, ".")...)

File diff suppressed because one or more lines are too long