| 1697 | } |
| 1698 | |
| 1699 | void cmQtAutoGenInitializer::AddCMakeProcessToCommandLines( |
| 1700 | std::string const& infoFile, std::string const& processName, |
| 1701 | cmCustomCommandLines& commandLines) |
| 1702 | { |
| 1703 | std::vector<std::string> autogenConfigs; |
| 1704 | this->GlobalGen->GetQtAutoGenConfigs(autogenConfigs); |
| 1705 | if (this->CrossConfig && this->UseBetterGraph) { |
| 1706 | commandLines.push_back(cmMakeCommandLine( |
| 1707 | { cmSystemTools::GetCMakeCommand(), "-E", processName, infoFile, |
| 1708 | "$<CONFIG>", "$<COMMAND_CONFIG:$<CONFIG>>" })); |
| 1709 | } else if ((this->MultiConfig && this->GlobalGen->IsXcode()) || |
| 1710 | this->CrossConfig) { |
| 1711 | auto const& configs = |
| 1712 | processName == "cmake_autorcc" ? this->ConfigsList : autogenConfigs; |
| 1713 | for (std::string const& config : configs) { |
| 1714 | commandLines.push_back( |
| 1715 | cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E", |
| 1716 | processName, infoFile, config })); |
| 1717 | } |
| 1718 | } else { |
| 1719 | std::string autoInfoFileConfig; |
| 1720 | if (this->MultiConfig) { |
| 1721 | autoInfoFileConfig = "$<CONFIG>"; |
| 1722 | } else { |
| 1723 | autoInfoFileConfig = autogenConfigs[0]; |
| 1724 | } |
| 1725 | commandLines.push_back( |
| 1726 | cmMakeCommandLine({ cmSystemTools::GetCMakeCommand(), "-E", processName, |
| 1727 | infoFile, autoInfoFileConfig })); |
| 1728 | } |
| 1729 | } |
| 1730 | |
| 1731 | bool cmQtAutoGenInitializer::InitRccTargets() |
| 1732 | { |
nothing calls this directly
no test coverage detected