| 59 | } |
| 60 | |
| 61 | void 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 | |
| 93 | void cmXCodeScheme::WriteBuildAction(cmXMLWriter& xout, |
| 94 | std::string const& container) |
nothing calls this directly
no test coverage detected