build.go 661 B

12345678910111213141516171819202122
  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 -glversion GL_VERSION_3_3 glcorearb.h
  7. // // Platform build flags
  8. // #cgo freebsd CFLAGS: -DGL_GLEXT_PROTOTYPES
  9. // #cgo freebsd LDFLAGS:
  10. //
  11. // #cgo linux CFLAGS: -DGL_GLEXT_PROTOTYPES
  12. // #cgo linux LDFLAGS: -ldl
  13. //
  14. // #cgo windows CFLAGS: -DGL_GLEXT_PROTOTYPES
  15. // #cgo windows LDFLAGS: -lopengl32
  16. //
  17. // #cgo darwin CFLAGS: -DGL_GLEXT_PROTOTYPES
  18. // #cgo darwin LDFLAGS: -framework OpenGL
  19. import "C"