twitchapon-anim

Basic Twitchapon Receiver/Visuals
git clone git://bsandro.tech/twitchapon-anim
Log | Files | Refs | README | LICENSE

build_cgo_hack.go (726B)


      1 // +build required
      2 
      3 package glfw
      4 
      5 // This file exists purely to prevent the golang toolchain from stripping
      6 // away the c source directories and files when `go mod vendor` is used
      7 // to populate a `vendor/` directory of a project depending on `go-gl/glfw`.
      8 //
      9 // How it works:
     10 //  - every directory which only includes c source files receives a dummy.go file.
     11 //  - every directory we want to preserve is included here as a _ import.
     12 //  - this file is given a build to exclude it from the regular build.
     13 import (
     14 	// Prevent go tooling from stripping out the c source files.
     15 	_ "github.com/go-gl/glfw/v3.3/glfw/glfw/deps"
     16 	_ "github.com/go-gl/glfw/v3.3/glfw/glfw/include/GLFW"
     17 	_ "github.com/go-gl/glfw/v3.3/glfw/glfw/src"
     18 )