diff options
Diffstat (limited to 'xmake/plugins')
3 files changed, 9 insertions, 0 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 97fa6eb76..1eb6bad19 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -392,6 +392,12 @@ function main(outputdir, vsinfo) -- save deps _target.deps = table.unique(table.join(_target.deps or {}, table.keys(target:deps()), nil)) + + -- save group id + local group_path = target:get("group") + if group_path then + _target.group_id = hash.uuid4(path.filename(group_path)) + end end end end diff --git a/xmake/plugins/project/vsxmake/vsproj/templates/sln/TargetGroupConfig(target) b/xmake/plugins/project/vsxmake/vsproj/templates/sln/TargetGroupConfig(target) new file mode 100644 index 000000000..278eab9d8 --- /dev/null +++ b/xmake/plugins/project/vsxmake/vsproj/templates/sln/TargetGroupConfig(target) @@ -0,0 +1 @@ + {#target_id#} = {#group_id#} diff --git a/xmake/plugins/project/vsxmake/vsproj/templates/sln/vsxmake.sln b/xmake/plugins/project/vsxmake/vsproj/templates/sln/vsxmake.sln index 6dddb0e7e..13678b34b 100644 --- a/xmake/plugins/project/vsxmake/vsproj/templates/sln/vsxmake.sln +++ b/xmake/plugins/project/vsxmake/vsproj/templates/sln/vsxmake.sln @@ -27,6 +27,8 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution +#Import(TargetGroupConfig)# EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {#solution_id#} EndGlobalSection |
