summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-15 00:28:33 +0800
committerruki <[email protected]>2023-11-15 00:28:33 +0800
commit11fc253727573ac7822d42a818056be410b3f266 (patch)
tree6b7fb3649f5e79fdf5903351ee079ccd590b9bc4 /xmake/plugins/pack/xpack.lua
parentbee397d5bb6496c078c1a7d79bbf5c38d6c38cca (diff)
add includedir for xpack
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index bb8f0b8c9..49924409e 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -436,6 +436,15 @@ function xpack:libdir()
return libdir
end
+-- get the include directory
+function xpack:includedir()
+ local includedir = self:get("includedir")
+ if includedir == nil then
+ includedir = "include"
+ end
+ return includedir
+end
+
-- new a xpack
function _new(name, info)
return xpack {name, info}