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.
26 lines
978 B
26 lines
978 B
package("nameof") |
|
|
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/Neargye/nameof") |
|
set_description("Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/Neargye/nameof/archive/refs/tags/v$(version).tar.gz", |
|
"https://github.com/Neargye/nameof.git") |
|
|
|
add_versions("0.10.4", "b67ed2155a32760067eee0d33c727b9badfd8c12393ebbe3b7ab219b4faa0149") |
|
add_versions("0.10.3", "f31dd02841adfbb98949454005a308174645957d2b8d4dc06a7c15e1039e46e6") |
|
|
|
on_install(function (package) |
|
os.cp("include", package:installdir()) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <nameof.hpp> |
|
void test() { |
|
int x; |
|
static_assert(NAMEOF(x) == "x"); |
|
} |
|
]]}, {configs = {languages = "c++17"}})) |
|
end)
|
|
|