This commit is contained in:
parent
ad8173d562
commit
a30d306da0
5 changed files with 17 additions and 13 deletions
|
|
@ -66,7 +66,8 @@ if (grep(/^wayland$/, @backends)) {
|
|||
scan_wayland_protocol("unstable", "primary-selection", "-unstable-v1");
|
||||
scan_wayland_protocol("unstable", "pointer-constraints", "-unstable-v1");
|
||||
scan_wayland_protocol("unstable", "relative-pointer", "-unstable-v1");
|
||||
scan_wayland_protocol_from_file("wlr-layer-shell", "wlr-layer-shell-unstable-v1.xml");
|
||||
scan_wayland_protocol_from_file("wlr-layer-shell",
|
||||
"wlr-layer-shell-unstable-v1.xml");
|
||||
|
||||
$gl_libs = "-lGL -lGLU";
|
||||
}
|
||||
|
|
|
|||
13
pl/utils.pl
13
pl/utils.pl
|
|
@ -125,21 +125,19 @@ sub scan_wayland_protocol {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
sub scan_wayland_protocol_from_file {
|
||||
my $proto = $_[0];
|
||||
my $file = $_[1];
|
||||
my $proto = $_[0];
|
||||
my $file = $_[1];
|
||||
my $proto_c = "src/backend/wayland/wayland-${proto}-protocol.c";
|
||||
|
||||
if (
|
||||
system(
|
||||
"wayland-scanner private-code ./resource/wayland/${file} ${proto_c}"
|
||||
"wayland-scanner private-code ./resource/wayland/${file} ${proto_c}"
|
||||
) != 0
|
||||
)
|
||||
{
|
||||
print(
|
||||
"^ Error on getting private code for ./resource/wayland/${file}\n"
|
||||
);
|
||||
"^ Error on getting private code for ./resource/wayland/${file}\n");
|
||||
}
|
||||
else {
|
||||
new_object($proto_c);
|
||||
|
|
@ -151,12 +149,11 @@ sub scan_wayland_protocol_from_file {
|
|||
)
|
||||
{
|
||||
print(
|
||||
"^ Error on getting client header for ./resource/wayland/${file}\n"
|
||||
"^ Error on getting client header for ./resource/wayland/${file}\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
our %params = ();
|
||||
|
||||
sub param_set {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue