how to pass a target:targetfile() to a configfile? #5685
-
I try before_build(
function(target)
add_configfiles("rime.tmux.in")
-- target:targetfile()
end
) However cannot work. |
Beta Was this translation helpful? Give feedback.
Answered by
star-hengxing
Oct 2, 2024
Replies: 1 comment
-
on_config(function (target)
target:add("configfiles", "rime.tmux.in")
target:set("configvar", "targetfile", target:targetfile())
end) xmake/xmake/core/project/target.lua Lines 1541 to 1563 in e96c315 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Freed-Wu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xmake/xmake/core/project/target.lua
Lines 1541 to 1563 in e96c315