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