source: LMDZ6/branches/Amaury_dev/tools/fcm/lib/FCM/System/Make/Build/FileType/CXX.pm @ 5129

Last change on this file since 5129 was 5129, checked in by abarral, 8 weeks ago

Re-add removed by mistake fcm

File size: 2.3 KB
Line 
1# ------------------------------------------------------------------------------
2# Copyright (C) 2006-2021 British Crown (Met Office) & Contributors.
3#
4# This file is part of FCM, tools for managing and building source code.
5#
6# FCM is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# FCM is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with FCM. If not, see <http://www.gnu.org/licenses/>.
18# ------------------------------------------------------------------------------
19use strict;
20use warnings;
21# ------------------------------------------------------------------------------
22package FCM::System::Make::Build::FileType::CXX;
23use base qw{FCM::System::Make::Build::FileType::C};
24
25use FCM::System::Make::Build::Task::Compile::CXX;
26use FCM::System::Make::Build::Task::Install;
27use FCM::System::Make::Build::Task::Link::CXX;
28
29my %TASK_CLASS_OF = (
30    'compile' => 'FCM::System::Make::Build::Task::Compile::CXX',
31    'install' => 'FCM::System::Make::Build::Task::Install',
32    'link'    => 'FCM::System::Make::Build::Task::Link::CXX',
33);
34
35sub new {
36    my ($class, $attrib_ref) = @_;
37    bless(
38        FCM::System::Make::Build::FileType::C->new({
39            id            => 'cxx',
40            file_ext      => '.cc .cp .cxx .cpp .CPP .c++ .C .mm .M .mii',
41            task_class_of => {%TASK_CLASS_OF},
42            %{$attrib_ref},
43        }),
44        $class,
45    );
46}
47
48# ------------------------------------------------------------------------------
491;
50__END__
51
52=head1 NAME
53
54FCM::System::Make::Build::FileType::CXX
55
56=head1 SYNOPSIS
57
58    use FCM::System::Make::Build::FileType::CXX;
59    my $helper = FCM::System::Make::Build::FileType::CXX->new();
60    $helper->source_analyse($handle);
61
62=head1 DESCRIPTION
63
64A wrapper of
65L<FCM::System::Make::Build::FileType::C|FCM::System::Make::Build::FileType::C>
66with configurations to work with C++ source files.
67
68=head1 COPYRIGHT
69
70Copyright (C) 2006-2021 British Crown (Met Office) & Contributors.
71
72=cut
Note: See TracBrowser for help on using the repository browser.