| 1445 | } |
| 1446 | } |
| 1447 | void cmGlobalFastbuildGenerator::WriteIDEProjects() |
| 1448 | { |
| 1449 | #if defined(_WIN32) |
| 1450 | std::string platformToolset; |
| 1451 | std::string const toolset = |
| 1452 | this->GetSafeGlobalSetting("MSVC_TOOLSET_VERSION"); |
| 1453 | if (!toolset.empty()) { |
| 1454 | platformToolset = cmStrCat('v', toolset); |
| 1455 | } |
| 1456 | #endif |
| 1457 | for (auto const& proj : IDEProjects) { |
| 1458 | (void)proj; |
| 1459 | // VS |
| 1460 | #if defined(_WIN32) |
| 1461 | auto const& VSProj = proj.second.first; |
| 1462 | WriteCommand("VCXProject", Quote(VSProj.Alias)); |
| 1463 | *this->BuildFileStream << "{\n"; |
| 1464 | WriteVariable("ProjectOutput", Quote(VSProj.ProjectOutput), 1); |
| 1465 | if (!platformToolset.empty()) { |
| 1466 | WriteVariable("PlatformToolset", Quote(platformToolset), 1); |
| 1467 | } |
| 1468 | WriteIDEProjectConfig(VSProj.ProjectConfigs); |
| 1469 | WriteVSBuildCommands(); |
| 1470 | WriteIDEProjectCommon(VSProj); |
| 1471 | *this->BuildFileStream << "}\n\n"; |
| 1472 | |
| 1473 | // XCode |
| 1474 | #elif defined(__APPLE__) |
| 1475 | auto const& XCodeProj = proj.second.second; |
| 1476 | WriteCommand("XCodeProject", Quote(XCodeProj.Alias), 0); |
| 1477 | *this->BuildFileStream << "{\n"; |
| 1478 | WriteVariable("ProjectOutput", Quote(XCodeProj.ProjectOutput), 1); |
| 1479 | WriteIDEProjectConfig(XCodeProj.ProjectConfigs); |
| 1480 | WriteXCodeBuildCommands(); |
| 1481 | WriteIDEProjectCommon(XCodeProj); |
| 1482 | *this->BuildFileStream << "}\n\n"; |
| 1483 | #endif |
| 1484 | } |
| 1485 | |
| 1486 | #if defined(_WIN32) |
| 1487 | this->WriteSolution(); |
| 1488 | #elif defined(__APPLE__) |
| 1489 | this->WriteXCodeTopLevelProject(); |
| 1490 | #endif |
| 1491 | } |
| 1492 | |
| 1493 | std::string cmGlobalFastbuildGenerator::GetIDEBuildArgs() const |
| 1494 | { |
no test coverage detected