File Coverage

blib/lib/SPVM/Resource/Zlib/V1_2_11.config
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 1     1   195900 use strict;
  1         2  
  1         25  
2 1     1   5 use warnings;
  1         2  
  1         24  
3              
4 1     1   4 use SPVM::Builder::Config;
  1         2  
  1         73  
5             my $config = SPVM::Builder::Config->new_gnu99(file => __FILE__);
6              
7             # C souce files
8             my @source_files = qw(
9             adler32.c
10             compress.c
11             crc32.c
12             deflate.c
13             gzclose.c
14             gzlib.c
15             gzread.c
16             gzwrite.c
17             infback.c
18             inffast.c
19             inflate.c
20             inftrees.c
21             trees.c
22             uncompr.c
23             zutil.c
24             );
25             $config->add_source_files(@source_files);
26              
27             my @ccflags = qw(-D_GNU_SOURCE);
28              
29             $config->add_ccflags(@ccflags);
30              
31             $config;