Alien-Bit
view release on metacpan or search on metacpan
my $incdir = catfile( $prefix, 'include' );
my $libdir = catfile( $prefix, 'lib' );
# Set the compiler flags
$build->runtime_prop->{cflags} = "-I$incdir";
# Set the linker flags
$build->runtime_prop->{libs} = "-L$libdir -lbit";
$build->runtime_prop->{ffi_name} = "bit";
# store the actual paths if you ever have to debug
$build->runtime_prop->{include_dir} = $incdir;
$build->runtime_prop->{lib_dir} = $libdir;
};
test sub {
my ($build) = @_;
my $binary_dest_directory =
catfile( $build->install_prop->{stage}, 'lib' );
my $runTests_exec = $^O eq 'MSWin32' ? 'test_bit.exe' : 'test_bit';
( run in 1.492 second using v1.01-cache-2.11-cpan-2b1a40005be )