Net-NATS-Streaming-PB
view release on metacpan or search on metacpan
Changes
lib/Net/NATS/Streaming/PB.pm
lib/Net/NATS/Streaming/PB/StartPosition.pm
Makefile.PL
MANIFEST This list of files
META.json
META.yml
nats_streaming.proto
PB.xs
README
t/Net-NATS-Streaming-PB.t
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker;
use strict;
use warnings;
my $CC = 'c++';
`protoc --cpp_out=. nats_streaming.proto`;
die "need google protobuf compiler installed" if $!;
my $cflags = `pkg-config --cflags protobuf`;
die "need protobuf installed" if $cflags =~ /not found/;
my $libs = `pkg-config --libs protobuf`;
$libs ||= "-lprotobuf";
my $LD_EXT = '';
if($libs =~ /-pthread/)
{
$LD_EXT = ' -pthread';
$libs =~ s/-pthread//;
}
WriteMakefile(
'NAME' => 'Net::NATS::Streaming::PB',
'VERSION' => '0.06',
'OPTIMIZE' => '-O2 -Wall',
'CC' => $CC,
'LD' => '$(CC)'.$LD_EXT,
'CCFLAGS' => $cflags,
'OBJECT' => 'nats_streaming.pb.o PB.o',
'LIBS' => [$libs],
'XSOPT' => '-C++',
clean => { FILES => "nats_streaming.pb.cc nats_streaming.pb.h" }
);
#undef do_close
#endif
#ifdef New
#undef New
#endif
#include <stdint.h>
#include <sstream>
#ifdef Move
#undef Move
#endif
#include "nats_streaming.pb.h"
using namespace std;
typedef ::Net::NATS::Streaming::PB::PubMsg __Net__NATS__Streaming__PB__PubMsg;
typedef ::Net::NATS::Streaming::PB::PubAck __Net__NATS__Streaming__PB__PubAck;
typedef ::Net::NATS::Streaming::PB::MsgProto __Net__NATS__Streaming__PB__MsgProto;
typedef ::Net::NATS::Streaming::PB::Ack __Net__NATS__Streaming__PB__Ack;
typedef ::Net::NATS::Streaming::PB::ConnectRequest __Net__NATS__Streaming__PB__ConnectRequest;
typedef ::Net::NATS::Streaming::PB::ConnectResponse __Net__NATS__Streaming__PB__ConnectResponse;
lib/Net/NATS/Streaming/PB.pm view on Meta::CPAN
Generated from Net.NATS.Streaming.PB.UnsubscribeRequest by the protoc compiler.
=head1 SEE ALSO
http://code.google.com/p/protobuf
=cut
=head1 REPOSITORY
L<https://github.com/sergeykolychev/perl-nats-streaming>
=head1 COPYRIGHT & LICENSE
Copyright (C) 2017 by Sergey Kolychev <sergeykolychev.github@gmail.com>
This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0
=cut
( run in 0.462 second using v1.01-cache-2.11-cpan-4d50c553e7e )