Alien-Capstone

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    You can use it in the Build.PL file if you're using Module::Build or
    Makefile.PL file if you're using ExtUtils::MakeMaker.

                use Alien::Capstone;
                # ...
                die "Alien::Capstone isn't installed" unless &Alien::Capstone::is_installed();
                # ...
                my $capstone= Alien::Capstone->new;
                my $build = Module::Build->new(
                    ...
                    extra_compiler_flags => $capstone->cflags(),
                    extra_linker_flags => $capstone->libs(),
                    ...
                );

VERSION

    0.07

METHODS

    new

      Creates the object. Refer Alien::Base for more information.

    cflags

      This method provides the compiler flags needed to use the library on
      the system.

    libs

      This method provides the linker flags needed to use the library on
      the system.

    is_installed

      This method checks to see if Capstone has been installed correctly.

SEE ALSO

    Alien::Base

lib/Alien/Capstone.pm  view on Meta::CPAN

You can use it in the C<Build.PL> file if you're using Module::Build or
C<Makefile.PL> file if you're using ExtUtils::MakeMaker.

            use Alien::Capstone;
            # ...
            die "Alien::Capstone isn't installed" unless &Alien::Capstone::is_installed();
            # ...
            my $capstone= Alien::Capstone->new;
            my $build = Module::Build->new(
                ...
                extra_compiler_flags => $capstone->cflags(),
                extra_linker_flags => $capstone->libs(),
                ...
            );


=head1 VERSION

0.07

=head1 METHODS

=over

=item B<new>

Creates the object. Refer C<Alien::Base> for more information.

=item B<cflags>

This method provides the compiler flags needed to use the library on the system.

=item B<libs>

This method provides the linker flags needed to use the library on the system.

=item B<is_installed>

This method checks to see if Capstone has been installed correctly.

=back

=head1 SEE ALSO

=over

t/00_use.t  view on Meta::CPAN

use Test::More;
use blib;
use Data::Dumper;
use_ok 'Alien::Capstone';
my $capstone = new_ok('Alien::Capstone');
note $capstone->cflags;
note $capstone->libs;
note Alien::Capstone::ConfigData->config('finished_installing');
is(&Alien::Capstone::is_installed(), 1, 'Capstone is installed');

done_testing();

__END__



( run in 1.045 second using v1.01-cache-2.11-cpan-94b05bcf43c )