table of contents
build::Wx::build::Utils(3pm) | User Contributed Perl Documentation | build::Wx::build::Utils(3pm) |
NAME¶
Wx::build::Utils - utility routines
SUBROUTINES¶
xs_dependencies¶
my %dependencies = xs_dependencies( $mm_object, [ 'dir1', 'dir2' ] );
obj_from_src¶
my @obj_files = obj_from_src( 'Foo.xs', 'bar.c', 'cpp/bar.cpp' );
Calculates the object file name from the source file name. In scalar context returns the first file.
write_string, write_file¶
write_string( 'file', $scalar ); write_file( 'file', $scalar );
Like File::Slurp.
read_file¶
my $string = read_file( 'file' );
lib_file, arch_file, arch_auto_file¶
my $file = lib_file( 'Foo.pm' ); # blib/lib/Foo.pm on *nix my $file = lib_file( 'Foo/Bar.pm' ); # blib\lib\Foo\Bar.pm on Win32 my $file = arch_auto_file( 'My\My.dll' ); # blib\arch\auto\My\My.dll
All input paths must be relative, output paths may be absolute.
path_search¶
my $file = path_search( 'foo.exe' );
Searches PATH for the given executable.
files_with_constants¶
my @files = files_with_constants;
Finds files containing constants
files_with_overload¶
my @files = files_with_overload;
Finds files containing overloaded XS/Perl subroutines
2023-02-14 | perl v5.36.0 |