diff options
| author | SirLynix <[email protected]> | 2023-07-21 17:24:04 +0200 |
|---|---|---|
| committer | SirLynix <[email protected]> | 2023-07-21 17:24:04 +0200 |
| commit | 30f29b8dd316cfee6404b1fa4ca9815a4f02c9a8 (patch) | |
| tree | 25b49be91e2d220c627618a69e92e77aae5bd5ef /xmake/plugins | |
| parent | 56bc58325b10e39b8278e81e1852997334716efb (diff) | |
Refactor runenvs so renderdoc can store envs
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 4 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 0b491ad65..0bb65c994 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -36,7 +36,7 @@ import("vsutils") import("core.cache.memcache") import("core.cache.localcache") import("private.action.require.install", {alias = "install_requires"}) -import("private.action.run.make_runenvs") +import("private.action.run.runenvs") import("actions.config.configfiles", {alias = "generate_configfiles", rootdir = os.programdir()}) import("actions.config.configheader", {alias = "generate_configheader", rootdir = os.programdir()}) import("private.utils.batchcmds") @@ -324,7 +324,7 @@ function _make_targetinfo(mode, arch, target, vcxprojdir) -- save runenvs local runenvs = {} - local addrunenvs, setrunenvs = make_runenvs(target) + local addrunenvs, setrunenvs = runenvs.make(target) for k, v in table.orderpairs(target:pkgenvs()) do addrunenvs = addrunenvs or {} addrunenvs[k] = table.join(table.wrap(addrunenvs[k]), path.splitenv(v)) diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 6fe8c7f90..354b44ec8 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -31,7 +31,7 @@ import("core.tool.toolchain") import("core.cache.memcache") import("core.cache.localcache") import("lib.detect.find_tool") -import("private.action.run.make_runenvs") +import("private.action.run.runenvs") import("private.action.require.install", {alias = "install_requires"}) import("actions.config.configheader", {alias = "generate_configheader", rootdir = os.programdir()}) import("actions.config.configfiles", {alias = "generate_configfiles", rootdir = os.programdir()}) @@ -165,7 +165,7 @@ function _make_targetinfo(mode, arch, target) -- save runenvs local runenvs = {} - local addrunenvs, setrunenvs = make_runenvs(target) + local addrunenvs, setrunenvs = runenvs.make(target) for k, v in table.orderpairs(target:pkgenvs()) do addrunenvs = addrunenvs or {} addrunenvs[k] = table.join(table.wrap(addrunenvs[k]), path.splitenv(v)) @@ -541,7 +541,7 @@ function main(outputdir, vsinfo) end end - -- we need to set startup project for default or binary target + -- we need set startup project for default or binary target -- @see https://github.com/xmake-io/xmake/issues/1249 local targetnames = {} for targetname, target in table.orderpairs(project.targets()) do |
