Alien-premake5
view release on metacpan or search on metacpan
lib/Alien/premake5.pm view on Meta::CPAN
package Alien::premake5;
# ABSTRACT: Build or find premake5
our $VERSION = '0.003';
use strict;
use warnings;
use base 'Alien::Base';
sub exe {
my ($class) = @_;
$class->runtime_prop->{command};
}
sub alien_helper {
return +{ premake5 => sub { Alien::premake5->exe } }
}
1;
__END__
=encoding utf8
=head1 NAME
Alien::premake5 - Build or find premake5
=head1 SYNOPSIS
use Alien::premake5;
use Env qw( @PATH );
unshift @ENV, Alien::premake5->bin_dir;
my $premake = Alien::premake5->exe;
system $premake, 'gmake';
=head1 DESCRIPTION
Premake is a build tool that allows a software project to be described with a
single common build script, which can then be used to generate project files
for building under a wide variety of build environments.
B<Alien::premake5> uses L<Alien::Build> to make it easier to use premake in a
Perl application or project.
This distribution will find an available version of C<premake5>, or attempt to
build one from source.
=head1 METHODS
=over 4
=item B<exe>
my $premake = Alien::premake5->exe;
Returns the name of the premake executable. Currently, this should be
C<premake5>.
When using the executable compiled by this distribution, you
will need to make sure that the directories returned by C<bin_dir> are added
to your C<PATH> environment variable. For more info, check the documentation
of L<Alien::Build>.
=back
=head1 HELPERS
=over 4
=item B<premake5>
The C<%{premake5}> string will be interpolated by Alien::Build into the name
of the premake5 executable (as returned by B<exe>);
=back
=head1 SEE ALSO
=over 4
=item * L<https://premake.github.io/>
( run in 0.438 second using v1.01-cache-2.11-cpan-8644d7adfcd )