Alien::Build::Plugin::Build::Premake5 - Premake5 build plugin for Alien::Build
use alienfile; plugin 'Build::Premake5';
This plugin provides tools to build projects that use premake5. In particular, it adds the %{premake5} helper, which can be used in alienfile recipes, and adds a default build stage with the following commands:
%{premake5}
'%{premake} ' . $action, '%{make}', '%{make} install',
Since premake5 requires gmake, loading this plugin will also load the Build::Make plugin with its make_type option set to "gmake".
make_type
With the exception of the action property, this plugin's options follow those of the premake5 client. For more information, consult the client's documentation.
premake5
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.
These flags can only be set to true or false. They will be ignored if false.
Treat warnings from project scripts as errors.
Forfeit SSH certification checks.
Generate extra debug text output.
Generate files for a different operating system. Valid values are "aix", "bsd", "haiku", "hurd", "linux", "macosx", "solaris", or "windows".
Choose a C/C++ compiler set. Valid values are "clang" or "gcc".
Choose a D compiler. Valid values are "dmd", "gdc", or "ldc".
Choose a .NET compiler set. Valid values are "msnet", "mono", or "pnet".
Read FILE as a premake5 script. The default is premake5.lua.
premake5.lua
Search for additional scripts on the given path.
Override default system script (premake5-system.lua).
premake5-system.lua
This method provides a mapping between the $^O Perl variable and the operating system labels used by premake5. The return values are the same as those in the list of valid values for the os option.
$^O
If the operating system is not supported, or is impossible to determine, the returned value will be the empty string.
The %{premake5} is defined by Alien::premake5 to be the executable of premake client. This plugin replaces that helper to include any options as they were passed to the plugin. It also defines a convenience %{premake} helper, with the same content.
%{premake}
Buy default, all options are turned off.
https://premake.github.io/
Contributions of any kind are most welcome!
The main repository for this distribution is on Github, which is where patches and bug reports are mainly tracked. Bug reports can also be sent through the CPAN RT system, or by mail directly to the developers at the addresses below, although these will not be as closely tracked.
José Joaquín Atria <jjatria@cpan.org>
Special thanks to Graham Ollis for his help in the preparation of this distribution.
This software is copyright (c) 2017 by José Joaquín Atria.
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::Plugin::Build::Premake5, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Build::Plugin::Build::Premake5
CPAN shell
perl -MCPAN -e shell install Alien::Build::Plugin::Build::Premake5
For more information on module installation, please visit the detailed CPAN module installation guide.