| 300 | } |
| 301 | |
| 302 | bool cmCPackInnoSetupGenerator::ProcessFiles() |
| 303 | { |
| 304 | std::map<std::string, std::string> customFileInstructions; |
| 305 | if (cmValue v = |
| 306 | GetOptionIfSet("CPACK_INNOSETUP_CUSTOM_INSTALL_INSTRUCTIONS")) { |
| 307 | cmList const instructions(*v); |
| 308 | if (instructions.size() % 2 != 0) { |
| 309 | cmCPackLogger(cmCPackLog::LOG_ERROR, |
| 310 | "CPACK_INNOSETUP_CUSTOM_INSTALL_INSTRUCTIONS should " |
| 311 | "contain pairs of <path> and <instruction>" |
| 312 | << std::endl); |
| 313 | return false; |
| 314 | } |
| 315 | |
| 316 | for (auto it = instructions.begin(); it != instructions.end(); ++it) { |
| 317 | std::string const& key = |
| 318 | QuotePath(cmSystemTools::CollapseFullPath(*it, toplevel)); |
| 319 | customFileInstructions[key] = *(++it); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | std::string const& iconsPrefix = |
| 324 | toplevelProgramFolder ? "{autoprograms}\\" : "{group}\\"; |
| 325 | |
| 326 | std::map<std::string, std::string> icons; |
| 327 | if (cmValue v = GetOptionIfSet("CPACK_PACKAGE_EXECUTABLES")) { |
| 328 | cmList const executables(*v); |
| 329 | if (executables.size() % 2 != 0) { |
| 330 | cmCPackLogger(cmCPackLog::LOG_ERROR, |
| 331 | "CPACK_PACKAGE_EXECUTABLES should should contain pairs of " |
| 332 | "<executable> and <text label>" |
| 333 | << std::endl); |
| 334 | return false; |
| 335 | } |
| 336 | |
| 337 | for (auto it = executables.begin(); it != executables.end(); ++it) { |
| 338 | std::string const& key = *it; |
| 339 | icons[key] = *(++it); |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | std::vector<std::string> desktopIcons; |
| 344 | if (cmValue v = GetOptionIfSet("CPACK_CREATE_DESKTOP_LINKS")) { |
| 345 | cmExpandList(*v, desktopIcons); |
| 346 | } |
| 347 | |
| 348 | std::vector<std::string> runExecutables; |
| 349 | if (cmValue v = GetOptionIfSet("CPACK_INNOSETUP_RUN_EXECUTABLES")) { |
| 350 | cmExpandList(*v, runExecutables); |
| 351 | } |
| 352 | |
| 353 | for (std::string const& i : files) { |
| 354 | cmCPackInnoSetupKeyValuePairs params; |
| 355 | |
| 356 | std::string toplevelDirectory; |
| 357 | std::string outputDir; |
| 358 | cmCPackComponent* component = nullptr; |
| 359 | std::string componentParam; |
nothing calls this directly
no test coverage detected