NAME

Win32::Vcpkg::List - Interface to Microsoft Vcpkg List of Packages

VERSION

version 0.04

SYNOPSIS

use Win32::Vcpkg::List;

DESCRIPTION

This module provides an interface to a list of Vcpkg package. Vcpkg is a Visual C++ library package manager, and as such is useful in building XS and FFI extensions for Visual C++ builds of Perl.

CONSTRUCTOR

new

my $list = Win32::Vcpkg::List->new(%options);

Creates a list of packages instance.

root

The Vcpkg root. By default this is what root from Win32::Vcpkg returns.

ATTRIBUTES

root

my $root = $list->root;

The Vcpkg root. This is an Path::Tiny object.

triplets

my @triplets = $list->triplets;

Return a list of the architecture triplets present in the Vcpkg install directory.

METHODS

my $package = $list->search($name, %options);

Search for a package with the given name. The package returned will be an instance of Win32::Vcpkg::Package. If no package is found then undef is returned. Options:

triplet

The architecture triplet to search under. The Vcpkg triplet. By default this is what perl_triplet from Win32::Vcpkg returns.

include

Any header subdirectory names.

debug

If set to true, the $package object will use debug libraries.

SEE ALSO

Win32::Vcpkg
Win32::Vcpkg::Package

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.