Nuke.Cola
Loading...
Searching...
No Matches
Nuke.Cola.Tooling.XRepoTasks Class Reference

XRepo is a meta package manager for C/C++ built on top of XMake. More...

Static Public Member Functions

static Tool Install (string package, string options="", string extraArgs="")
 Install a package using xrepo. Using this function also ensures setting up conan or VCPKG if they're referenced in the package specification.
 
static Tool Info (string package, string options="", string extraArgs="")
 Fetch a package info installed via xrepo. Using this function also ensures setting up conan or VCPKG if they're referenced in the package specification.
 
static XRepoItem ParseXRepoInfo (this IEnumerable< Output > output)
 Parse the Tool output of XRepoTasks.Info into structured data.
 

Properties

static ValueOrError< Tool > EnsureXRepo [get]
 Get XRepo or an error if downloading it has failed.
 
static Tool XRepo [get]
 Get XRepo. It throws an exception if downloading it has failed.
 

Static Private Member Functions

static void EnsureSupportedPackageManagers (ref Tool xrepo, string package)
 

Detailed Description

XRepo is a meta package manager for C/C++ built on top of XMake.

Definition at line 20 of file XRepoTasks.cs.

Member Function Documentation

◆ EnsureSupportedPackageManagers()

static void Nuke.Cola.Tooling.XRepoTasks.EnsureSupportedPackageManagers ( ref Tool xrepo,
string package )
staticprivate

Definition at line 33 of file XRepoTasks.cs.

◆ Info()

static Tool Nuke.Cola.Tooling.XRepoTasks.Info ( string package,
string options = "",
string extraArgs = "" )
static

Fetch a package info installed via xrepo. Using this function also ensures setting up conan or VCPKG if they're referenced in the package specification.

Parameters
packagepackage specification including third-party manager identifier (e.g.: conan::), version syntax (depending on the selected manager), and other extensions (e.g. vcpkg::boost[core])
See https://xmake.io/#/package/remote_package?id=install-third-party-packages See https://xrepo.xmake.io/#/?id=installation-package
optionsExtra options configuring the package. It should be comma separated key=value pairs. It is important to provide the same options here as provided in install to get accurate information from the package (like dependencies, linking methods, etc)
extraArgsExtra arguments provided through command line before package specification.
Returns

Definition at line 93 of file XRepoTasks.cs.

◆ Install()

static Tool Nuke.Cola.Tooling.XRepoTasks.Install ( string package,
string options = "",
string extraArgs = "" )
static

Install a package using xrepo. Using this function also ensures setting up conan or VCPKG if they're referenced in the package specification.

Parameters
packagepackage specification including third-party manager identifier (e.g.: conan::), version syntax (depending on the selected manager), and other extensions (e.g. vcpkg::boost[core])
See https://xmake.io/#/package/remote_package?id=install-third-party-packages See https://xrepo.xmake.io/#/?id=installation-package
optionsExtra options configuring the package. It should be comma separated key=value pairs.
extraArgsExtra arguments provided through command line before package specification.
Returns

Definition at line 66 of file XRepoTasks.cs.

◆ ParseXRepoInfo()

static XRepoItem Nuke.Cola.Tooling.XRepoTasks.ParseXRepoInfo ( this IEnumerable< Output > output)
static

Parse the Tool output of XRepoTasks.Info into structured data.

Property Documentation

◆ EnsureXRepo

ValueOrError<Tool> Nuke.Cola.Tooling.XRepoTasks.EnsureXRepo
staticget

Get XRepo or an error if downloading it has failed.

Definition at line 25 of file XRepoTasks.cs.

◆ XRepo

Tool Nuke.Cola.Tooling.XRepoTasks.XRepo
staticget

Get XRepo. It throws an exception if downloading it has failed.

Definition at line 31 of file XRepoTasks.cs.


The documentation for this class was generated from the following file: