From cfa2d8521d12f159eb0b01f36e0ecd1dd8ef6e7d Mon Sep 17 00:00:00 2001 From: jj683 <87266000+jj683@users.noreply.github.com> Date: Fri, 30 Jul 2021 00:50:40 +0300 Subject: [PATCH] add NamedType (#527) --- packages/n/named_type/xmake.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/n/named_type/xmake.lua diff --git a/packages/n/named_type/xmake.lua b/packages/n/named_type/xmake.lua new file mode 100644 index 000000000..9310df298 --- /dev/null +++ b/packages/n/named_type/xmake.lua @@ -0,0 +1,18 @@ +package("named_type") + + set_kind("library", {headeronly = true}) + set_homepage("https://github.com/joboccara/NamedType") + set_description("Implementation of strong types in C++.") + set_license("MIT") + + add_urls("https://github.com/joboccara/NamedType.git") + + add_versions("v1.1.0.20210209", "c119054eac4b8f3599233ff480ad1ce4309a52ad") + + on_install(function (package) + os.cp("include/NamedType", package:installdir("include")) + end) + + on_test(function (package) + assert(package:has_cxxtypes("fluent::NamedType", {configs = {languages = "c++14"}, includes = "NamedType/named_type.hpp"})) + end)