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

Method WriteXCodeXCScheme

Source/cmXCodeScheme.cxx:61–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void cmXCodeScheme::WriteXCodeXCScheme(std::ostream& fout,
62 std::string const& container)
63{
64 cmXMLWriter xout(fout);
65 xout.SetIndentationElement(std::string(3, ' '));
66 xout.StartDocument();
67
68 xout.StartElement("Scheme");
69 xout.BreakAttributes();
70 xout.Attribute("LastUpgradeVersion", WriteVersionString());
71 xout.Attribute("version", "1.3");
72
73 cmValue propDftCfg =
74 Target->GetTarget()->GetProperty("XCODE_SCHEME_LAUNCH_CONFIGURATION");
75 std::string launchConfiguration =
76 !propDftCfg.IsEmpty() ? *propDftCfg : "Debug";
77
78 cmValue propTstCfg =
79 Target->GetTarget()->GetProperty("XCODE_SCHEME_TEST_CONFIGURATION");
80 std::string testConfiguration =
81 !propTstCfg.IsEmpty() ? *propTstCfg : "Debug";
82
83 WriteBuildAction(xout, container);
84 WriteTestAction(xout, FindConfiguration(testConfiguration), container);
85 WriteLaunchAction(xout, FindConfiguration(launchConfiguration), container);
86 WriteProfileAction(xout, FindConfiguration("Release"), container);
87 WriteAnalyzeAction(xout, FindConfiguration("Debug"));
88 WriteArchiveAction(xout, FindConfiguration("Release"));
89
90 xout.EndElement();
91}
92
93void cmXCodeScheme::WriteBuildAction(cmXMLWriter& xout,
94 std::string const& container)

Callers

nothing calls this directly

Calls 9

SetIndentationElementMethod · 0.80
StartDocumentMethod · 0.80
BreakAttributesMethod · 0.80
AttributeMethod · 0.80
StartElementMethod · 0.45
GetPropertyMethod · 0.45
GetTargetMethod · 0.45
IsEmptyMethod · 0.45
EndElementMethod · 0.45

Tested by

no test coverage detected