SMOP.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
lib_flags
2.0
include_flags
2.0
CRAP 2.0
1 package SMOP;
2 BEGIN {
3 $SMOP::VERSION = '0.6';
4 }
5 # ABSTRACT: Simple Meta Object Programming
6 my @MODULES = qw(s0native dump nagc util capture interpreter mold yeast native lost s1p p6opaque s1p-oo mold-message profile p5 main);
7 use File::ShareDir qw(dist_dir);
8 use ExtUtils::Embed qw(ldopts ccopts);
9 use strict;
10 use warnings;
11 sub lib_flags {
12 my @LIBS;
13 push(@LIBS,'-L',dist_dir('SMOP'));
14 for my $module (@MODULES) {
15 push(@LIBS,'-lsmop-' . $module);
16 }
17 push(@LIBS,split(' ',ldopts));
18 return @LIBS;
19 }
20 sub include_flags {
21 return "-I".dist_dir('SMOP');
22 }
23 sub ld_library_path {
24 dist_dir('SMOP');
25 }
26 sub modules {
27 @MODULES;
28 }
29 1;