DOKK / manpages / debian 10 / libwx-perl / Wx::build::Utils.3pm.en
build::Wx::build::Utils(3pm) User Contributed Perl Documentation build::Wx::build::Utils(3pm)

Wx::build::Utils - utility routines

  my %dependencies = xs_dependencies( $mm_object, [ 'dir1', 'dir2' ] );

  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( 'file', $scalar );
  write_file( 'file', $scalar );

Like File::Slurp.

  my $string = read_file( '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.

  my $file = path_search( 'foo.exe' );

Searches PATH for the given executable.

  my @files = files_with_constants;

Finds files containing constants

  my @files = files_with_overload;

Finds files containing overloaded XS/Perl subroutines

2018-11-02 perl v5.28.0