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

Method WriteAndroidConfigurationValues

Source/cmVisualStudio10TargetGenerator.cxx:1704–1724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1702}
1703
1704void cmVisualStudio10TargetGenerator::WriteAndroidConfigurationValues(
1705 Elem& e1, std::string const&)
1706{
1707 cmGlobalVisualStudio10Generator* gg = this->GlobalGenerator;
1708 if (cmValue projectToolsetOverride =
1709 this->GeneratorTarget->GetProperty("VS_PLATFORM_TOOLSET")) {
1710 e1.Element("PlatformToolset", *projectToolsetOverride);
1711 } else if (char const* toolset = gg->GetPlatformToolset()) {
1712 e1.Element("PlatformToolset", toolset);
1713 }
1714 if (cmValue stlType =
1715 this->GeneratorTarget->GetProperty("ANDROID_STL_TYPE")) {
1716 if (*stlType != "none"_s) {
1717 e1.Element("UseOfStl", *stlType);
1718 }
1719 }
1720 std::string const& apiLevel = gg->GetSystemVersion();
1721 if (!apiLevel.empty()) {
1722 e1.Element("AndroidAPILevel", cmStrCat("android-", apiLevel));
1723 }
1724}
1725
1726void cmVisualStudio10TargetGenerator::WriteCustomCommands(Elem& e0)
1727{

Callers 1

Calls 5

GetPlatformToolsetMethod · 0.80
cmStrCatFunction · 0.70
GetPropertyMethod · 0.45
ElementMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected