MCPcopy Create free account
hub / github.com/Kitware/CMake / WritePlatformExtensions

Method WritePlatformExtensions

Source/cmVisualStudio10TargetGenerator.cxx:5172–5190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5170}
5171
5172void cmVisualStudio10TargetGenerator::WritePlatformExtensions(Elem& e1)
5173{
5174 // This only applies to Windows 10 apps
5175 if (this->GlobalGenerator->TargetsWindowsStore() &&
5176 cmHasLiteralPrefix(this->GlobalGenerator->GetSystemVersion(), "10.0")) {
5177 cmValue desktopExtensionsVersion =
5178 this->GeneratorTarget->GetProperty("VS_DESKTOP_EXTENSIONS_VERSION");
5179 if (desktopExtensionsVersion) {
5180 this->WriteSinglePlatformExtension(e1, "WindowsDesktop",
5181 *desktopExtensionsVersion);
5182 }
5183 cmValue mobileExtensionsVersion =
5184 this->GeneratorTarget->GetProperty("VS_MOBILE_EXTENSIONS_VERSION");
5185 if (mobileExtensionsVersion) {
5186 this->WriteSinglePlatformExtension(e1, "WindowsMobile",
5187 *mobileExtensionsVersion);
5188 }
5189 }
5190}
5191
5192void cmVisualStudio10TargetGenerator::WriteSinglePlatformExtension(
5193 Elem& e1, std::string const& extension, std::string const& version)

Callers 1

Calls 4

cmHasLiteralPrefixFunction · 0.85
TargetsWindowsStoreMethod · 0.80
GetPropertyMethod · 0.45

Tested by

no test coverage detected