xmake.lua 647 B

123456789101112131415
  1. package("lightmapper")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/ands/lightmapper")
  4. set_description("A C/C++ single-file library for drop-in lightmap baking. Just use your existing OpenGL renderer to bounce light!")
  5. add_urls("https://github.com/ands/lightmapper.git")
  6. add_versions("2022.01.03", "4fd3bf4e2c07263f85d5d875ebdef061bc512dd4")
  7. on_install(function (package)
  8. os.cp("lightmapper.h", package:installdir("include"))
  9. end)
  10. on_test(function (package)
  11. assert(package:has_cfuncs("lmCreate", {includes = "lightmapper.h", configs = {languages = "c99"}}))
  12. end)