diff options
| author | ruki <[email protected]> | 2023-11-15 00:05:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-15 00:05:14 +0800 |
| commit | dafa53ffa7449b635bbd72d1489ed430674e5af4 (patch) | |
| tree | 78b727c180ebee7544731f8cefee75decbd76eab /xmake/plugins/pack/xpack.lua | |
| parent | 9a5ca6742079c85d78d84f0bcecfae577628e201 (diff) | |
add bindir and libdir
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
| -rw-r--r-- | xmake/plugins/pack/xpack.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua index b0a7b7394..bb8f0b8c9 100644 --- a/xmake/plugins/pack/xpack.lua +++ b/xmake/plugins/pack/xpack.lua @@ -418,6 +418,24 @@ function xpack:installfiles(outputdir) return self:_copiedfiles("installfiles", outputdir) end +-- get the binary directory +function xpack:bindir() + local bindir = self:get("bindir") + if bindir == nil then + bindir = "bin" + end + return bindir +end + +-- get the library directory +function xpack:libdir() + local libdir = self:get("libdir") + if libdir == nil then + libdir = "lib" + end + return libdir +end + -- new a xpack function _new(name, info) return xpack {name, info} |
