NAME

FFI::Probe::Runner::Builder - Probe runner builder for FFI

VERSION

version 0.75_01

SYNOPSIS

use FFI::Probe::Runner::Builder;
my $builder = FFI::Probe::Runner::Builder->new
  dir => "/foo/bar",
);
my $exe = $builder->build;

DESCRIPTION

This is a builder class for the FFI probe runner. It is mostly only of interest if you are hacking on FFI::Platypus itself.

The interface may and will change over time without notice. Use in external dependencies at your own peril.

CONSTRUCTORS

new

my $builder = FFI::Probe::Runner::Builder->new(%args);

Create a new instance.

dir

The root directory for where to place the probe runner files. Will be created if it doesn't already exist. The default makes sense for when FFI::Platypus is being built.

METHODS

dir

my $dir = $builder->dir(@subdirs);

Returns a subdirectory from the builder root. Directory will be created if it doesn't already exist.

file

my $file = $builder->file(@subdirs, $filename);

Returns a file in a subdirectory from the builder root. Directory will be created if it doesn't already exist. File will not be created.

source

my $source = $builder->source;

The C source for the probe runner.

extract

$builder->extract;

Extract the source for the probe runner.

run

$builder->run(@command);

Runs the given command.

build

my $exe = $builder->build;

Builds the probe runner. Returns the path to the executable.

AUTHOR

Author: Graham Ollis <plicease@cpan.org>

Contributors:

Bakkiaraj Murugesan (bakkiaraj)

Dylan Cali (calid)

pipcet

Zaki Mughal (zmughal)

Fitz Elliott (felliott)

Vickenty Fesunov (vyf)

Gregor Herrmann (gregoa)

Shlomi Fish (shlomif)

Damyan Ivanov

Ilya Pavlov (Ilya33)

COPYRIGHT AND LICENSE

This software is copyright (c) 2015,2016,2017,2018,2019 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.