summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-24 22:40:01 +0800
committerruki <[email protected]>2025-04-24 10:24:45 +0800
commitd75240a009a7f295e31568c83fe9e93de1be431d (patch)
tree06bf5f1da864c1f993c2f7926a507ff43221690d /xmake/plugins/pack/xpack.lua
parent9a69d05a1087691899587da2aeb1c37cea54c354 (diff)
rename more buildir
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index c166c78d8..780d6ca36 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -256,10 +256,16 @@ function xpack:with_binary()
end
-- get the build directory
-function xpack:buildir()
+function xpack:builddir()
return path.join(config.builddir(), ".xpack", self:name())
end
+-- get the build directory (deprecated)
+function xpack:buildir()
+ wprint("xpack:buildir() has been deprecated, please use xpack:builddir()")
+ return self:builddir()
+end
+
-- get the output directory
function xpack:outputdir()
local outputdir = option.get("outputdir")
@@ -420,7 +426,7 @@ end
-- get the installed root directory, this is just a temporary sandbox installation path,
-- we may replace it with the actual installation path in the specfile
function xpack:install_rootdir()
- return path.join(self:buildir(), "installed", self:format())
+ return path.join(self:builddir(), "installed", self:format())
end
-- get the installed directory
@@ -440,7 +446,7 @@ end
-- get the source root directory
function xpack:source_rootdir()
- return path.join(self:buildir(), "source", self:format())
+ return path.join(self:builddir(), "source", self:format())
end
-- get the source directory