From 81096aaf98fc85480a1e9aa341aaeee16e363373 Mon Sep 17 00:00:00 2001 From: star9029 Date: Fri, 18 Aug 2023 23:03:44 +0800 Subject: [PATCH] lightmapper: add package (#2456) --- packages/l/lightmapper/xmake.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/l/lightmapper/xmake.lua diff --git a/packages/l/lightmapper/xmake.lua b/packages/l/lightmapper/xmake.lua new file mode 100644 index 000000000..ad03727f4 --- /dev/null +++ b/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)