Dist::Zilla::Plugin::FFI::Build - Add FFI::Build to your Makefile.PL
version 1.07
[FFI::Build]
This plugin makes the appropriate modifications to your dist to allow you to bundle code with FFI::Platypus::Bundle. It works with FFI::Build::MM, and only works with ExtUtils::MakeMaker, so don't try to use it with Module::Build.
It specifically:
Makefile.PL
To call FFI::Build::MM to add the necessary hooks to build and install your bundled code.
For FFI::Build::MM. It also makes the prereqs for your distribution dynamic, which is required for FFI::Build::MM.
Removes any files in ffi/_build which may be created when developing an FFI module using the bundle interface.
ffi/_build
This plugin adds the appropriate hooks for FFI::Build::MM into your Makefile.PL. It does not work with Module::Build.
If you are using a language plugin then you can specify it here. It will add it as a prereq. This should be the "short" name of the plugin, without the FFI::Platypus::Lang prefix. So for example for FFI::Platypus::Lang::Rust you would just set this to Rust.
FFI::Platypus::Lang
Rust
In addition setting these lang to these languages will have the following additional affects:
lang
The paths ffi/target and t/ffi/target will be pruned when building the dist. This is usually what you want.
ffi/target
t/ffi/target
If you need a language specific builder this is where you specify it. These are classes that live in the FFI::Build::File:: namespace. For example for Rust you would specify Cargo and for Go you would specify GoMod.
FFI::Build::File::
Setting this property will add the appropriate module as a configure time prereq.
You do not usually need this for the C programming language.
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Zaki Mughal (zmughal)
This software is copyright (c) 2018-2022 by Graham Ollis.
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 Dist::Zilla::Plugin::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::FFI
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.