| 1 |
package FFI::Build::File::Library; |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use 5.008004; |
| 6 |
use parent qw( FFI::Build::File::Base ); |
| 7 |
use constant default_encoding => ':raw'; |
| 8 |
|
| 9 |
# ABSTRACT: Class to track object file in FFI::Build |
| 10 |
our $VERSION = '2.12'; # VERSION |
| 11 |
|
| 12 |
|
| 13 |
sub default_suffix |
| 14 |
{ |
| 15 |
shift->platform->library_suffix; |
| 16 |
} |
| 17 |
|
| 18 |
1; |
| 19 |
|
| 20 |
__END__ |
| 21 |
|
| 22 |
=pod |
| 23 |
|
| 24 |
=encoding UTF-8 |
| 25 |
|
| 26 |
=head1 NAME |
| 27 |
|
| 28 |
FFI::Build::File::Library - Class to track object file in FFI::Build |
| 29 |
|
| 30 |
=head1 VERSION |
| 31 |
|
| 32 |
version 2.12 |
| 33 |
|
| 34 |
=head1 SYNOPSIS |
| 35 |
|
| 36 |
use FFI::Build; |
| 37 |
|
| 38 |
my $build = FFI::Build->new(source => 'src/*.c'); |
| 39 |
# $lib is an instance of FFI::Build::File::Library |
| 40 |
my $lib = $build->build; |
| 41 |
|
| 42 |
=head1 DESCRIPTION |
| 43 |
|
| 44 |
This is a class to track a library generated by L<FFI::Build>. |
| 45 |
This is returned by L<FFI::Build>'s build method. This class |
| 46 |
is a subclass of L<FFI::Build::File::Base>. The most important |
| 47 |
method is probably C<path>, which returns the path to the library |
| 48 |
which can be passed into L<FFI::Platypus> for immediate use. |
| 49 |
|
| 50 |
=head1 METHODS |
| 51 |
|
| 52 |
=head2 path |
| 53 |
|
| 54 |
my $path = $lib->path; |
| 55 |
|
| 56 |
Returns the path of the library. |
| 57 |
|
| 58 |
=head1 AUTHOR |
| 59 |
|
| 60 |
Author: Graham Ollis E<lt>[email protected]<gt> |
| 61 |
|
| 62 |
Contributors: |
| 63 |
|
| 64 |
Bakkiaraj Murugesan (bakkiaraj) |
| 65 |
|
| 66 |
Dylan Cali (calid) |
| 67 |
|
| 68 |
pipcet |
| 69 |
|
| 70 |
Zaki Mughal (zmughal) |
| 71 |
|
| 72 |
Fitz Elliott (felliott) |
| 73 |
|
| 74 |
Vickenty Fesunov (vyf) |
| 75 |
|
| 76 |
Gregor Herrmann (gregoa) |
| 77 |
|
| 78 |
Shlomi Fish (shlomif) |
| 79 |
|
| 80 |
Damyan Ivanov |
| 81 |
|
| 82 |
Ilya Pavlov (Ilya33) |
| 83 |
|
| 84 |
Petr Písař (ppisar) |
| 85 |
|
| 86 |
Mohammad S Anwar (MANWAR) |
| 87 |
|
| 88 |
Håkon Hægland (hakonhagland, HAKONH) |
| 89 |
|
| 90 |
Meredith (merrilymeredith, MHOWARD) |
| 91 |
|
| 92 |
Diab Jerius (DJERIUS) |
| 93 |
|
| 94 |
Eric Brine (IKEGAMI) |
| 95 |
|
| 96 |
szTheory |
| 97 |
|
| 98 |
José Joaquín Atria (JJATRIA) |
| 99 |
|
| 100 |
Pete Houston (openstrike, HOUSTON) |
| 101 |
|
| 102 |
Lukas Mai (MAUKE) |
| 103 |
|
| 104 |
=head1 COPYRIGHT AND LICENSE |
| 105 |
|
| 106 |
This software is copyright (c) 2015-2022 by Graham Ollis. |
| 107 |
|
| 108 |
This is free software; you can redistribute it and/or modify it under |
| 109 |
the same terms as the Perl 5 programming language system itself. |
| 110 |
|
| 111 |
=cut |