xmake.lua 615 B

1234567891011121314151617
  1. package("glu")
  2. set_homepage("https://gitlab.freedesktop.org/mesa/glu")
  3. set_description("OpenGL utility library")
  4. on_fetch(function (package, opt)
  5. if package:is_plat("macosx") then
  6. return {frameworks = "OpenGL", defines = "GL_SILENCE_DEPRECATION"}
  7. elseif package:is_plat("windows", "mingw") then
  8. return {links = "glu32"}
  9. end
  10. if opt.system then
  11. if package:is_plat("linux") and package.find_package then
  12. return package:find_package("glu", opt) or package:find_package("libglu", opt)
  13. end
  14. end
  15. end)