Alien-Build-Plugin-Build-Premake5
view release on metacpan or search on metacpan
lib/Alien/Build/Plugin/Build/Premake5.pm view on Meta::CPAN
elsif (/darwin/i) { $os = 'macosx' }
elsif (/haiku/i) { $os = 'haiku' }
elsif (/hurd/i) { $os = 'hurd' }
elsif (/linux/i) { $os = 'linux' }
elsif (/mswin32/i) { $os = 'windows' }
elsif (/solaris/i) { $os = 'solaris' }
}
return $os;
}
1;
__END__
=encoding utf8
=head1 NAME
Alien::Build::Plugin::Build::Premake5 - Premake5 build plugin for Alien::Build
=head1 SYNOPSIS
use alienfile;
plugin 'Build::Premake5';
=head1 DESCRIPTION
This plugin provides tools to build projects that use premake5. In particular,
it adds the C<%{premake5}> helper, which can be used in L<alienfile> recipes,
and adds a default build stage with the following commands:
'%{premake} ' . $action,
'%{make}',
'%{make} install',
Since premake5 requires gmake, loading this plugin will also load the
L<Build::Make|https://metacpan.org/pod/Alien::Build::Plugin::Build::Make>
plugin with its C<make_type> option set to "gmake".
=head1 OPTIONS
With the exception of the B<action> property, this plugin's options follow
those of the C<premake5> client. For more information, consult the client's
documentation.
=over 4
=item B<action>
Specify the action for premake5. This defaults to "gmake", but is only really
used in the default build phase. If you are providing your own build phase,
then the value of this property will largely be ignored.
For a list of valid actions, check the premake5 client's documentation.
=back
=head2 Flags
These flags can only be set to true or false. They will be ignored if false.
=over 4
=item B<fatal>
Treat warnings from project scripts as errors.
=item B<insecure>
Forfeit SSH certification checks.
=item B<verbose>
Generate extra debug text output.
=back
=head2 Key / value pairs
=over 4
=item B<os>
Generate files for a different operating system. Valid values are
"aix", "bsd", "haiku", "hurd", "linux", "macosx", "solaris", or "windows".
=item B<cc>
Choose a C/C++ compiler set. Valid values are "clang" or "gcc".
=item B<dc>
Choose a D compiler. Valid values are "dmd", "gdc", or "ldc".
=item B<dotnet>
Choose a .NET compiler set. Valid values are "msnet", "mono", or "pnet".
=item B<file>
Read FILE as a premake5 script. The default is C<premake5.lua>.
=item B<scripts>
Search for additional scripts on the given path.
=item B<systemscript>
Override default system script (C<premake5-system.lua>).
=back
=head1 METHODS
=over 4
=item B<os_string>
This method provides a mapping between the C<$^O> Perl variable and the
operating system labels used by premake5. The return values are the same as
( run in 0.307 second using v1.01-cache-2.11-cpan-119454b85a5 )