Alien::Base2 - Intermediate base class for Aliens
version 0.04
package Alien::MyLib; use strict; use warnings; use base qw( Alien::Base2 ); 1;
This is an experimental subclass of Alien::Base for use with Alien::Build. The intention is for this class to eventually go away, and thus only of use for Alien developers working on the bleeding edge. If you want to use some of the advanced features of Alien::Build please make sure you hang out on the #native IRC channel for Alien developers.
#native
my $dir = Alien::Base2->dist_dir;
The dist share directory for the Alien module. This is usually where files are installed when a share install is performed. It is also where the configuration files are stored under either a share or system install.
share
system
my $type = Alien::Base2->install_type;
Returns the install type that was used when your module was installed. Types include:
The library was provided by the operating system.
The library was not available when the module was installed, so it was built from source code. Either downloaded from the internet or bundled with the module.
my $version = Alien::Base2->version;
Returns the version of the library or tool.
my $cflags = Alien::Base2->cflags;
Returns the compiler flags used to compile against the library.
my $cflags = Alien::Base2->cflags_static;
Returns the static compiler flags used to compile against the library.
my $libs = Alien::Base2->libs;
Returns the linker flags used to link against the library.
my $libs = Alien::Base2->libs_static;
Returns the static linker flags used to link against the library.
my $value = Alien::Base2->config($key);
This is an interface to the legacy configuration used by Alien::Base in times of yore. Do not use it.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2017 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.
To install Alien::Build, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Build
CPAN shell
perl -MCPAN -e shell install Alien::Build
For more information on module installation, please visit the detailed CPAN module installation guide.