From 64db618a134e8a474f4d785ee47cf04723f782ef Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 10 Mar 2022 00:25:53 +0800 Subject: support template package --- xmake/core/package/package.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/core/package/package.lua') diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 24fe66ea2..b77b24aeb 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -421,6 +421,11 @@ function _instance:is_library() return self:kind() == nil or self:kind() == "library" end +-- is template package? +function _instance:is_template() + return self:kind() == "template" +end + -- is header only? function _instance:is_headeronly() return self:is_library() and self:extraconf("kind", "library", "headeronly") -- cgit v1.3.1