xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

add envs for xrepo #5580 #5582

Closed waruqi closed 2 months ago

waruqi commented 2 months ago

https://github.com/xmake-io/xmake/issues/5580

includes("@builtin/xrepo")

xrepo_addenvs(function (package)
    package:addenv("FOO", "FOO")
end)

xrepo_addenvs({BAR = "BAR"})

xrepo_addenv("ZOO", ...)