Skip to content

Commit

Permalink
Add egl-headers and opengl-headers packages
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Jan 24, 2024
1 parent 85f3f87 commit b8b76c1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/e/egl-headers/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package("egl-headers")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/KhronosGroup/EGL-Registry")
set_description("EGL API and Extension Registry")
set_license("MIT")

add_urls("https://github.com/KhronosGroup/EGL-Registry.git")

add_versions("2023.12.16", "a03692eea13514d9aef01822b2bc6575fcabfac2")

on_install(function (package)
os.vcp("api/EGL", package:installdir("include"))
os.vcp("api/KHR", package:installdir("include"))
end)

on_test(function (package)
assert(package:check_csnippets({test = [[
void test() {
int version = EGL_VERSION;
}
]]}, {includes = "EGL/egl.h"}))
end)
23 changes: 23 additions & 0 deletions packages/o/opengl-headers/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package("opengl-headers")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/KhronosGroup/OpenGL-Registry/")
set_description("OpenGL, OpenGL ES, and OpenGL ES-SC API and Extension Registry")
set_license("MIT")

add_urls("https://github.com/KhronosGroup/OpenGL-Registry.git")

add_versions("2024.01.04", "ca491a0576d5c026f06ebe29bfac7cbbcf1e8332")

add_deps("egl-headers")

on_install(function (package)
os.vcp("api/*", package:installdir("include"))
end)

on_test(function (package)
assert(package:check_csnippets({test = [[
void test() {
int version = GL_VERSION;
}
]]}, {includes = "GLES3/gl3.h"}))
end)

0 comments on commit b8b76c1

Please sign in to comment.