Split cgo files
This commit is contained in:
parent
944d42629b
commit
5f162ce7cd
8 changed files with 63 additions and 9 deletions
|
@ -1,15 +1,6 @@
|
|||
package raylib
|
||||
|
||||
/*
|
||||
#cgo linux,!arm LDFLAGS: -lglfw -lGL -lopenal -lm -pthread -ldl -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||
#cgo linux,arm,!android LDFLAGS: -lGLESv2 -lEGL -lpthread -lrt -lm -lbcm_host -lvcos -lvchiq_arm -lopenal
|
||||
#cgo windows LDFLAGS: -lglfw3 -lopengl32 -lgdi32 -lopenal32 -lwinmm
|
||||
#cgo darwin LDFLAGS: -lglfw -framework OpenGL -framework OpenAL -framework Cocoa
|
||||
#cgo android LDFLAGS: -llog -landroid -lEGL -lGLESv2 -lOpenSLES -lopenal -lm -landroid_native_app_glue
|
||||
|
||||
#cgo CFLAGS: -std=gnu99 -fgnu89-inline -Wno-missing-braces -Wno-unused-result
|
||||
#cgo linux,windows,darwin,!android,!arm CFLAGS: -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
||||
#cgo linux,arm,!android CFLAGS: -DPLATFORM_RPI -DGRAPHICS_API_OPENGL_ES2
|
||||
#cgo android CFLAGS: -DPLATFORM_ANDROID -DGRAPHICS_API_OPENGL_ES2
|
||||
*/
|
||||
import "C"
|
||||
|
|
9
raylib/cgo_android.go
Normal file
9
raylib/cgo_android.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build android
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo android LDFLAGS: -llog -landroid -lEGL -lGLESv2 -lOpenSLES -lopenal -lm -landroid_native_app_glue
|
||||
#cgo android CFLAGS: -DPLATFORM_ANDROID -DGRAPHICS_API_OPENGL_ES2
|
||||
*/
|
||||
import "C"
|
9
raylib/cgo_darwin.go
Normal file
9
raylib/cgo_darwin.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build darwin
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo darwin LDFLAGS: -lglfw -framework OpenGL -framework OpenAL -framework Cocoa
|
||||
#cgo darwin CFLAGS: -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
|
||||
*/
|
||||
import "C"
|
9
raylib/cgo_linux.go
Normal file
9
raylib/cgo_linux.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build linux,!static,!arm
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo linux LDFLAGS: -lglfw -lGL -lopenal -lm -pthread -ldl -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||
#cgo linux CFLAGS: -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DSHARED_OPENAL
|
||||
*/
|
||||
import "C"
|
9
raylib/cgo_linux_arm.go
Normal file
9
raylib/cgo_linux_arm.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build linux,arm,!android
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo linux,arm LDFLAGS: -lGLESv2 -lEGL -lpthread -lrt -lm -lbcm_host -lvcos -lvchiq_arm -lopenal
|
||||
#cgo linux,arm CFLAGS: -DPLATFORM_RPI -DGRAPHICS_API_OPENGL_ES2
|
||||
*/
|
||||
import "C"
|
9
raylib/cgo_linux_static.go
Normal file
9
raylib/cgo_linux_static.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build linux,static,!arm
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo linux LDFLAGS: -lglfw3 -lGL -lopenal -lm -pthread -ldl -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
|
||||
#cgo linux CFLAGS: -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DAL_LIBTYPE_STATIC
|
||||
*/
|
||||
import "C"
|
9
raylib/cgo_windows.go
Normal file
9
raylib/cgo_windows.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build windows,!static
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo windows LDFLAGS: -lglfw3 -lopengl32 -lgdi32 -lOpenAL32 -lwinmm -lole32
|
||||
#cgo windows CFLAGS: -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DSHARED_OPENAL
|
||||
*/
|
||||
import "C"
|
9
raylib/cgo_windows_static.go
Normal file
9
raylib/cgo_windows_static.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
// +build windows,static
|
||||
|
||||
package raylib
|
||||
|
||||
/*
|
||||
#cgo windows LDFLAGS: -lglfw3 -lopengl32 -lgdi32 -lOpenAL32 -lwinmm -lole32
|
||||
#cgo windows CFLAGS: -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -DAL_LIBTYPE_STATIC
|
||||
*/
|
||||
import "C"
|
Loading…
Add table
Add a link
Reference in a new issue