Alien-ckdl

 view release on metacpan or  search on metacpan

alienfile  view on Meta::CPAN

        require Config;

        # Locate the unpacked ckdl source tree. Alien::Build sometimes chdirs
        # into the extracted directory and sometimes leaves cwd as its parent.
        my $srcdir;
        if (-f 'CMakeLists.txt' && -d 'src' && -d 'include') {
            $srcdir = '.';
        }
        else {
            ($srcdir) = grep { -d $_ && -f File::Spec->catfile($_, 'CMakeLists.txt') }
                glob 'ckdl-*';
        }
        die "could not locate extracted ckdl source tree (cwd=" . `pwd` . ")"
            unless $srcdir;

        my $cb = ExtUtils::CBuilder->new(quiet => 0);

        my @units = qw(bigint compat emitter parser str tokenizer utf8);
        my @objects;
        for my $unit (@units) {
            my $src = File::Spec->catfile($srcdir, 'src', "$unit.c");



( run in 1.296 second using v1.01-cache-2.11-cpan-df04353d9ac )