SPVM::Resource::Zlib - Resource of zlib Library
SPVM::Resource::Zlib is a resource of SPVM for the zlib library.
MyClass.config:
my $config = SPVM::Builder::Config->new_c99(file => __FILE__); $config->use_resource('Resource::Zlib'); $config;
MyClass.c:
#include <zlib.h> const char* file = "foo.gz"; gzFile gz_fh = gzopen(file, "rb");
zlib
zlib v1.2.13
The C language
C99
spvm_socket_util.h
crc32.h
deflate.h
gzguts.h
inffast.h
inffixed.h
inflate.h
inftrees.h
trees.h
zconf.h
zlib.h
zutil.h
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
-D_LARGEFILE64_SOURCE
mkdir -p original.tmp git clone https://github.com/madler/zlib original.tmp/zlib git -C original.tmp/zlib checkout tags/v1.2.13 -b branch_v1.2.13 git -C original.tmp/zlib branch
The header files of zlib is copied into the include directory by the following command.
include
rsync -av --include='*.h' --exclude='*' original.tmp/zlib/ lib/SPVM/Resource/Zlib.native/include/
The source files of zlib are copied into the src directory by the following command.
src
rsync -av --exclude='*.h' original.tmp/zlib/ lib/SPVM/Resource/Zlib.native/src/
The used source files are extracted by the following command.
find lib/SPVM/Resource/Zlib.native/src/* | perl -p -e 's|^\Qlib/SPVM/Resource/Zlib.native/src/||' | grep -P '^\w+\.c$'
SPVM::Resource::Zlib - Github
Yuki Kimoto kimoto.yuki@gmail.com
kimoto.yuki@gmail.com
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::Resource::Zlib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Resource::Zlib
CPAN shell
perl -MCPAN -e shell install SPVM::Resource::Zlib
For more information on module installation, please visit the detailed CPAN module installation guide.