Makefile-Update
view release on metacpan or search on metacpan
lib/Makefile/Update/Bakefile0.pm view on Meta::CPAN
use Exporter qw(import);
our @EXPORT = qw(update_bakefile_0);
use strict;
use warnings;
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
# 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
use Exporter qw(import);
our @EXPORT = qw(update_msbuild_project update_msbuild update_msbuild_filters);
use strict;
use warnings;
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
$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
}
}
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
use Exporter qw(import);
our @EXPORT = qw(update_makefile);
use strict;
use warnings;
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
use Exporter qw(import);
our @EXPORT = qw(update_vcproj);
use strict;
use warnings;
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|\+\+)?$};
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.619 second using v1.01-cache-2.11-cpan-49f99fa48dc )