diff options
| author | ruki <[email protected]> | 2023-11-24 23:09:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-24 23:09:46 +0800 |
| commit | 51efaa718683a9bf18cd6859e60f1d5240c10c5d (patch) | |
| tree | 0ae3485ef5434f8acfc70210b6910356aa5adfc5 /xmake/plugins/pack/xpack_component.lua | |
| parent | 16f74fe53b4c240c8bee69e1d06dc821067f2817 (diff) | |
| parent | 43ac546cbd551bf06ae37a8211c8a65d9eadbb0b (diff) | |
Merge pull request #4415 from xmake-io/makeself
pack runself
Diffstat (limited to 'xmake/plugins/pack/xpack_component.lua')
| -rw-r--r-- | xmake/plugins/pack/xpack_component.lua | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/xmake/plugins/pack/xpack_component.lua b/xmake/plugins/pack/xpack_component.lua index 59d2fae8f..bb0f5f454 100644 --- a/xmake/plugins/pack/xpack_component.lua +++ b/xmake/plugins/pack/xpack_component.lua @@ -240,10 +240,10 @@ function xpack_component:installfiles() return self:_copiedfiles("installfiles", self:package():installdir()) end --- get the root directory, this is just a temporary sandbox installation path, +-- 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_component:rootdir() - return self:package():rootdir() +function xpack_component:install_rootdir() + return self:package():install_rootdir() end -- get the installed directory @@ -251,6 +251,21 @@ function xpack_component:installdir(...) return self:package():installdir(...) end +-- get the source files +function xpack_component:sourcefiles() + return self:_copiedfiles("sourcefiles", self:package():sourcedir()) +end + +-- get the source root directory +function xpack_component:source_rootdir() + return self:package():souece_rootdir() +end + +-- get the source directory +function xpack_component:sourcedir(...) + return self:package():sourcedir(...) +end + -- get the binary directory function xpack_component:bindir() return self:package():bindir() |
