diff options
| author | OpportunityLiu <[email protected]> | 2019-07-17 14:43:54 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-19 11:48:32 +0800 |
| commit | 9b8aef08039cbd82503d62f13e13096e166104e4 (patch) | |
| tree | cbabb2ab41ad9e2487dc5b36c907f95a82dadf5b /xmake/plugins/project | |
| parent | c435e94919e7ee83b0a1ae4aeb589362422343bd (diff) | |
chang sperator for array
Diffstat (limited to 'xmake/plugins/project')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 4 | ||||
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 4 | ||||
| -rw-r--r-- | xmake/plugins/project/xmake.lua | 8 |
3 files changed, 7 insertions, 9 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index d414a69a3..3ea83fac2 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -165,7 +165,7 @@ function _make_vsinfo_modes() local vsinfo_modes = {} local modes = option.get("modes") if modes then - for _, mode in ipairs(modes:split(',')) do + for _, mode in ipairs(path.splitenv(modes)) do table.insert(vsinfo_modes, mode:trim()) end else @@ -181,7 +181,7 @@ function _make_vsinfo_archs() local vsinfo_archs = {} local archs = option.get("archs") if archs then - for _, arch in ipairs(archs:split(',')) do + for _, arch in ipairs(path.splitenv(archs)) do table.insert(vsinfo_archs, arch:trim()) end else diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index cbb1c7a54..97e1e4961 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -129,7 +129,7 @@ function _make_vsinfo_modes() local vsinfo_modes = {} local modes = option.get("modes") if modes then - for _, mode in ipairs(modes:split(',')) do + for _, mode in ipairs(path.splitenv(modes)) do table.insert(vsinfo_modes, mode:trim()) end else @@ -145,7 +145,7 @@ function _make_vsinfo_archs() local vsinfo_archs = {} local archs = option.get("archs") if archs then - for _, arch in ipairs(archs:split(',')) do + for _, arch in ipairs(path.splitenv(archs)) do table.insert(vsinfo_archs, arch:trim()) end else diff --git a/xmake/plugins/project/xmake.lua b/xmake/plugins/project/xmake.lua index 023d3d87d..88d8a1ced 100644 --- a/xmake/plugins/project/xmake.lua +++ b/xmake/plugins/project/xmake.lua @@ -47,12 +47,10 @@ task("project") , " - vsxmake2010 ~ vsmake2019" } , {'m', "modes", "kv", nil, "Set the project modes." , " .e.g " - , " - xmake project -k makefile" - , " - xmake project -k compile_commands" - , " - xmake project -k vs2015 -m \"release,debug\"" } - , {'a', "archs", "kv", nil, "Set the project archs." + , " - xmake project -k vs2015 -m \"release" .. path.envsep() .. "debug\"" } + , {'a', "archs", "kv", nil, "Set the project archs." , " .e.g " - , " - xmake project -k vs2015 -a \"x86,x64\"" } + , " - xmake project -k vs2015 -a \"x86" .. path.envsep() .. "x64\"" } , {nil, "outputdir", "v", ".", "Set the output directory." } } } |
