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

Method WriteXamlFilesGroup

Source/cmVisualStudio10TargetGenerator.cxx:1344–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344void cmVisualStudio10TargetGenerator::WriteXamlFilesGroup(Elem& e0)
1345{
1346 if (!this->XamlObjs.empty()) {
1347 Elem e1(e0, "ItemGroup");
1348 for (cmSourceFile const* oi : this->XamlObjs) {
1349 std::string obj = oi->GetFullPath();
1350 std::string xamlType;
1351 cmValue xamlTypeProperty = oi->GetProperty("VS_XAML_TYPE");
1352 if (xamlTypeProperty) {
1353 xamlType = *xamlTypeProperty;
1354 } else {
1355 xamlType = "Page";
1356 }
1357
1358 Elem e2(e1, xamlType);
1359 this->WriteSource(e2, oi);
1360 e2.SetHasElements();
1361 e2.Element("SubType", "Designer");
1362 }
1363 }
1364}
1365
1366void cmVisualStudio10TargetGenerator::WriteTargetSpecificReferences(Elem& e0)
1367{

Callers 2

Calls 6

WriteSourceMethod · 0.95
SetHasElementsMethod · 0.80
emptyMethod · 0.45
GetFullPathMethod · 0.45
GetPropertyMethod · 0.45
ElementMethod · 0.45

Tested by

no test coverage detected