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