KiCad PCB EDA Suite
|
#include <jobs_runner.h>
Public Member Functions | |
JOBS_RUNNER (KIWAY *aKiway, JOBSET *aJobsFile, PROJECT *aProject, REPORTER &aReporter, JOBS_PROGRESS_REPORTER *aProgressReporter) | |
bool | RunJobsAllDestinations (bool aBail=false) |
bool | RunJobsForDestination (JOBSET_DESTINATION *aDestination, bool aBail=false) |
Private Member Functions | |
int | runSpecialExecute (const JOBSET_JOB *aJob, PROJECT *aProject) |
int | runSpecialCopyFiles (const JOBSET_JOB *aJob, PROJECT *aProject) |
Private Attributes | |
KIWAY * | m_kiway |
JOBSET * | m_jobsFile |
REPORTER & | m_reporter |
JOBS_PROGRESS_REPORTER * | m_progressReporter |
PROJECT * | m_project |
Definition at line 60 of file jobs_runner.h.
JOBS_RUNNER::JOBS_RUNNER | ( | KIWAY * | aKiway, |
JOBSET * | aJobsFile, | ||
PROJECT * | aProject, | ||
REPORTER & | aReporter, | ||
JOBS_PROGRESS_REPORTER * | aProgressReporter | ||
) |
Definition at line 37 of file jobs_runner.cpp.
bool JOBS_RUNNER::RunJobsAllDestinations | ( | bool | aBail = false | ) |
Definition at line 48 of file jobs_runner.cpp.
References JOBSET::GetDestinations(), m_jobsFile, and RunJobsForDestination().
Referenced by CLI::JOBSET_RUN_COMMAND::doPerform(), and PANEL_JOBSET::OnGenerateAllDestinationsClick().
bool JOBS_RUNNER::RunJobsForDestination | ( | JOBSET_DESTINATION * | aDestination, |
bool | aBail = false |
||
) |
Definition at line 173 of file jobs_runner.cpp.
References _, JOBS_PROGRESS_REPORTER::AdvanceJob(), CLI::EXIT_CODES::ERR_RC_VIOLATIONS, NULL_REPORTER::GetInstance(), JOBSET::GetJobsForDestination(), JOB_REGISTRY::GetKifaceType(), PROGRESS_REPORTER_BASE::KeepRefreshing(), KIWAY::KIWAY_FACE_COUNT, JOBSET_DESTINATION::m_id, m_jobsFile, m_kiway, JOBSET_DESTINATION::m_lastRunReporters, JOBSET_DESTINATION::m_lastRunSuccess, JOBSET_DESTINATION::m_lastRunSuccessMap, JOBSET_DESTINATION::m_outputHandler, m_progressReporter, m_project, m_reporter, name, OUTPUT_TMP_PATH_VAR_NAME, KIWAY::ProcessJob(), REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, runSpecialCopyFiles(), runSpecialExecute(), and CLI::EXIT_CODES::SUCCESS.
Referenced by CLI::JOBSET_RUN_COMMAND::doPerform(), PANEL_DESTINATION::OnGenerate(), and RunJobsAllDestinations().
|
private |
Definition at line 99 of file jobs_runner.cpp.
References CopyFilesOrDirectory(), CLI::EXIT_CODES::ERR_ARGS, CLI::EXIT_CODES::ERR_UNKNOWN, ExpandEnvVarSubstitutions(), JOBSET::GetDestinations(), JOB::GetFullOutputPath(), PROJECT::GetProjectPath(), JOB_SPECIAL_COPYFILES::m_dest, JOB_SPECIAL_COPYFILES::m_generateErrorOnNoCopy, JOBSET_JOB::m_job, m_jobsFile, JOB_SPECIAL_COPYFILES::m_source, and CLI::EXIT_CODES::OK.
Referenced by RunJobsForDestination().
|
private |
Definition at line 59 of file jobs_runner.cpp.
References CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT, ExpandEnvVarSubstitutions(), JOB::GetConfiguredOutputPath(), JOB::GetFullOutputPath(), JOB_SPECIAL_EXECUTE::m_command, JOBSET_JOB::m_id, JOB_SPECIAL_EXECUTE::m_ignoreExitcode, JOBSET_JOB::m_job, m_project, JOB_SPECIAL_EXECUTE::m_recordOutput, CLI::EXIT_CODES::OK, process, and JOB::SetConfiguredOutputPath().
Referenced by RunJobsForDestination().
|
private |
Definition at line 75 of file jobs_runner.h.
Referenced by RunJobsAllDestinations(), RunJobsForDestination(), and runSpecialCopyFiles().
|
private |
Definition at line 74 of file jobs_runner.h.
Referenced by RunJobsForDestination().
|
private |
Definition at line 77 of file jobs_runner.h.
Referenced by RunJobsForDestination().
|
private |
Definition at line 78 of file jobs_runner.h.
Referenced by RunJobsForDestination(), and runSpecialExecute().
|
private |
Definition at line 76 of file jobs_runner.h.
Referenced by RunJobsForDestination().