File Coverage

blib/lib/App/hopen/BuildSystemGlobals.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 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   427 use Data::Hopen;
  3         13749  
  3         173  
4 3     3   18 use strict; use warnings;
  3     3   6  
  3         56  
  3         13  
  3         8  
  3         72  
5 3     3   14 use Data::Hopen::Base;
  3         8  
  3         20  
6              
7             our $VERSION = '0.000013'; # TRIAL
8              
9 3     3   4073 use parent 'Exporter';
  3         6  
  3         15  
10             our @EXPORT;
11 3     3   439 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 in which parts of
22             L<App::hopen> I<don't> need them.
23              
24             =head1 VARIABLES
25              
26             =head2 $Generator
27              
28             The current L<App::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: #