NAME
Alien::Base2 - Intermediate base class for Aliens
VERSION
version 0.04
SYNOPSIS
package Alien::MyLib;
use strict;
use warnings;
use base qw( Alien::Base2 );
1;
DESCRIPTION
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.
METHODS
dist_dir
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.
install_type
my $type = Alien::Base2->install_type;
Returns the install type that was used when your module was installed. Types include:
- system
-
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.
version
my $version = Alien::Base2->version;
Returns the version of the library or tool.
cflags
my $cflags = Alien::Base2->cflags;
Returns the compiler flags used to compile against the library.
cflags_static
my $cflags = Alien::Base2->cflags_static;
Returns the static compiler flags used to compile against the library.
libs
my $libs = Alien::Base2->libs;
Returns the linker flags used to link against the library.
libs_static
my $libs = Alien::Base2->libs_static;
Returns the static linker flags used to link against the library.
config
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.
SEE ALSO
AUTHOR
Graham Ollis <plicease@cpan.org>
COPYRIGHT AND LICENSE
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.