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