2
0

xmake.lua 757 B

1234567891011121314151617181920212223
  1. package("opengl-headers")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/KhronosGroup/OpenGL-Registry/")
  4. set_description("OpenGL, OpenGL ES, and OpenGL ES-SC API and Extension Registry")
  5. set_license("MIT")
  6. add_urls("https://github.com/KhronosGroup/OpenGL-Registry.git")
  7. add_versions("2024.01.04", "ca491a0576d5c026f06ebe29bfac7cbbcf1e8332")
  8. add_deps("egl-headers")
  9. on_install(function (package)
  10. os.vcp("api/*", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:check_csnippets({test = [[
  14. void test() {
  15. int version = GL_VERSION;
  16. }
  17. ]]}, {includes = "GLES3/gl3.h"}))
  18. end)