mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-30 19:57:41 +00:00
VS: Add include_external_msproject GUIDs for more project types
Issue: #27524
This commit is contained in:
@@ -17,24 +17,36 @@
|
||||
namespace cm {
|
||||
namespace VS {
|
||||
|
||||
cm::string_view const Solution::Project::TypeIdAspNetCore =
|
||||
"8BB2217D-0F2D-49D1-97BC-3654ED321F3B"_s;
|
||||
cm::string_view const Solution::Project::TypeIdCSharp =
|
||||
"FAE04EC0-301F-11D3-BF4B-00C04F79EFBC"_s;
|
||||
cm::string_view const Solution::Project::TypeIdDatabase =
|
||||
"C8D11400-126E-41CD-887F-60BD40844F9E"_s;
|
||||
cm::string_view const Solution::Project::TypeIdDefault =
|
||||
"8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942"_s;
|
||||
cm::string_view const Solution::Project::TypeIdDotNetCore =
|
||||
"9A19103F-16F7-4668-BE54-9A1E7A4F7556"_s;
|
||||
cm::string_view const Solution::Project::TypeIdFSharp =
|
||||
"F2A71F9B-5D33-465A-A702-920D77279786"_s;
|
||||
cm::string_view const Solution::Project::TypeIdFortran =
|
||||
"6989167D-11E4-40FE-8C1A-2192A86A7E90"_s;
|
||||
cm::string_view const Solution::Project::TypeIdJScript =
|
||||
"262852C6-CD72-467D-83FE-5EEB1973A190"_s;
|
||||
cm::string_view const Solution::Project::TypeIdMisc =
|
||||
"66A2671D-8FB5-11D2-AA7E-00C04F688DDE"_s;
|
||||
cm::string_view const Solution::Project::TypeIdNodeJS =
|
||||
"9092AA53-FB77-4645-B42D-1CCCA6BD08BD"_s;
|
||||
cm::string_view const Solution::Project::TypeIdPython =
|
||||
"888888A0-9F3D-457C-B088-3A5042F75D52"_s;
|
||||
cm::string_view const Solution::Project::TypeIdSqlSrv =
|
||||
"00D1A9C2-B5F0-4AF3-8072-F6C62B433612"_s;
|
||||
cm::string_view const Solution::Project::TypeIdVDProj =
|
||||
"54435603-DBB4-11D2-8724-00A0C9A8B90C"_s;
|
||||
cm::string_view const Solution::Project::TypeIdVisualBasic =
|
||||
"F184B08F-C81C-45F6-A57F-5ABD9991F28F"_s;
|
||||
cm::string_view const Solution::Project::TypeIdWebSite =
|
||||
"E24C65DC-7377-472B-9ABA-BC803B73C61A"_s;
|
||||
cm::string_view const Solution::Project::TypeIdWinAppPkg =
|
||||
"C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5"_s;
|
||||
cm::string_view const Solution::Project::TypeIdWiX =
|
||||
|
||||
@@ -70,15 +70,21 @@ struct Solution final
|
||||
std::vector<Project const*> BuildDependencies;
|
||||
|
||||
// Project type GUIDs used during creation.
|
||||
static cm::string_view const TypeIdAspNetCore;
|
||||
static cm::string_view const TypeIdCSharp;
|
||||
static cm::string_view const TypeIdDatabase;
|
||||
static cm::string_view const TypeIdDefault;
|
||||
static cm::string_view const TypeIdDotNetCore;
|
||||
static cm::string_view const TypeIdFSharp;
|
||||
static cm::string_view const TypeIdFortran;
|
||||
static cm::string_view const TypeIdJScript;
|
||||
static cm::string_view const TypeIdMisc;
|
||||
static cm::string_view const TypeIdNodeJS;
|
||||
static cm::string_view const TypeIdPython;
|
||||
static cm::string_view const TypeIdSqlSrv;
|
||||
static cm::string_view const TypeIdVDProj;
|
||||
static cm::string_view const TypeIdVisualBasic;
|
||||
static cm::string_view const TypeIdWebSite;
|
||||
static cm::string_view const TypeIdWinAppPkg;
|
||||
static cm::string_view const TypeIdWiX;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
check_project(ProjType AspNetCore "" "8BB2217D-0F2D-49D1-97BC-3654ED321F3B" "" "")
|
||||
check_project(ProjType DotNetCore "" "9A19103F-16F7-4668-BE54-9A1E7A4F7556" "" "")
|
||||
check_project(ProjType Misc "" "66A2671D-8FB5-11D2-AA7E-00C04F688DDE" "" "")
|
||||
check_project(ProjType SqlSrv "" "00D1A9C2-B5F0-4AF3-8072-F6C62B433612" "" "")
|
||||
check_project(ProjType JScript "" "262852C6-CD72-467D-83FE-5EEB1973A190" "" "")
|
||||
check_project(ProjType WebSite "" "E24C65DC-7377-472B-9ABA-BC803B73C61A" "" "")
|
||||
@@ -0,0 +1,43 @@
|
||||
RunCMake_check_slnx("${RunCMake_TEST_BINARY_DIR}/ProjType.slnx" [[
|
||||
^<\?xml version="1\.0" encoding="UTF-8"\?>
|
||||
<Solution>
|
||||
<Configurations>
|
||||
<BuildType Name="Debug"/>
|
||||
<BuildType Name="Release"/>
|
||||
<BuildType Name="MinSizeRel"/>
|
||||
<BuildType Name="RelWithDebInfo"/>
|
||||
<Platform Name="[^"]+"/>
|
||||
</Configurations>
|
||||
<Project Path="ALL_BUILD\.vcxproj" Type="8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942" Id="[0-9a-f-]+" DefaultStartup="true">
|
||||
<BuildDependency Project="AspNetCore\.project"/>
|
||||
<BuildDependency Project="DotNetCore\.project"/>
|
||||
<BuildDependency Project="JScript\.project"/>
|
||||
<BuildDependency Project="Misc\.project"/>
|
||||
<BuildDependency Project="SqlSrv\.project"/>
|
||||
<BuildDependency Project="WebSite\.project"/>
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
<Build Solution="Debug\|\*" Project="false"/>
|
||||
<Build Solution="Release\|\*" Project="false"/>
|
||||
<Build Solution="MinSizeRel\|\*" Project="false"/>
|
||||
<Build Solution="RelWithDebInfo\|\*" Project="false"/>
|
||||
</Project>
|
||||
<Project Path="AspNetCore.project" Type="8bb2217d-0f2d-49d1-97bc-3654ed321f3b" Id="[0-9a-f-]+">
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
</Project>
|
||||
<Project Path="DotNetCore.project" Type="9a19103f-16f7-4668-be54-9a1e7a4f7556" Id="[0-9a-f-]+">
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
</Project>
|
||||
<Project Path="JScript.project" Type="262852c6-cd72-467d-83fe-5eeb1973a190" Id="[0-9a-f-]+">
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
</Project>
|
||||
<Project Path="Misc.project" Type="66a2671d-8fb5-11d2-aa7e-00c04f688dde" Id="[0-9a-f-]+">
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
</Project>
|
||||
<Project Path="SqlSrv.project" Type="00d1a9c2-b5f0-4af3-8072-f6c62b433612" Id="[0-9a-f-]+">
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
</Project>
|
||||
<Project Path="WebSite.project" Type="e24c65dc-7377-472b-9aba-bc803b73c61a" Id="[0-9a-f-]+">
|
||||
<BuildDependency Project="ZERO_CHECK\.vcxproj"/>
|
||||
</Project>
|
||||
<Project Path="ZERO_CHECK\.vcxproj" Type="8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942" Id="[0-9a-f-]+"/>
|
||||
</Solution>$]])
|
||||
@@ -0,0 +1 @@
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/ProjType-check-${sln_ext}.cmake)
|
||||
6
Tests/RunCMake/include_external_msproject/ProjType.cmake
Normal file
6
Tests/RunCMake/include_external_msproject/ProjType.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
include_external_msproject(AspNetCore AspNetCore.project TYPE 8BB2217D-0F2D-49D1-97BC-3654ED321F3B)
|
||||
include_external_msproject(DotNetCore DotNetCore.project TYPE 9A19103F-16F7-4668-BE54-9A1E7A4F7556)
|
||||
include_external_msproject(Misc Misc.project TYPE 66A2671D-8FB5-11D2-AA7E-00C04F688DDE)
|
||||
include_external_msproject(SqlSrv SqlSrv.project TYPE 00D1A9C2-B5F0-4AF3-8072-F6C62B433612)
|
||||
include_external_msproject(JScript JScript.project TYPE 262852C6-CD72-467D-83FE-5EEB1973A190)
|
||||
include_external_msproject(WebSite WebSite.project TYPE E24C65DC-7377-472B-9ABA-BC803B73C61A)
|
||||
@@ -9,6 +9,8 @@ else()
|
||||
endif()
|
||||
|
||||
run_cmake(AutoType)
|
||||
run_cmake(ProjType)
|
||||
|
||||
run_cmake(CustomGuid)
|
||||
run_cmake(CustomTypePlatform)
|
||||
run_cmake(CustomGuidTypePlatform)
|
||||
|
||||
Reference in New Issue
Block a user