blib/lib/App/hopen/BuildSystemGlobals.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« eg/001-single-file-hello/001.hopen.pl ↑ Summary blib/lib/App/hopen/T/Gnu.pm »
1 # App::hopen::BuildSystemGlobals - global data for build-system use cases.
2 package App::hopen::BuildSystemGlobals;
3 3 ▶use Data::Hopen;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Data::Hopen::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = '0.000013'; # TRIAL
8  
9 3 ▶use parent 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 our @EXPORT;
11 3 ▶BEGIN { @EXPORT = qw(*Generator *Toolset *Build *Phase *ProjDir *DestDir); }
Subroutine BEGIN: called CC=1 SCAR=0.0
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 3 our ($Generator, $Toolset, $Build, $Phase, $ProjDir, $DestDir);
56  
57 3 1;
58 __END__
59 # vi: set fdm=marker: #
« eg/001-single-file-hello/001.hopen.pl ↑ Summary blib/lib/App/hopen/T/Gnu.pm »