2using System.Collections.Generic;
4using System.Threading.Tasks;
7using Nuke.Common.Tooling;
8using Nuke.Common.Tools.Git;
28 internal static void Setup()
31 GitTasks.Git($
"clone --recurse-submodules https://github.com/microsoft/vcpkg.git {VcpkgPathInProject}");
33 var bootstrapPath = EnvironmentInfo.Platform == PlatformFamily.Windows
37 ToolResolver.GetTool(bootstrapPath)(
"-disableMetrics");
45 var vcpkgPath = EnvironmentInfo.Platform == PlatformFamily.Windows
49 if (vcpkgPath.FileExists())
50 return ToolResolver.GetTool(vcpkgPath);
54 return ToolResolver.GetTool(vcpkgPath);
Wrapper class for VCPKG a C++ package manager by Microsoft.
static ValueOrError< Tool > EnsureVcpkg
Get an instance of VCPKG or an error if setup has failed.
static ? AbsolutePath VcpkgPathOverride
Set this property if your project already has an instance of VCPKG placed somewhere inside the projec...
static AbsolutePath VcpkgPathInProject
Path to a place where a local VCPKG instance can be found / should be set up.
static Tool Vcpkg
Get an instance of VCPKG. It throws an exception if setup has failed.