summaryrefslogtreecommitdiff
path: root/xmake/includes/xpack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-15 00:05:14 +0800
committerruki <[email protected]>2023-11-15 00:05:14 +0800
commitdafa53ffa7449b635bbd72d1489ed430674e5af4 (patch)
tree78b727c180ebee7544731f8cefee75decbd76eab /xmake/includes/xpack/xmake.lua
parent9a5ca6742079c85d78d84f0bcecfae577628e201 (diff)
add bindir and libdir
Diffstat (limited to 'xmake/includes/xpack/xmake.lua')
-rw-r--r--xmake/includes/xpack/xmake.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/includes/xpack/xmake.lua b/xmake/includes/xpack/xmake.lua
index 5227c360a..d2e6e4a07 100644
--- a/xmake/includes/xpack/xmake.lua
+++ b/xmake/includes/xpack/xmake.lua
@@ -45,7 +45,11 @@ local apis = {
-- set the base name of the output file
"xpack.set_basename",
-- add targets to be packaged
- "xpack.add_targets"
+ "xpack.add_targets",
+ -- set installed binary directory, e.g. bin
+ "xpack.set_bindir",
+ -- set installed library directory, e.g. lib
+ "xpack.set_libdir"
},
paths = {
-- set the spec file path, support the custom variable pattern, e.g. set_specfile("", {pattern = "%${([^\n]-)}"})