summaryrefslogtreecommitdiff
path: root/xmake/includes/xpack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-12 00:05:21 +0800
committerruki <[email protected]>2023-11-12 00:05:21 +0800
commitfb648845e465bf0c376f6d0d4197c8243abdaecd (patch)
treea177a51f56b57a3977f036b45c524943353a0315 /xmake/includes/xpack/xmake.lua
parentf23af7855d5d5d2b2126dd67db0de04e05836c12 (diff)
improve specvars
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 6d6cb99ec..691645116 100644
--- a/xmake/includes/xpack/xmake.lua
+++ b/xmake/includes/xpack/xmake.lua
@@ -40,7 +40,7 @@ local apis = {
"xpack.set_formats",
-- set the base name of the output file
"xpack.set_basename",
- -- set the spec file path
+ -- set the spec file path, support the custom variable pattern, e.g. set_specfile("", {pattern = "%${([^\n]-)}"})
"xpack.set_specfile",
-- add targets to be packaged
"xpack.add_targets",
@@ -54,6 +54,10 @@ local apis = {
"xpack.on_installcmd",
-- add custom uninstall commands script, we will also get it from target/rules
"xpack.on_uninstallcmd"
+ },
+ keyvalues = {
+ -- set the spec variable
+ "xpack.set_specvar"
}
}
interp_add_scopeapis(apis)