zorldo

Goofing around with Ebiten
git clone git://bsandro.tech/zorldo
Log | Files | Refs | README

build.go (1613B)


      1 package glfw
      2 
      3 /*
      4 // Windows Build Tags
      5 // ----------------
      6 // GLFW Options:
      7 #cgo windows CFLAGS: -D_GLFW_WIN32 -Iglfw/deps/mingw
      8 
      9 // Linker Options:
     10 #cgo windows LDFLAGS: -lgdi32
     11 
     12 #cgo !gles2,windows LDFLAGS: -lopengl32
     13 #cgo gles2,windows LDFLAGS: -lGLESv2
     14 
     15 // Darwin Build Tags
     16 // ----------------
     17 // GLFW Options:
     18 #cgo darwin CFLAGS: -D_GLFW_COCOA -Wno-deprecated-declarations
     19 
     20 // Linker Options:
     21 #cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo
     22 
     23 #cgo !gles2,darwin LDFLAGS: -framework OpenGL
     24 #cgo gles2,darwin LDFLAGS: -lGLESv2
     25 
     26 // Linux Build Tags
     27 // ----------------
     28 // GLFW Options:
     29 #cgo linux,!wayland CFLAGS: -D_GLFW_X11 -D_GNU_SOURCE
     30 #cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GNU_SOURCE
     31 
     32 // Linker Options:
     33 #cgo linux,!gles1,!gles2,!gles3,!vulkan LDFLAGS: -lGL
     34 #cgo linux,gles1 LDFLAGS: -lGLESv1
     35 #cgo linux,gles2 LDFLAGS: -lGLESv2
     36 #cgo linux,gles3 LDFLAGS: -lGLESv3
     37 #cgo linux,vulkan LDFLAGS: -lvulkan
     38 #cgo linux,!wayland LDFLAGS: -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lm -lXinerama -ldl -lrt
     39 #cgo linux,wayland LDFLAGS: -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon -lm -ldl -lrt
     40 
     41 // FreeBSD Build Tags
     42 // ----------------
     43 // GLFW Options:
     44 #cgo freebsd pkg-config: glfw3
     45 #cgo freebsd CFLAGS: -D_GLFW_HAS_DLOPEN
     46 #cgo freebsd,!wayland CFLAGS: -D_GLFW_X11 -D_GLFW_HAS_GLXGETPROCADDRESSARB
     47 #cgo freebsd,wayland CFLAGS: -D_GLFW_WAYLAND
     48 
     49 // Linker Options:
     50 #cgo freebsd,!wayland LDFLAGS: -lm -lGL -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -lXinerama
     51 #cgo freebsd,wayland LDFLAGS: -lm -lGL -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
     52 */
     53 import "C"