xmake.lua 725 B

12345678910111213141516171819202122
  1. package("egl-headers")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/KhronosGroup/EGL-Registry")
  4. set_description("EGL API and Extension Registry")
  5. set_license("MIT")
  6. add_urls("https://github.com/KhronosGroup/EGL-Registry.git")
  7. add_versions("2023.12.16", "a03692eea13514d9aef01822b2bc6575fcabfac2")
  8. on_install(function (package)
  9. os.vcp("api/EGL", package:installdir("include"))
  10. os.vcp("api/KHR", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:check_csnippets({test = [[
  14. void test() {
  15. int version = EGL_VERSION;
  16. }
  17. ]]}, {includes = "EGL/egl.h"}))
  18. end)