diff options
| author | ruki <[email protected]> | 2020-12-29 23:14:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-29 23:14:06 +0800 |
| commit | a5cc662eb1b570e02512706019b7bb1082a2155f (patch) | |
| tree | 252dd91b4e0305372fecab2dec70452fc0696f65 /xmake/plugins/project/vsxmake/getinfo.lua | |
| parent | 729564c443fe59ece8fa481db2693f4f1b4c1498 (diff) | |
impl subgroup for vsxmake
Diffstat (limited to 'xmake/plugins/project/vsxmake/getinfo.lua')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 1eb6bad19..103ee5a56 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -271,10 +271,15 @@ function _make_vsinfo_groups() if not target:isphony() then local group_path = target:get("group") if group_path then - for _, group_name in ipairs(path.split(group_path)) do + local group_names = path.split(group_path) + for idx, group_name in ipairs(group_names) do local group = groups[group_name] or {} group.group = group_name group.group_id = hash.uuid4(group_name) + if idx > 1 then + local parent_group_name = group_names[idx - 1] + group.parent_group_id = hash.uuid4(parent_group_name) + end groups[group_name] = group end end |
