line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MyModuleBuilder; |
2
|
1
|
|
|
1
|
|
42000
|
use Module::Build; |
|
1
|
|
|
|
|
148538
|
|
|
1
|
|
|
|
|
236
|
|
3
|
|
|
|
|
|
|
@ISA = qw(Module::Build); |
4
|
|
|
|
|
|
|
sub ACTION_generate { |
5
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
6
|
|
|
|
|
|
|
|
7
|
0
|
|
|
|
|
|
$self->depends_on ('build'); |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
0
|
|
|
|
my $protocol = $self->args ('protocol') || [ |
10
|
|
|
|
|
|
|
$self->base_dir.'/protocol/wayland.xml', |
11
|
|
|
|
|
|
|
$self->base_dir.'/protocol/gtk-shell.xml', |
12
|
|
|
|
|
|
|
$self->base_dir.'/protocol/xdg-shell.xml', |
13
|
|
|
|
|
|
|
$self->base_dir.'/protocol/workspaces.xml', |
14
|
|
|
|
|
|
|
$self->base_dir.'/protocol/text.xml', |
15
|
|
|
|
|
|
|
$self->base_dir.'/protocol/wayland-test.xml', |
16
|
|
|
|
|
|
|
$self->base_dir.'/protocol/desktop-shell.xml', |
17
|
|
|
|
|
|
|
$self->base_dir.'/protocol/fullscreen-shell.xml', |
18
|
|
|
|
|
|
|
$self->base_dir.'/protocol/text-cursor-position.xml', |
19
|
|
|
|
|
|
|
$self->base_dir.'/protocol/input-method.xml', |
20
|
|
|
|
|
|
|
$self->base_dir.'/protocol/scaler.xml', |
21
|
|
|
|
|
|
|
$self->base_dir.'/protocol/screenshooter.xml', |
22
|
|
|
|
|
|
|
]; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
foreach my $p (@$protocol) { |
25
|
0
|
|
|
|
|
|
system ($self->perl, |
26
|
|
|
|
|
|
|
'-I'.$self->blib.'/lib', |
27
|
|
|
|
|
|
|
$self->blib.'/script/wl-scanner.pl', |
28
|
|
|
|
|
|
|
$p, $self->base_dir.'/lib'); |
29
|
|
|
|
|
|
|
|
30
|
0
|
0
|
|
|
|
|
die 'Failed to generate protocol module' if $?; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub ACTION_dist { |
35
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
$self->depends_on ('generate'); |
38
|
0
|
|
|
|
|
|
$self->SUPER::ACTION_dist (@_); |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |