Makefile-Update

 view release on metacpan or  search on metacpan

lib/Makefile/Update/Bakefile0.pm  view on Meta::CPAN

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use Exporter qw(import);
our @EXPORT = qw(update_bakefile_0);
 
use strict;
 
our $VERSION = '0.4'; # VERSION
 
 
 
sub update_bakefile_0
{
    my ($in, $out, $vars) = @_;
 
    # Variable whose contents is being currently replaced.
    my $var;
 
    # Hash with files defined for the specified variable as keys and 0 or 1
    # depending on whether we have seen them in the input file as values.
    my %files;

lib/Makefile/Update/CMakefile.pm  view on Meta::CPAN

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Variables in our input files use make-like $(var) syntax while CMake uses
# shell-like ${var}, so convert to the target format.
sub _var_to_cmake
{
    my ($var) = @_;
    $var =~ s/\((\w+)\)/{$1}/g;
    $var;
}
 
 
sub update_cmakefile
{
    my ($in, $out, $vars) = @_;
 
    # Variable whose contents is being currently replaced.
    my $var;
 
    # Hash with files defined for the specified variable as keys and 0 or 1
    # depending on whether we have seen them in the input file as values.
    my %files;

lib/Makefile/Update/MSBuild.pm  view on Meta::CPAN

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use Exporter qw(import);
our @EXPORT = qw(update_msbuild_project update_msbuild update_msbuild_filters);
 
use strict;
 
our $VERSION = '0.4'; # VERSION
 
 
 
sub update_msbuild_project
{
    my ($file_or_options, $sources, $headers) = @_;
 
    use Makefile::Update;
 
    if (!Makefile::Update::upmake($file_or_options,
                \&update_msbuild, $sources, $headers
            )) {
        return 0;
    }

lib/Makefile/Update/MSBuild.pm  view on Meta::CPAN

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
        $args = "$file_or_options.filters"
    }
 
    return Makefile::Update::upmake($args,
                \&update_msbuild_filters, $sources, $headers
            );
}
 
 
 
sub update_msbuild
{
    my ($in, $out, $sources, $headers) = @_;
 
    # Hashes mapping the sources/headers names to 1 if they have been seen in
    # the project or 0 otherwise.
    my %sources = map { $_ => 0 } @$sources;
    my %headers = map { $_ => 0 } @$headers;
 
    # Reference to the hash corresponding to the files currently being
    # processed.

lib/Makefile/Update/MSBuild.pm  view on Meta::CPAN

135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
            }
        }
 
        print $out $line_with_eol;
    }
 
    $changed
}
 
 
sub update_msbuild_filters
{
    my ($in, $out, $sources, $headers, $filter_cb) = @_;
 
    # Use standard/default classifier for the files if none is explicitly
    # specified.
    if (!defined $filter_cb) {
        $filter_cb = sub {
            my ($file) = @_;
 
            return 'Source Files' if $file =~ q{\.c(c|pp|xx|\+\+)?$};

lib/Makefile/Update/Makefile.pm  view on Meta::CPAN

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use Exporter qw(import);
our @EXPORT = qw(update_makefile);
 
use strict;
 
our $VERSION = '0.4'; # VERSION
 
 
 
sub update_makefile
{
    my ($in, $out, $vars) = @_;
 
    # Variable whose contents is being currently replaced and its original
    # name in the makefile.
    my ($var, $makevar);
 
    # Hash with files defined for the specified variable as keys and 0 or 1
    # depending on whether we have seen them in the input file as values.
    my %files;

lib/Makefile/Update/VCProj.pm  view on Meta::CPAN

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use Exporter qw(import);
our @EXPORT = qw(update_vcproj);
 
use strict;
 
our $VERSION = '0.4'; # VERSION
 
 
 
sub update_vcproj
{
    my ($in, $out, $sources, $headers, $filter_cb) = @_;
 
    # Use standard/default classifier for the files if none is explicitly
    # specified.
    if (!defined $filter_cb) {
        $filter_cb = sub {
            my ($file) = @_;
 
            return 'Source Files' if $file =~ q{\.c(c|pp|xx|\+\+)?$};

tags  view on Meta::CPAN

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Makefile::Update::Makefile      lib/Makefile/Update/Makefile.pm /^package Makefile::Update::Makefile;$/;"       p
Makefile::Update::VCProj        lib/Makefile/Update/VCProj.pm   /^package Makefile::Update::VCProj;$/;" p
Parameters      lib/Makefile/Update/MSBuild.pm  /^Parameters: input and output file handles and array references to the sources$/;"     l
Parameters      lib/Makefile/Update/MSBuild.pm  /^Parameters: input and output file handles, array references to the sources$/;"        l
Parameters      lib/Makefile/Update/VCProj.pm   /^Parameters: input and output file handles, array references to the sources$/;"        l
Usage   bin/upmake      /^Usage: $0 [--version] [--verbose] [--quiet] [--dry-run|-n] <file-to-update...>$/;"      l
_get_ext        lib/Makefile/Update/Makefile.pm /^    sub _get_ext { $_[0] =~ \/(\\.\\S+)$\/ ? $1 : undef }$/;" s
_var_to_cmake   b:/src/perl/Makefile-Update/lib/Makefile/Update/CMakefile.pm    /^sub _var_to_cmake$/;" s
get_project_sources_and_headers bin/upmake      /^sub get_project_sources_and_headers$/;"       s
read_files_list lib/Makefile/Update.pm  /^sub read_files_list$/;"       s
update_bakefile_0       lib/Makefile/Update/Bakefile0.pm        /^sub update_bakefile_0$/;"     s
update_cmakefile        b:/src/perl/Makefile-Update/lib/Makefile/Update/CMakefile.pm    /^sub update_cmakefile$/;"      s
update_cmakefile        lib/Makefile/Update/CMakefile.pm        /^sub update_cmakefile$/;"      s
update_makefile lib/Makefile/Update/Makefile.pm /^sub update_makefile$/;"       s
update_msbuild  lib/Makefile/Update/MSBuild.pm  /^sub update_msbuild$/;"        s
update_msbuild_filters  lib/Makefile/Update/MSBuild.pm  /^sub update_msbuild_filters$/;"        s
update_msbuild_project  lib/Makefile/Update/MSBuild.pm  /^sub update_msbuild_project$/;"        s
update_vcproj   lib/Makefile/Update/VCProj.pm   /^sub update_vcproj$/;" s
upmake  lib/Makefile/Update.pm  /^sub upmake$/;"        s
var_to_cmake    lib/Makefile/Update/CMakefile.pm        /^sub var_to_cmake$/;"  s



( run in 0.940 second using v1.01-cache-2.11-cpan-49f99fa48dc )