Alien-NSS
view release on metacpan or search on metacpan
lib/Alien/NSS.pm view on Meta::CPAN
library that is ( among others ) used in Mozilla Firefox and Google Chrome.
=head1 SYNOPSIS
use strict;
use warnings;
use Module::Build;
use Alien::NSS;
my $cflags = Alien::NSS->cflags;
my $ldflags = Alien::NSS->libs;
my $builder = Module::Build->new(
module_name => 'my_lib',
extra_compiler_flags => $cflags,
extra_linker_flags => $ldflags,
configure_requires => {
'Alien::NSS => 0
},
);
$builder->create_build_script;
=head1 INSTALLATION
L<Alien::NSS> uses the L<Module::Build> system for installation. The usual build
process is
perl Build.PL
./Build
./Build test
./Build install
=head2 Build Flags
When running C<perl Build.PL>, certain command line flags may be passed:
=over 4
=item C<--help>
Print all possible additional command line parameters for Building
L<Alien::NSS>
=item C<--version=3_17_2>
use strict;
use warnings;
use Test::More tests => 2;
use Text::ParseWords qw/shellwords/;
BEGIN { use_ok( 'Alien::NSS' ); }
diag("Libs: ".Alien::NSS->libs);
diag("Cflags: ".Alien::NSS->cflags);
diag("Install type: ".Alien::NSS->install_type);
my %libs = map { $_ => 1 } shellwords( Alien::NSS->libs );
ok(defined($libs{'-lnss3'}), 'Libnss defined');
#my @alienlibs = grep { /\_alien/ } keys %libs;
#ok(scalar @alienlibs == 0, 'No libs in _alien');
( run in 0.246 second using v1.01-cache-2.11-cpan-94b05bcf43c )