Replies: 1 comment 2 replies
-
https://xmake.io/#/package/remote_package?id=distributing-and-using-custom-package-rules rule("use")
on_config(function (target)
local pkg = target:pkg("my_binary_package")
if pkg then
local installdir = pkg:installdir()
local binary = path.join(installdir, "bin", "binary")
os.vrun(binary)
end
end)
target("test")
add_rules("@my_binary_package/use") |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an executable, provided as a link.
I want to use that tool within my rules.
The tool is not in PATH ,since it's supposed to be downloaded during configuration/build and then used during configuration/build
Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions