| 168 | } |
| 169 | |
| 170 | bool cmQtAutoRccT::Process() |
| 171 | { |
| 172 | if (!this->SettingsFileRead()) { |
| 173 | return false; |
| 174 | } |
| 175 | |
| 176 | // Test if the rcc output needs to be regenerated |
| 177 | bool generate = false; |
| 178 | if (!this->TestQrcRccFiles(generate)) { |
| 179 | return false; |
| 180 | } |
| 181 | if (!generate && !this->TestResources(generate)) { |
| 182 | return false; |
| 183 | } |
| 184 | // Generate on demand |
| 185 | if (generate) { |
| 186 | if (!this->GenerateRcc()) { |
| 187 | return false; |
| 188 | } |
| 189 | } else { |
| 190 | // Test if the info file is newer than the output file |
| 191 | if (!this->TestInfoFile()) { |
| 192 | return false; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | if (!this->GenerateWrapper()) { |
| 197 | return false; |
| 198 | } |
| 199 | |
| 200 | return this->SettingsFileWrite(); |
| 201 | } |
| 202 | |
| 203 | std::string cmQtAutoRccT::MultiConfigOutput() const |
| 204 | { |