AI-PredictionClient-Alien-TensorFlowServingProtos
view release on metacpan or search on metacpan
received the program in object code or executable form alone.)
Source code for a work means the preferred form of the work for making
modifications to it. For an executable file, complete source code means
all the source code for all modules it contains; but, as a special
exception, it need not include source code for modules which are standard
libraries that accompany the operating system on which the executable
file runs, or for standard header files or definitions files that
accompany that operating system.
4. You may not copy, modify, sublicense, distribute or transfer the
Program except as expressly provided under this General Public License.
Any attempt otherwise to copy, modify, sublicense, distribute or transfer
the Program is void, and will automatically terminate your rights to use
the Program under this License. However, parties who have received
copies, or rights to use copies, from you under this General Public
License will not have their licenses terminated so long as such parties
remain in full compliance.
5. By copying, distributing or modifying the Program (or any work based
on the Program) you indicate your acceptance of this license to do so,
and all its terms and conditions.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the original
licensor to copy, distribute or modify the Program subject to these
terms and conditions. You may not impose any further restrictions on the
recipients' exercise of the rights granted herein.
7. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of the license which applies to it and "any
may not charge a fee for this Package itself. However, you may distribute this
Package in aggregate with other (possibly commercial) programs as part of a
larger (possibly commercial) software distribution provided that you do not
advertise this Package as a product of your own.
6. The scripts and library files supplied as input to or produced as output
from the programs of this Package do not automatically fall under the copyright
of this Package, but belong to whomever generated them, and may be sold
commercially, and may be aggregated with this Package.
7. C or perl subroutines supplied by you and linked into this Package shall not
be considered part of this Package.
8. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.
9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
The End
LICENSE.txt view on Meta::CPAN
received the program in object code or executable form alone.)
Source code for a work means the preferred form of the work for making
modifications to it. For an executable file, complete source code means
all the source code for all modules it contains; but, as a special
exception, it need not include source code for modules which are standard
libraries that accompany the operating system on which the executable
file runs, or for standard header files or definitions files that
accompany that operating system.
4. You may not copy, modify, sublicense, distribute or transfer the
Program except as expressly provided under this General Public License.
Any attempt otherwise to copy, modify, sublicense, distribute or transfer
the Program is void, and will automatically terminate your rights to use
the Program under this License. However, parties who have received
copies, or rights to use copies, from you under this General Public
License will not have their licenses terminated so long as such parties
remain in full compliance.
5. By copying, distributing or modifying the Program (or any work based
on the Program) you indicate your acceptance of this license to do so,
and all its terms and conditions.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the original
licensor to copy, distribute or modify the Program subject to these
terms and conditions. You may not impose any further restrictions on the
recipients' exercise of the rights granted herein.
7. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of the license which applies to it and "any
LICENSE.txt view on Meta::CPAN
may not charge a fee for this Package itself. However, you may distribute this
Package in aggregate with other (possibly commercial) programs as part of a
larger (possibly commercial) software distribution provided that you do not
advertise this Package as a product of your own.
6. The scripts and library files supplied as input to or produced as output
from the programs of this Package do not automatically fall under the copyright
of this Package, but belong to whomever generated them, and may be sold
commercially, and may be aggregated with this Package.
7. C or perl subroutines supplied by you and linked into this Package shall not
be considered part of this Package.
8. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.
9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
The End
Makefile.PL view on Meta::CPAN
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# BEGIN code inserted by Dist::Zilla::Plugin::AlienBuild
sub MY::postamble {
$abmm->mm_postamble;
}
# END code inserted by Dist::Zilla::Plugin::AlienBuild
alien_packages/tds/Makefile view on Meta::CPAN
GRPC_CPP_PLUGIN = grpc_cpp_plugin
GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)`
PROTOS_PATH = .
vpath %.proto $(PROTOS_PATH)
PREFIX = $(prefix)
SOURCES := $(shell find $(SOURCEDIR) -name '*.proto')
OBJECTS = $(patsubst %.proto, %.pb.o, $(SOURCES))
CPP_GEN = $(patsubst %.proto, %.pb.cc, $(SOURCES))
all: tensorflow_serving_protos_cc_gen tensorflow_serving_protos_so
tensorflow_serving_protos_cc_gen: $(CPP_GEN) tensorflow_serving/apis/prediction_service.grpc.pb.cc
tensorflow_serving_protos_so: $(OBJECTS) tensorflow_serving/apis/prediction_service.grpc.pb.o
$(CXX) $^ -shared $(LDFLAGS) -o lib$@.so
.PHONY: install
install: libtensorflow_serving_protos_so.so
use File::Copy::Recursive qw(dircopy dirmove);
use Archive::Extract;
use Alien::Google::GRPC;
use Env qw( @PATH );
unshift @PATH, Alien::Google::GRPC->bin_dir;
meta_prop->{my_libs} = Alien::Google::GRPC->libs;
meta_prop->{my_cflags} = Alien::Google::GRPC->cflags;
probe sub {
return 'share';
};
share {
download sub {
# The alien automagic obfuscates the actions taking place.
# Use some work arounds to make this work.
my $download_from_location = $ENV{'PWD'};
my $download_to_location = qx(pwd);
chomp $download_to_location;
dircopy( $download_from_location . '/alien_packages'
, $download_to_location);
};
extract sub {
my($build) = @_;
my $tarball = $build->install_prop->{download} . '/third_party/tensorflowserving_protofiles.tgz';
my $ae = Archive::Extract->new( archive => $tarball );
$ae->extract;
my $additional_files = $build->install_prop->{download} . '/tds';
dirmove($additional_files, './tensorflowserving_pb/tds');
move('./tensorflowserving_pb/Makefile', './tensorflowserving_pb/stray_makefile');
move('./tensorflowserving_pb/tds/Makefile', './tensorflowserving_pb/');
};
requires "Alien::Base" => "0";
requires "base" => "0";
requires "perl" => "5.01";
requires "strict" => "0";
requires "warnings" => "0";
on 'build' => sub {
requires "Alien::Build" => "0.40";
requires "Alien::Build::MM" => "0.40";
requires "ExtUtils::MakeMaker" => "6.52";
};
on 'test' => sub {
requires "Test::More" => "0";
};
on 'configure' => sub {
requires "Alien::Build" => "0.40";
requires "Alien::Build::MM" => "0.40";
requires "Alien::Google::GRPC" => "0.06";
requires "Archive::Extract" => "0";
requires "Env" => "0";
requires "ExtUtils::MakeMaker" => "6.52";
requires "File::Copy" => "0";
requires "File::Copy::Recursive" => "0";
};
on 'develop' => sub {
requires "Test::Pod" => "1.41";
requires "Test::Spelling" => "0.12";
};
( run in 0.780 second using v1.01-cache-2.11-cpan-88abd93f124 )