lightmapper: add package (#2456)

pull/2459/head
star9029 1 year ago committed by GitHub
parent 669ea752e5
commit 81096aaf98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/l/lightmapper/xmake.lua

@ -0,0 +1,15 @@
package("lightmapper")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/ands/lightmapper")
set_description("A C/C++ single-file library for drop-in lightmap baking. Just use your existing OpenGL renderer to bounce light!")
add_urls("https://github.com/ands/lightmapper.git")
add_versions("2022.01.03", "4fd3bf4e2c07263f85d5d875ebdef061bc512dd4")
on_install(function (package)
os.cp("lightmapper.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cfuncs("lmCreate", {includes = "lightmapper.h", configs = {languages = "c99"}}))
end)
Loading…
Cancel
Save