1 | # ------------------------------------------------------------------------------ |
---|
2 | # (C) British Crown Copyright 2006-17 Met Office. |
---|
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 | # ------------------------------------------------------------------------------ |
---|
19 | use strict; |
---|
20 | use warnings; |
---|
21 | # ------------------------------------------------------------------------------ |
---|
22 | package FCM::System::Make::Build::FileType::FPP; |
---|
23 | use base qw{FCM::System::Make::Build::FileType::CPP}; |
---|
24 | |
---|
25 | use FCM::System::Make::Build::Task::Preprocess::Fortran; |
---|
26 | |
---|
27 | my %TASK_CLASS_OF |
---|
28 | = (process => 'FCM::System::Make::Build::Task::Preprocess::Fortran'); |
---|
29 | |
---|
30 | sub new { |
---|
31 | my ($class, $attrib_ref) = @_; |
---|
32 | bless( |
---|
33 | FCM::System::Make::Build::FileType::CPP->new({ |
---|
34 | id => 'fpp', |
---|
35 | file_ext => '.F90 .F95 .F .FTN .FOR', |
---|
36 | task_class_of => {%TASK_CLASS_OF}, |
---|
37 | %{$attrib_ref}, |
---|
38 | }), |
---|
39 | $class, |
---|
40 | ); |
---|
41 | } |
---|
42 | |
---|
43 | # ------------------------------------------------------------------------------ |
---|
44 | 1; |
---|
45 | __END__ |
---|
46 | |
---|
47 | =head1 NAME |
---|
48 | |
---|
49 | FCM::System::Make::Build::FileType::FPP |
---|
50 | |
---|
51 | =head1 SYNOPSIS |
---|
52 | |
---|
53 | use FCM::System::Make::Build::FileType::FPP; |
---|
54 | my $helper = FCM::System::Make::Build::FileType::FPP->new(); |
---|
55 | $helper->source_analyse($handle); |
---|
56 | |
---|
57 | =head1 DESCRIPTION |
---|
58 | |
---|
59 | A wrapper of |
---|
60 | L<FCM::System::Make::Build::FileType::CPP|FCM::System::Make::Build::FileType::CPP> |
---|
61 | with configurations to work with Fortran source files for preprocessing. |
---|
62 | |
---|
63 | =head1 COPYRIGHT |
---|
64 | |
---|
65 | (C) Crown copyright Met Office. All rights reserved. |
---|
66 | |
---|
67 | =cut |
---|