diff options
| author | ruki <[email protected]> | 2021-04-29 22:38:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-29 22:38:09 +0800 |
| commit | 86a73ca5e5fe97e37f59516956b73d64c03f2802 (patch) | |
| tree | 75b46499fcb83e5a6e0d301199ffaff4df247f51 /xmake/plugins | |
| parent | 9597a24c34cd2e47aab93c1a8a21914cff0c18a8 (diff) | |
fix vsxmake envs
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 8677c5ddf..97803a115 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -182,6 +182,12 @@ function _make_targetinfo(mode, arch, target) addrunenvs = addrunenvs or {} addrunenvs[k] = table.join(table.wrap(addrunenvs[k]), v) end + for _, dep in ipairs(target:orderdeps()) do + for k, v in pairs(dep:pkgenvs()) do + addrunenvs = addrunenvs or {} + addrunenvs[k] = table.join(table.wrap(addrunenvs[k]), v) + end + end for k, v in pairs(addrunenvs) do if k:upper() == "PATH" then runenvs[k] = format("%s;$([System.Environment]::GetEnvironmentVariable('%s'))", _make_dirs(v), k) |
