Alien-DuckDB
view release on metacpan or search on metacpan
$build->runtime_prop->{cflags} = "-I$prefix/include";
$build->runtime_prop->{libs} = "-L$prefix/lib -lduckdb";
# Debug output
log "VERSION: " . $build->runtime_prop->{version};
log "CFLAGS: " . $build->runtime_prop->{cflags};
log "LIBS: " . $build->runtime_prop->{libs};
# Check if files exist where expected
log "Header exists: " . (-e "$prefix/include/duckdb.h" ? "YES" : "NO");
my @libs = glob("$prefix/lib/*duck*");
log "Libraries: " . join(", ", @libs);
},
);
}
else {
# Standard hook for other platforms
meta->around_hook(
gather_share => sub {
my ($orig, $build) = @_;
$orig->($build);
$build->runtime_prop->{cflags} = "-I$prefix/include";
$build->runtime_prop->{libs} = "-L$prefix/lib -lduckdb";
# Debug output
log "VERSION: " . $build->runtime_prop->{version};
log "CFLAGS: " . $build->runtime_prop->{cflags};
log "LIBS: " . $build->runtime_prop->{libs};
# Check if files exist where expected
log "Header exists: " . (-e "$prefix/include/duckdb.h" ? "YES" : "NO");
my @libs = glob("$prefix/lib/*duck*");
log "Libraries: " . join(", ", @libs);
},
);
}
};
( run in 3.033 seconds using v1.01-cache-2.11-cpan-1236ad508bc )