package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
693 B

package("opengl")
set_homepage("https://opengl.org/")
set_description("OpenGL - The Industry Standard for High Performance Graphics")
on_fetch(function (package, opt)
-- we always get it from compiler toolchain
if package:is_plat("macosx") then
return {frameworks = "OpenGL", defines = "GL_SILENCE_DEPRECATION"}
elseif package:is_plat("windows", "mingw") then
return {links = "opengl32"}
end
if opt.system then
if package:is_plat("linux") and package.find_package then
return package:find_package("opengl", opt) or package:find_package("libgl", opt)
end
end
end)