build.go 547 B

12345678910111213141516
  1. // Copyright 2016 The G3N Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package gls
  5. // Generation of API files: glapi.c, glapi.h, consts.go
  6. //go:generate glapi2go glcorearb.h
  7. // // Platform build flags
  8. // #cgo freebsd CFLAGS: -DGL_GLEXT_PROTOTYPES
  9. // #cgo freebsd LDFLAGS: -ldl
  10. // #cgo linux CFLAGS: -DGL_GLEXT_PROTOTYPES
  11. // #cgo linux LDFLAGS: -ldl
  12. // #cgo windows CFLAGS: -DGL_GLEXT_PROTOTYPES
  13. // #cgo darwin LDFLAGS: -framework OpenGL
  14. import "C"