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.
28 lines
1.1 KiB
28 lines
1.1 KiB
1 year ago
|
package("luabridge3")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://kunitoki.github.io/LuaBridge3")
|
||
|
set_description("LuaBridge3 is a lightweight and dependency-free library for mapping data, functions, and classes back and forth between C++ and Lua.")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/kunitoki/LuaBridge3/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/kunitoki/LuaBridge3.git")
|
||
|
add_versions("3.0-rc3", "842a3803587c42568f6f4e65314f762fb7724c9c7c91efc930282921dbf9a79f")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.cp("Source", path.join(package:installdir("include"), "luabridge3"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
#define LUA_VERSION_NUM
|
||
|
#include <luabridge3/LuaBridge/detail/Errors.h>
|
||
|
void test()
|
||
|
{
|
||
|
luabridge::ErrorCode errorCode;
|
||
|
const luabridge::detail::ErrorCategory& category = luabridge::detail::ErrorCategory::getInstance();
|
||
|
category.name();
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++17"}}))
|
||
|
end)
|
||
|
|