File Coverage

blib/lib/App/hopen/BuildSystemGlobals.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1             # App::hopen::BuildSystemGlobals - global data for build-system use cases.
2             package App::hopen::BuildSystemGlobals;
3 3     3   389 use Data::Hopen;
  3         12706  
  3         172  
4 3     3   19 use strict;
  3         7  
  3         67  
5 3     3   16 use Data::Hopen::Base;
  3         6  
  3         17  
6              
7             our $VERSION = '0.000011';
8              
9 3     3   4035 use parent 'Exporter';
  3         7  
  3         15  
10             our @EXPORT;
11 3     3   405 BEGIN { @EXPORT = qw(*Generator *Toolset *Build *Phase *ProjDir *DestDir); }
12             # export with `*` => `local` will work.
13              
14             =head1 NAME
15              
16             App::hopen::BuildSystemGlobals - global data for hopen build-system use cases
17              
18             =head1 SYNOPSIS
19              
20             This module exports variables used when employing hopen(1) as a build system.
21             They are in a separate module so that it's easy to tell which parts of
22             L<Data::Hopen> I<don't> need them.
23              
24             =head1 VARIABLES
25              
26             =head2 $Generator
27              
28             The current L<Data::Hopen::Gen> instance.
29              
30             =head2 $Toolset
31              
32             The name of the current toolset. Support for language C<Foo> is in
33             package C<${Toolset}::Foo>.
34              
35             =head2 $Build
36              
37             The L<Data::Hopen::G::DAG> instance representing the current build.
38             Goals in C<$Build> will become, e.g., top-level targets of a
39             generated C<Makefile>.
40              
41             =head2 $Phase
42              
43             Which phase we're in (string).
44              
45             =head2 $ProjDir
46              
47             A L<Path::Class::Dir> instance representing the project directory.
48              
49             =head2 $DestDir
50              
51             A L<Path::Class::Dir> instance representing the destination directory.
52              
53             =cut
54              
55             our ($Generator, $Toolset, $Build, $Phase, $ProjDir, $DestDir);
56              
57             1;
58             __END__
59             # vi: set fdm=marker: #