Do not link GL when ANGLE is used
This commit is contained in:
parent
048c1b598c
commit
a6644da243
5 changed files with 18 additions and 8 deletions
|
@ -23,9 +23,11 @@ package rl
|
|||
#include "external/glfw/src/egl_context.c"
|
||||
#include "external/glfw/src/osmesa_context.c"
|
||||
|
||||
#cgo darwin LDFLAGS: -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -framework CoreFoundation
|
||||
#cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo -framework CoreFoundation
|
||||
#cgo darwin CFLAGS: -x objective-c -Iexternal/glfw/include -D_GLFW_COCOA -D_GLFW_USE_CHDIR -D_GLFW_USE_MENUBAR -D_GLFW_USE_RETINA -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP
|
||||
|
||||
#cgo darwin,!angle LDFLAGS: -framework OpenGL
|
||||
|
||||
#cgo darwin,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||
#cgo darwin,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||
#cgo darwin,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||
|
|
|
@ -36,8 +36,10 @@ package rl
|
|||
#cgo freebsd CFLAGS: -I. -I/usr/local/include -Iexternal/glfw/include -DPLATFORM_DESKTOP
|
||||
#cgo freebsd LDFLAGS: -L/usr/local/lib
|
||||
|
||||
#cgo freebsd,!wayland LDFLAGS: -lGL -lm -pthread -ldl -lrt -lX11
|
||||
#cgo freebsd,wayland LDFLAGS: -lGL -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||
#cgo freebsd,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
|
||||
#cgo freebsd,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||
|
||||
#cgo freebsd,!angle LDFLAGS: -lGL
|
||||
|
||||
#cgo freebsd,!wayland CFLAGS: -D_GLFW_X11
|
||||
#cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
||||
|
|
|
@ -35,8 +35,10 @@ package rl
|
|||
|
||||
#cgo linux CFLAGS: -Iexternal/glfw/include -DPLATFORM_DESKTOP -Wno-stringop-overflow
|
||||
|
||||
#cgo linux,!wayland LDFLAGS: -lGL -lm -pthread -ldl -lrt -lX11
|
||||
#cgo linux,wayland LDFLAGS: -lGL -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||
#cgo linux,!wayland LDFLAGS: -lm -pthread -ldl -lrt -lX11
|
||||
#cgo linux,wayland LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||
|
||||
#cgo linux,!angle LDFLAGS: -lGL
|
||||
|
||||
#cgo linux,!wayland CFLAGS: -D_GLFW_X11
|
||||
#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND
|
||||
|
|
|
@ -36,8 +36,10 @@ package rl
|
|||
#cgo openbsd CFLAGS: -I. -I/usr/X11R6/include -Iexternal/glfw/include -DPLATFORM_DESKTOP
|
||||
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib
|
||||
|
||||
#cgo openbsd,!wayland LDFLAGS: -lGL -lm -pthread -lX11
|
||||
#cgo openbsd,wayland LDFLAGS: -lGL -lm -pthread -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||
#cgo openbsd,!wayland LDFLAGS: -lm -pthread -lX11
|
||||
#cgo openbsd,wayland LDFLAGS: -lm -pthread -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
|
||||
|
||||
#cgo openbsd,!angle LDFLAGS: -lGL
|
||||
|
||||
#cgo openbsd,!wayland CFLAGS: -D_GLFW_X11
|
||||
#cgo openbsd,wayland CFLAGS: -D_GLFW_WAYLAND
|
||||
|
|
|
@ -23,9 +23,11 @@ package rl
|
|||
#include "external/glfw/src/egl_context.c"
|
||||
#include "external/glfw/src/osmesa_context.c"
|
||||
|
||||
#cgo windows LDFLAGS: -lopengl32 -lgdi32 -lwinmm -lole32
|
||||
#cgo windows LDFLAGS: -lgdi32 -lwinmm -lole32
|
||||
#cgo windows CFLAGS: -D_GLFW_WIN32 -Iexternal -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -DPLATFORM_DESKTOP
|
||||
|
||||
#cgo windows,!angle LDFLAGS: -lopengl32
|
||||
|
||||
#cgo windows,opengl11,!angle CFLAGS: -DGRAPHICS_API_OPENGL_11
|
||||
#cgo windows,opengl21,!angle CFLAGS: -DGRAPHICS_API_OPENGL_21
|
||||
#cgo windows,opengl43,!angle CFLAGS: -DGRAPHICS_API_OPENGL_43
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue