all: add -DGLES_SILENCE_DEPRECATION instead of #define
Defining GLES_SILENCE_DEPRECATION did not take any effects. Use -D instead. Change-Id: I9c0602b38d39020b9539fdb8030fef3a7b366929 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/374499 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Trust: Hajime Hoshi <hajimehoshi@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
cde37c62e1
commit
5579029ea0
@ -8,7 +8,7 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -x objective-c -DGL_SILENCE_DEPRECATION
|
#cgo CFLAGS: -x objective-c -DGL_SILENCE_DEPRECATION -DGLES_SILENCE_DEPRECATION
|
||||||
#cgo LDFLAGS: -framework Foundation -framework UIKit -framework GLKit -framework OpenGLES -framework QuartzCore
|
#cgo LDFLAGS: -framework Foundation -framework UIKit -framework GLKit -framework OpenGLES -framework QuartzCore
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
#define GLES_SILENCE_DEPRECATION
|
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
#import <GLKit/GLKit.h>
|
#import <GLKit/GLKit.h>
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ package gl
|
|||||||
#cgo android CFLAGS: -Dos_android
|
#cgo android CFLAGS: -Dos_android
|
||||||
#cgo ios CFLAGS: -Dos_ios
|
#cgo ios CFLAGS: -Dos_ios
|
||||||
#cgo darwin,!ios CFLAGS: -Dos_macos
|
#cgo darwin,!ios CFLAGS: -Dos_macos
|
||||||
#cgo darwin CFLAGS: -DGL_SILENCE_DEPRECATION
|
#cgo darwin CFLAGS: -DGL_SILENCE_DEPRECATION -DGLES_SILENCE_DEPRECATION
|
||||||
#cgo linux CFLAGS: -Dos_linux
|
#cgo linux CFLAGS: -Dos_linux
|
||||||
#cgo openbsd CFLAGS: -Dos_openbsd
|
#cgo openbsd CFLAGS: -Dos_openbsd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user