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

Function PlistSupportedPlatformVariantHelper

Source/cmXcFramework.cxx:72–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool PlistSupportedPlatformVariantHelper(
73 cmXcFrameworkPlistSupportedPlatformVariant& variant,
74 Json::Value const* value, cmJSONState* /*state*/)
75{
76 if (!value) {
77 return false;
78 }
79
80 if (!value->isString()) {
81 return false;
82 }
83
84 if (value->asString() == "maccatalyst"_s) {
85 variant = cmXcFrameworkPlistSupportedPlatformVariant::maccatalyst;
86 return true;
87 }
88 if (value->asString() == "simulator"_s) {
89 variant = cmXcFrameworkPlistSupportedPlatformVariant::simulator;
90 return true;
91 }
92
93 return false;
94}
95
96auto const PlistLibraryHelper =
97 cmJSONHelperBuilder::Object<cmXcFrameworkPlistLibrary>{}

Callers

nothing calls this directly

Calls 2

isStringMethod · 0.80
asStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…