Alien-Build-Plugin-Build-Premake5

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

# NAME

Alien::Build::Plugin::Build::Premake5 - Premake5 build plugin for Alien::Build

# SYNOPSIS

    use alienfile;
    plugin 'Build::Premake5';

# DESCRIPTION

This plugin provides tools to build projects that use premake5. In particular,
it adds the `%{premake5}` helper, which can be used in [alienfile](https://metacpan.org/pod/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
[Build::Make](https://metacpan.org/pod/Alien::Build::Plugin::Build::Make)
plugin with its `make_type` option set to "gmake".

# OPTIONS

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.

- **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.

## Flags

These flags can only be set to true or false. They will be ignored if false.

- **fatal**

    Treat warnings from project scripts as errors.

- **insecure**

    Forfeit SSH certification checks.

- **verbose**

    Generate extra debug text output.

## Key / value pairs

- **os**

    Generate files for a different operating system. Valid values are
    "aix", "bsd", "haiku", "hurd", "linux", "macosx", "solaris", or "windows".

- **cc**

    Choose a C/C++ compiler set. Valid values are "clang" or "gcc".

- **dc**

    Choose a D compiler. Valid values are "dmd", "gdc", or "ldc".

- **dotnet**

        Choose a .NET compiler set. Valid values are "msnet", "mono", or "pnet".

- **file**

    Read FILE as a premake5 script. The default is `premake5.lua`.

- **scripts**

    Search for additional scripts on the given path.

- **systemscript**

    Override default system script (`premake5-system.lua`).

# METHODS

- **os\_string**

    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.

    If the operating system is not supported, or is impossible to determine, the
    returned value will be the empty string.

# HELPERS

- **premake**
- **premake5**



( run in 0.415 second using v1.01-cache-2.11-cpan-119454b85a5 )