| 1 |
package FFI::Build::File::Object; |
| 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 |
use Carp (); |
| 9 |
|
| 10 |
# ABSTRACT: Class to track object file in FFI::Build |
| 11 |
our $VERSION = '2.12'; # VERSION |
| 12 |
|
| 13 |
|
| 14 |
sub default_suffix |
| 15 |
{ |
| 16 |
shift->platform->object_suffix; |
| 17 |
} |
| 18 |
|
| 19 |
sub build_item |
| 20 |
{ |
| 21 |
my($self) = @_; |
| 22 |
unless(-f $self->path) |
| 23 |
{ |
| 24 |
Carp::croak "File not built" |
| 25 |
} |
| 26 |
return; |
| 27 |
} |
| 28 |
|
| 29 |
1; |
| 30 |
|
| 31 |
__END__ |
| 32 |
|
| 33 |
=pod |
| 34 |
|
| 35 |
=encoding UTF-8 |
| 36 |
|
| 37 |
=head1 NAME |
| 38 |
|
| 39 |
FFI::Build::File::Object - Class to track object file in FFI::Build |
| 40 |
|
| 41 |
=head1 VERSION |
| 42 |
|
| 43 |
version 2.12 |
| 44 |
|
| 45 |
=head1 SYNOPSIS |
| 46 |
|
| 47 |
use FFI::Build::File::Object; |
| 48 |
my $o = FFI::Build::File::Object->new('src/_build/foo.o'); |
| 49 |
|
| 50 |
=head1 DESCRIPTION |
| 51 |
|
| 52 |
This class represents an object file. You normally do not need |
| 53 |
to use it directly. |
| 54 |
|
| 55 |
=head1 AUTHOR |
| 56 |
|
| 57 |
Author: Graham Ollis E<lt>[email protected]<gt> |
| 58 |
|
| 59 |
Contributors: |
| 60 |
|
| 61 |
Bakkiaraj Murugesan (bakkiaraj) |
| 62 |
|
| 63 |
Dylan Cali (calid) |
| 64 |
|
| 65 |
pipcet |
| 66 |
|
| 67 |
Zaki Mughal (zmughal) |
| 68 |
|
| 69 |
Fitz Elliott (felliott) |
| 70 |
|
| 71 |
Vickenty Fesunov (vyf) |
| 72 |
|
| 73 |
Gregor Herrmann (gregoa) |
| 74 |
|
| 75 |
Shlomi Fish (shlomif) |
| 76 |
|
| 77 |
Damyan Ivanov |
| 78 |
|
| 79 |
Ilya Pavlov (Ilya33) |
| 80 |
|
| 81 |
Petr Písař (ppisar) |
| 82 |
|
| 83 |
Mohammad S Anwar (MANWAR) |
| 84 |
|
| 85 |
Håkon Hægland (hakonhagland, HAKONH) |
| 86 |
|
| 87 |
Meredith (merrilymeredith, MHOWARD) |
| 88 |
|
| 89 |
Diab Jerius (DJERIUS) |
| 90 |
|
| 91 |
Eric Brine (IKEGAMI) |
| 92 |
|
| 93 |
szTheory |
| 94 |
|
| 95 |
José Joaquín Atria (JJATRIA) |
| 96 |
|
| 97 |
Pete Houston (openstrike, HOUSTON) |
| 98 |
|
| 99 |
Lukas Mai (MAUKE) |
| 100 |
|
| 101 |
=head1 COPYRIGHT AND LICENSE |
| 102 |
|
| 103 |
This software is copyright (c) 2015-2022 by Graham Ollis. |
| 104 |
|
| 105 |
This is free software; you can redistribute it and/or modify it under |
| 106 |
the same terms as the Perl 5 programming language system itself. |
| 107 |
|
| 108 |
=cut |