diff options
| author | ruki <[email protected]> | 2020-12-29 23:08:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-29 23:08:41 +0800 |
| commit | 729564c443fe59ece8fa481db2693f4f1b4c1498 (patch) | |
| tree | 4d285a175bc249ce48503633e5acdd9bc7c7f71b | |
| parent | a9307b7687e1b29dfdecd1db0c86ae0d4c5ba501 (diff) | |
impl partial group for vsxmake
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 |
