Alien-FluentBit
view release on metacpan or search on metacpan
};
sys {
gather sub {
my $build= shift;
my $prefix= $build->runtime_prop->{prefix};
my $bin_dir= $build->runtime_prop->{bin_dir}= '/opt/fluent-bit/bin';
`"$bin_dir/fluent-bit" --version` =~ /v([0-9.]+)/ or die; # tested above
$build->runtime_prop->{version}= $1;
# Headers installed by fluent-bit cmake are broken, missing many referenced
# sub-projects, but also all of it it is unnecessary because the public API
# is only 10 functions.
# See https://github.com/fluent/fluent-bit/issues/7165
my $custom_inc_dir= path("$prefix/include");
$custom_inc_dir->mkpath;
$minimal_header->copy("$custom_inc_dir/fluent-bit-minimal.h");
$minimal_header->copy("$custom_inc_dir/fluent-bit.h");
$build->runtime_prop->{cflags}= "-I$custom_inc_dir";
$build->runtime_prop->{libs}= "-L/lib/fluent-bit -Wl,-rpath,/lib/fluent-bit -lfluent-bit";
};
};
include/fluent-bit-minimal.h view on Meta::CPAN
/* Minimal Fluent-Bit Header
*
* This header exposes only the symbols needed to use the public
* advertised API of libfluent-bit.so
*
* This is derived from fluent-bit/flb_lib.h which is
* licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
( run in 0.352 second using v1.01-cache-2.11-cpan-64827b87656 )