mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
app/internal: consolidate CFLAGS and move -Werror to #cgo directives
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
)
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -Werror
|
||||
#cgo linux LDFLAGS: -lGLESv2 -ldl
|
||||
#cgo darwin,!ios CFLAGS: -DGL_SILENCE_DEPRECATION
|
||||
#cgo darwin,!ios LDFLAGS: -framework OpenGL
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
package log
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -fmodules -fobjc-arc -x objective-c
|
||||
#cgo CFLAGS: -Werror -fmodules -fobjc-arc -x objective-c
|
||||
|
||||
#include "log_ios.h"
|
||||
*/
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
package window
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -fmodules -fobjc-arc -x objective-c
|
||||
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#include <OpenGLES/ES2/gl.h>
|
||||
#include <OpenGLES/ES2/glext.h>
|
||||
|
||||
@@ -9,8 +9,6 @@ import (
|
||||
)
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -DGL_SILENCE_DEPRECATION -fmodules -fobjc-arc -x objective-c
|
||||
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#include <CoreGraphics/CoreGraphics.h>
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
package window
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -landroid
|
||||
#cgo LDFLAGS: -Werror -landroid
|
||||
|
||||
#include <android/native_window_jni.h>
|
||||
#include <android/configuration.h>
|
||||
|
||||
@@ -21,6 +21,7 @@ import (
|
||||
/*
|
||||
#cgo CFLAGS: -DGL_SILENCE_DEPRECATION -Werror -Wno-deprecated-declarations -fmodules -fobjc-arc -x objective-c
|
||||
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include "os_macos.h"
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user