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

Method ProcessFiles

Source/CPack/cmCPackInnoSetupGenerator.cxx:302–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302bool 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;

Callers

nothing calls this directly

Calls 15

cmExpandListFunction · 0.85
cmStripSuffixIfExistsFunction · 0.85
to_stringFunction · 0.85
cmRemoveQuotesFunction · 0.85
push_backMethod · 0.80
cmStrCatFunction · 0.50
findFunction · 0.50
FileExistsFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected