Alien-ROOT
view release on metacpan or search on metacpan
lib/Alien/ROOT.pm view on Meta::CPAN
my $cflags = $aroot->cflags;
=cut
sub cflags {
my $self = shift;
Carp::croak('You must call this method as an object') unless ref($self);
return $self->_config_get_one_line_param('cflags', qw(--cflags --auxcflags));
}
*compiler_flags = *cflags;
=head2 $aroot->features
This method returns a string of ROOT features that were enabled when ROOT
was compiled.
Example code:
my $features = $aroot->features;
if ($features !~ /\bexplicitlink\b/) {
warn "ROOT was built without the --explicitlink option";
}
=cut
sub features {
my $self = shift;
Carp::croak('You must call this method as an object') unless ref($self);
return $self->_config_get_one_line_param('features', qw(--features));
}
=head2 $aroot->bindir
This method returns the path to the executable directory of ROOT.
Example code:
my $dir = $aroot->bindir;
system(File::Spec->catfile($dir, 'root'));
=cut
sub bindir {
my $self = shift;
Carp::croak('You must call this method as an object') unless ref($self);
return $self->_config_get_one_line_param('bindir', qw(--bindir));
}
=head2 $aroot->libdir
This method returns the path to the library (F<lib/>) directory of ROOT.
Example code:
my $dir = $aroot->libdir;
=cut
sub libdir {
my $self = shift;
Carp::croak('You must call this method as an object') unless ref($self);
return $self->_config_get_one_line_param('libdir', qw(--libdir));
}
=head2 $aroot->incdir
This method returns the path to the include directory of ROOT.
Example code:
my $dir = $aroot->incdir;
=cut
sub incdir {
my $self = shift;
Carp::croak('You must call this method as an object') unless ref($self);
return $self->_config_get_one_line_param('incdir', qw(--incdir));
}
=head2 $aroot->etcdir
This method returns the path to the 'etc' directory of ROOT.
Example code:
my $dir = $aroot->etcdir;
=cut
sub etcdir {
my $self = shift;
Carp::croak('You must call this method as an object') unless ref($self);
return $self->_config_get_one_line_param('etcdir', qw(--etcdir));
}
=head2 $aroot->private_root
This method returns true if the copy of ROOT that is being used
was installed by C<Alien::ROOT> and is considered private.
Example code:
( run in 1.379 second using v1.01-cache-2.11-cpan-df04353d9ac )