Manages a builder's toolchain components as its BuilderDefinition describes them: detects them, downloads and installs them, and checks for updates.
More...
#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/build/ToolchainComponentManager.h>
Manages a builder's toolchain components as its BuilderDefinition describes them: detects them, downloads and installs them, and checks for updates.
Each ITargetBuilder owns one, initialised from its builder JSON.
◆ ToolchainComponentManager()
| DekiEditor::ToolchainComponentManager::ToolchainComponentManager |
( |
| ) |
|
◆ ~ToolchainComponentManager()
| DekiEditor::ToolchainComponentManager::~ToolchainComponentManager |
( |
| ) |
|
◆ Initialize()
| void DekiEditor::ToolchainComponentManager::Initialize |
( |
const BuilderDefinition & | def | ) |
|
◆ IsInitialized()
| bool DekiEditor::ToolchainComponentManager::IsInitialized |
( |
| ) |
const |
|
inline |
True once initialised with a valid definition.
◆ GetDefinition()
| const BuilderDefinition & DekiEditor::ToolchainComponentManager::GetDefinition |
( |
| ) |
const |
|
inline |
◆ GetComponents()
| std::vector< ToolchainComponent > DekiEditor::ToolchainComponentManager::GetComponents |
( |
| ) |
const |
Runs the detection rules and lists the components for the UI.
◆ InstallComponent()
| void DekiEditor::ToolchainComponentManager::InstallComponent |
( |
const std::string & | componentId, |
|
|
BuildProgressCallback | cb = nullptr ) |
Downloads and extracts a component, asynchronously.
◆ SetupComponent()
| void DekiEditor::ToolchainComponentManager::SetupComponent |
( |
const std::string & | componentId, |
|
|
BuildProgressCallback | cb = nullptr ) |
Runs the postInstall script of an installed component, asynchronously.
◆ CheckForUpdates()
| void DekiEditor::ToolchainComponentManager::CheckForUpdates |
( |
std::function< void()> | onComplete = nullptr | ) |
|
Checks the GitHub API for newer versions, asynchronously.
◆ IsBusy()
| bool DekiEditor::ToolchainComponentManager::IsBusy |
( |
| ) |
const |
|
inline |
Whether an operation is in progress.
◆ InstalledPathEntries()
| std::vector< std::string > DekiEditor::ToolchainComponentManager::InstalledPathEntries |
( |
| ) |
const |
The PATH entries (ComponentDef::pathEntries) of every installed component, absolute and in definition order, for this platform.
The documentation for this class was generated from the following file: