diff options
| author | ruki <[email protected]> | 2024-07-12 00:52:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-15 12:21:41 +0800 |
| commit | 2ae6ada73e544bba9f547b022393f1e3c5093ec6 (patch) | |
| tree | 8b774c6301bece9cced338eead3adb8e6ce5e25a /xmake/plugins/pack/xpack.lua | |
| parent | 22df8e0d89a1d8f3358797ed2094f692be62b4e4 (diff) | |
add set_prefixdir
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
| -rw-r--r-- | xmake/plugins/pack/xpack.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua index 89ee5a54b..203fcbe6d 100644 --- a/xmake/plugins/pack/xpack.lua +++ b/xmake/plugins/pack/xpack.lua @@ -453,7 +453,7 @@ end -- get the binary directory function xpack:bindir() - local bindir = self:get("bindir") + local bindir = self:get("bindir") or self:extraconf("prefixdir", self:prefixdir(), "bindir") if bindir == nil then bindir = "bin" end @@ -462,7 +462,7 @@ end -- get the library directory function xpack:libdir() - local libdir = self:get("libdir") + local libdir = self:get("libdir") or self:extraconf("prefixdir", self:prefixdir(), "libdir") if libdir == nil then libdir = "lib" end @@ -471,7 +471,7 @@ end -- get the include directory function xpack:includedir() - local includedir = self:get("includedir") + local includedir = self:get("includedir") or self:extraconf("prefixdir", self:prefixdir(), "includedir") if includedir == nil then includedir = "include" end |
