diff options
| author | ruki <[email protected]> | 2023-11-12 00:05:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-12 00:05:21 +0800 |
| commit | fb648845e465bf0c376f6d0d4197c8243abdaecd (patch) | |
| tree | a177a51f56b57a3977f036b45c524943353a0315 /xmake/includes/xpack/xmake.lua | |
| parent | f23af7855d5d5d2b2126dd67db0de04e05836c12 (diff) | |
improve specvars
Diffstat (limited to 'xmake/includes/xpack/xmake.lua')
| -rw-r--r-- | xmake/includes/xpack/xmake.lua | 6 |
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) |
